diff --git a/Directory.Packages.props b/Directory.Packages.props index 61f175c..f44abab 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -6,10 +6,10 @@ - + - + diff --git a/src/Artifacts.UnitTests/Microsoft.Build.Artifacts.UnitTests.csproj b/src/Artifacts.UnitTests/Microsoft.Build.Artifacts.UnitTests.csproj index 07d0381..b3ec38d 100644 --- a/src/Artifacts.UnitTests/Microsoft.Build.Artifacts.UnitTests.csproj +++ b/src/Artifacts.UnitTests/Microsoft.Build.Artifacts.UnitTests.csproj @@ -1,6 +1,6 @@  - net472;netcoreapp3.1;net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0 diff --git a/src/CentralPackageVersions.UnitTests/Microsoft.Build.CentralPackageVersions.UnitTests.csproj b/src/CentralPackageVersions.UnitTests/Microsoft.Build.CentralPackageVersions.UnitTests.csproj index 9bb039e..e9a84c3 100644 --- a/src/CentralPackageVersions.UnitTests/Microsoft.Build.CentralPackageVersions.UnitTests.csproj +++ b/src/CentralPackageVersions.UnitTests/Microsoft.Build.CentralPackageVersions.UnitTests.csproj @@ -1,6 +1,6 @@  - net472;netcoreapp3.1;net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0 diff --git a/src/CopyOnWrite.UnitTests/Microsoft.Build.CopyOnWrite.UnitTests.csproj b/src/CopyOnWrite.UnitTests/Microsoft.Build.CopyOnWrite.UnitTests.csproj index 8cbb930..d6c1c4a 100644 --- a/src/CopyOnWrite.UnitTests/Microsoft.Build.CopyOnWrite.UnitTests.csproj +++ b/src/CopyOnWrite.UnitTests/Microsoft.Build.CopyOnWrite.UnitTests.csproj @@ -1,9 +1,7 @@  - net472;netcoreapp3.1;net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0 Enable - - true diff --git a/src/NoTargets.UnitTests/Microsoft.Build.NoTargets.UnitTests.csproj b/src/NoTargets.UnitTests/Microsoft.Build.NoTargets.UnitTests.csproj index 6b636a6..6d719f6 100644 --- a/src/NoTargets.UnitTests/Microsoft.Build.NoTargets.UnitTests.csproj +++ b/src/NoTargets.UnitTests/Microsoft.Build.NoTargets.UnitTests.csproj @@ -1,6 +1,6 @@  - net472;netcoreapp3.1;net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0 diff --git a/src/NoTargets.UnitTests/NoTargetsTests.cs b/src/NoTargets.UnitTests/NoTargetsTests.cs index e5be8ef..cd69ed9 100644 --- a/src/NoTargets.UnitTests/NoTargetsTests.cs +++ b/src/NoTargets.UnitTests/NoTargetsTests.cs @@ -89,7 +89,13 @@ public void DoNotReferenceOutputAssemblies() { ProjectCreator projectA = ProjectCreator.Templates.SdkCsproj( path: Path.Combine(TestRootPath, "ProjectA", "ProjectA.csproj"), - targetFramework: "netcoreapp2.1") +#if NETFRAMEWORK || NET7_0 + targetFramework: "net7.0") +#elif NET6_0 + targetFramework: "net6.0") +#elif NET8_0 + targetFramework: "net8.0") +#endif .Save(); ProjectCreator noTargetsProject = ProjectCreator.Templates.NoTargetsProject( diff --git a/src/Traversal.UnitTests/Microsoft.Build.Traversal.UnitTests.csproj b/src/Traversal.UnitTests/Microsoft.Build.Traversal.UnitTests.csproj index 335d27d..b944801 100644 --- a/src/Traversal.UnitTests/Microsoft.Build.Traversal.UnitTests.csproj +++ b/src/Traversal.UnitTests/Microsoft.Build.Traversal.UnitTests.csproj @@ -1,6 +1,6 @@  - net472;netcoreapp3.1;net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0