-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .NET 8 test project for System.Numerics.Tensors (#96641)
* Add .NET 8 test project for System.Numerics.Tensors * Update src/libraries/System.Numerics.Tensors/tests/Net8Tests/System.Numerics.Tensors.Net8.Tests.csproj Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> --------- Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
- Loading branch information
1 parent
f21dc6c
commit 315a2a8
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...braries/System.Numerics.Tensors/tests/Net8Tests/System.Numerics.Tensors.Net8.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- | ||
As of 1/8/2024, the dotnet/runtime infrastructure will run the TensorPrimitives tests on .NET Framework and .NET 9, | ||
but it doesn't support validating the .NET 8 build as well, and the code in the .NET 8 and .NET 9 builds are diverging. | ||
To ensure it can be tested, this test project simply references the .NET 8 build directly so that the tests can be run | ||
separately against that asset (still running on NetCoreAppCurrent but using the net8.0 build of S.N.Tensors.csproj). | ||
--> | ||
|
||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="..\Helpers.cs" /> | ||
<Compile Include="..\TensorPrimitives.NonGeneric.Single.cs" /> | ||
<Compile Include="..\TensorPrimitivesTests.cs" /> | ||
<Compile Include="..\TensorPrimitives.ConvertTo.cs" /> | ||
<Compile Include="..\TensorPrimitives.Generic.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\System.Numerics.Tensors.csproj" SkipUseReferenceAssembly="true"> | ||
<SetTargetFramework>TargetFramework=net8.0</SetTargetFramework> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
</Project> |