Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit f2fc585

Browse files
committed
-Update targets to move to 16299 and netstandard2.0
-Update projects target frameworks to have netstandard2.0 as target (when relevant) -Add mapping for D3D_SHADER_MODEL_6_1 and D3D12_VIEW_INSTANCING_TIER (new in 16299 ) -Add 'in' attribute in BlendFactor mapping, as d3d12.h has a different attribute for it, which made ther generator think of it as an array and breaking build -Remove DESKTOP_APP build configuration in SharpDX.D3DCompiler to get input signature, since it's now supported in uap10
1 parent d2bfa93 commit f2fc585

22 files changed

Lines changed: 26 additions & 28 deletions

File tree

Build/SharpDX.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
<PropertyGroup Condition=" '$(TargetFramework)' == 'uap10.0' ">
1313
<DefineConstants>$(DefineConstants);STORE_APP</DefineConstants>
14-
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.14393.0</TargetPlatformVersion>
14+
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.16299.0</TargetPlatformVersion>
1515
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
1616
<SharpDXAppType>STORE_APP</SharpDXAppType>
1717
</PropertyGroup>
1818

19-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.1' OR '$(TargetFramework)' == 'netstandard1.3'">
19+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.1' OR '$(TargetFramework)' == 'netstandard1.3' OR '$(TargetFramework)' == 'netstandard2.0'">
2020
<SharpDXAppType>REFERENCE</SharpDXAppType>
2121
<DefineConstants>$(DefineConstants);REFERENCE</DefineConstants>
2222
</PropertyGroup>

Source/Mapping.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
<include-dir override="true">$(THIS_CONFIG_PATH)\..\External\LegacyHeaders</include-dir>
2626
<include-dir>$(VC_TOOLS_PATH)\include</include-dir>
27-
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.15063.0\shared</include-dir>
28-
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.15063.0\um</include-dir>
29-
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.15063.0\ucrt</include-dir>
27+
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.16299.0\shared</include-dir>
28+
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.16299.0\um</include-dir>
29+
<include-dir>=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots\KitsRoot10;Include\10.0.16299.0\ucrt</include-dir>
3030

3131
<var name="FILTER_PASTING_ERROR">error: pasting .*a valid preprocessing token</var>
3232

Source/SharpDX.Animation/SharpDX.Animation.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0</TargetFrameworks>
55
<PackageId>SharpDX.Animation</PackageId>
66
<Product>SharpDX.Animation</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.Animation.xml</DocumentationFile>

Source/SharpDX.D3DCompiler/ShaderSignature.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ public byte[] Data
103103
private set;
104104
}
105105

106-
// Win 8.1 SDK removed the corresponding functions from the WinRT platform
107-
#if DESKTOP_APP
108106
/// <summary>
109107
/// Extracts the input and output signatures from a compiled shader or effect.
110108
/// </summary>
@@ -156,7 +154,6 @@ public unsafe static ShaderSignature GetOutputSignature(byte[] shaderBytecode)
156154
return null;
157155
return new ShaderSignature(shaderSignature);
158156
}
159-
#endif
160157

161158
/// <summary>
162159
/// Cast this <see cref="ShaderSignature"/> to the underlying byte buffer.

Source/SharpDX.D3DCompiler/SharpDX.D3DCompiler.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1;uap10.0</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0;uap10.0</TargetFrameworks>
55
<PackageId>SharpDX.D3DCompiler</PackageId>
66
<Product>SharpDX.D3DCompiler</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.D3DCompiler.xml</DocumentationFile>

Source/SharpDX.DXGI/SharpDX.DXGI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1;uap10.0</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0;uap10.0</TargetFrameworks>
55
<PackageId>SharpDX.DXGI</PackageId>
66
<Product>SharpDX.DXGI</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.DXGI.xml</DocumentationFile>

Source/SharpDX.Direct2D1/SharpDX.Direct2D1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1;uap10.0</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0;uap10.0</TargetFrameworks>
55
<PackageId>SharpDX.Direct2D1</PackageId>
66
<Product>SharpDX.Direct2D1</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.Direct2D1.xml</DocumentationFile>

Source/SharpDX.Direct3D10/SharpDX.Direct3D10.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1;uap10.0</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0;uap10.0</TargetFrameworks>
55
<PackageId>SharpDX.Direct3D10</PackageId>
66
<Product>SharpDX.Direct3D10</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.Direct3D10.xml</DocumentationFile>

Source/SharpDX.Direct3D11.Effects/SharpDX.Direct3D11.Effects.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1;uap10.0</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0;uap10.0</TargetFrameworks>
55
<PackageId>SharpDX.Direct3D11.Effects</PackageId>
66
<Product>SharpDX.Direct3D11.Effects</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.Direct3D11.Effects.xml</DocumentationFile>

Source/SharpDX.Direct3D11/SharpDX.Direct3D11.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\..\Build\SharpDX.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net40;net45;netstandard1.1;uap10.0</TargetFrameworks>
4+
<TargetFrameworks>net40;net45;netstandard1.1;netstandard2.0;uap10.0</TargetFrameworks>
55
<PackageId>SharpDX.Direct3D11</PackageId>
66
<Product>SharpDX.Direct3D11</Product>
77
<DocumentationFile Condition="'$(Configuration)' == 'Release'">bin\$(Configuration)\$(TargetFramework)\SharpDX.Direct3D11.xml</DocumentationFile>

0 commit comments

Comments
 (0)