/// <summary> /// Initializes a new instance of the <see cref="GDKToolchain"/> class. /// </summary> /// <param name="platform">The platform.</param> /// <param name="architecture">The architecture.</param> protected GDKToolchain(GDKPlatform platform, TargetArchitecture architecture) : base(platform, architecture, WindowsPlatformToolset.Latest, WindowsPlatformSDK.v10_0_19041_0) { // Setup system paths SystemIncludePaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Include")); SystemLibraryPaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Lib\\amd64")); SystemLibraryPaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.Services.API.C\\DesignTime\\CommonConfiguration\\Neutral\\Lib\\Release\\" + Toolset)); }
/// <summary> /// Initializes a new instance of the <see cref="GDKToolchain"/> class. /// </summary> /// <param name="platform">The platform.</param> /// <param name="architecture">The architecture.</param> protected GDKToolchain(GDKPlatform platform, TargetArchitecture architecture) : base(platform, architecture, WindowsPlatformBase.GetToolsets().Keys.Where(x => x <= WindowsPlatformToolset.v142).Max(), WindowsPlatformSDK.v10_0_19041_0) { // Setup system paths SystemIncludePaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Include")); SystemLibraryPaths.Add(Path.Combine(GDK.Instance.RootPath, "GRDK\\GameKit\\Lib\\amd64")); var xboxServicesPath = Path.Combine(GDK.Instance.RootPath, "GRDK\\ExtensionLibraries\\Xbox.Services.API.C\\DesignTime\\CommonConfiguration\\Neutral\\"); SystemIncludePaths.Add(xboxServicesPath + "Include"); SystemLibraryPaths.Add(xboxServicesPath + "Lib\\Release\\" + Toolset); }