Update unit test nugets (#46)

* Update testing packages in project file

Upgraded `Microsoft.NET.Test.Sdk` to version `17.14.1`,
`xunit` to version `2.9.3`, and `xunit.runner.visualstudio`
to version `3.1.1` in `GeoUK.OSTN.XUnit.csproj` for improved
compatibility, performance, and access to new features.

* Update project to target netstandard2.0

The project file `DemoProject.csproj` has been modified to use the `netstandard2.0` target framework instead of `netcoreapp2.2`. XML formatting has been improved with added indentation for better readability, while project references remain unchanged but are now consistently indented.
This commit is contained in:
Ieuan Walker
2025-07-11 11:31:14 +01:00
committed by GitHub
parent 2e41a3d860
commit c42eee7ae5
2 changed files with 12 additions and 12 deletions

View File

@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\GeoUK.OSTN\GeoUK.OSTN.csproj" />
<ProjectReference Include="..\..\GeoUK\GeoUK.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\GeoUK.OSTN\GeoUK.OSTN.csproj" />
<ProjectReference Include="..\..\GeoUK\GeoUK.csproj" />
</ItemGroup>
</Project>

View File

@@ -49,9 +49,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>