Skip to content

Commit 0832ac7

Browse files
authored
Update unit tests to target net6.0 (#675)
As netcore2.1 is out of support, these tests fail to run on the CI agents. Updating to net6.0 will allow the tests to continue running. Updating the src projects to net6.0 would also mean that they would stop functioning for customers who did not have net6.0 installed. This can be a concern for both the MSBuild package and the CLI. Such a change should only be made when we are bumping the major version.
1 parent 6d0d659 commit 0832ac7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/LibraryManager.Test/Microsoft.Web.LibraryManager.Test.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp2.1;net472</TargetFrameworks>
3+
<TargetFrameworks>net6.0;net472</TargetFrameworks>
44
</PropertyGroup>
55
<ItemGroup>
66
<Compile Remove="FileHelperTest.cs" />

test/Microsoft.Web.LibraryManager.Build.Test/Microsoft.Web.LibraryManager.Build.Test.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp2.1;net472</TargetFrameworks>
3+
<TargetFrameworks>net6.0;net472</TargetFrameworks>
44
</PropertyGroup>
55

66
<ItemGroup>

test/libman.Test/libman.Test.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.1</TargetFramework>
3+
<TargetFramework>net6.0</TargetFramework>
44
<RootNamespace>Microsoft.Web.LibraryManager.Tools.Test</RootNamespace>
55
</PropertyGroup>
66
<ItemGroup>

0 commit comments

Comments
 (0)