Skip to content

Commit

Permalink
Adding .NET 7 SDK for unit tests (#654)
Browse files Browse the repository at this point in the history
* Updating tests to run on the latest version of .NET

Both versions is unnecessary since .NET Standard support was dropped. Also don't need an OS check anymore.

* Update Directory.Packages.props

* Update Directory.Build.props

Test setting framework explicitly.

* Update Directory.Build.props

* Update dotnet-initialize.yml
  • Loading branch information
neilr81 authored Feb 9, 2024
1 parent 405679c commit fd0589a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/pipelines/dotnet-initialize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ parameters:
steps:
- task: NuGetAuthenticate@1
displayName: NuGet Authenticate
- task: UseDotNet@2
displayName: Temporarily install .NET 7 SDK while dual targeting
inputs:
version: "7.0.405"
- task: UseDotNet@2
displayName: Use .NET SDK from global.json
inputs:
Expand Down
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
</PropertyGroup>
<PropertyGroup Label="UnitTest Targets">
<UnitTestTargetFrameworks>$(NetCoreVersions)</UnitTestTargetFrameworks>
<UnitTestTargetFrameworks Condition="'$(OS)' != 'Windows_NT'">$(NetCoreVersions)</UnitTestTargetFrameworks>
</PropertyGroup>
<PropertyGroup Label="Project Settings" >
<Platforms>AnyCPU</Platforms>
Expand Down
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup Label="Latest DotNet Package Versions. AutoUpdate" Condition="'$(TargetFramework)' == '$(LatestSupportedDotNetVersion)'">

<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
Expand Down

0 comments on commit fd0589a

Please sign in to comment.