Skip to content

Commit 5ce692c

Browse files
committed
Maths project changes for 3.0
1 parent 970a265 commit 5ce692c

File tree

3 files changed

+28
-30
lines changed

3 files changed

+28
-30
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>$(SilkTargetFramework)</TargetFramework>
5+
<OutputType>Exe</OutputType>
6+
<LangVersion>9.0</LangVersion>
7+
<SilkDocumentationExempt>true</SilkDocumentationExempt>
8+
<DefineConstants Condition="'$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net5.0'">$(DefineConstants);MATHF</DefineConstants>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<ProjectReference Include="$(SilkLibrariesDir)\Silk.NET.Maths\Silk.NET.Maths.csproj" />
17+
</ItemGroup>
18+
19+
</Project>
Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0</TargetFrameworks>
4+
<TargetFrameworks>$(SilkTargetFramework)</TargetFrameworks>
55
<Nullable>enable</Nullable>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<WarningsAsErrors>true</WarningsAsErrors>
99
<LangVersion>9.0</LangVersion>
10-
10+
11+
<!-- TODO sort this out! -->
1112
<DefineConstants Condition="'$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net5.0'">$(DefineConstants);SSE</DefineConstants>
1213
<DefineConstants Condition="'$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net5.0' Or '$(TargetFramework)' == 'netstandard2.1'">$(DefineConstants);BTEC_INTRINSICS;MATHF</DefineConstants>
1314
<DefineConstants Condition="'$(TargetFramework)' == 'net5.0'">$(DefineConstants);POH;AdvSIMD</DefineConstants>
@@ -16,38 +17,16 @@
1617
</PropertyGroup>
1718

1819
<ItemGroup>
19-
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.3">
20+
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.0" />
21+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.1">
2022
<PrivateAssets>all</PrivateAssets>
2123
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2224
</PackageReference>
23-
</ItemGroup>
24-
25-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
26-
<PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.1" />
27-
</ItemGroup>
28-
29-
<ItemGroup Condition="'$(TargetFramework)' != 'net5.0'">
3025
<PackageReference Include="Ultz.Bcl.Half" Version="1.0.0" />
3126
</ItemGroup>
32-
33-
<ItemGroup>
34-
<Compile Update="Scalar.As.cs">
35-
<DesignTime>True</DesignTime>
36-
<AutoGen>True</AutoGen>
37-
<DependentUpon>Scalar.As.tt</DependentUpon>
38-
</Compile>
39-
</ItemGroup>
40-
41-
<ItemGroup>
42-
<None Update="Scalar.As.tt">
43-
<Generator>TextTemplatingFileGenerator</Generator>
44-
<LastGenOutput>Scalar.As.cs</LastGenOutput>
45-
</None>
46-
</ItemGroup>
47-
27+
4828
<ItemGroup>
49-
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
29+
<AdditionalFiles Include="PublicAPI.Shipped.txt" />
30+
<AdditionalFiles Include="PublicAPI.Unshipped.txt" />
5031
</ItemGroup>
51-
52-
<Import Project="..\..\..\build\props\common.props" />
5332
</Project>

tests/Silk.NET.Maths.Tests/Silk.NET.Maths.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
1717
<PackageReference Include="xunit" Version="2.4.1" />
1818
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1919
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)