-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
In our CI, we build the repo using:
./build.sh /p:DotNetBuildFromSource=true --runtimeconfiguration Release --librariesConfiguration Debug --subset clr+libs+host+packs+libs.tests
Since #83899 (which is clearing NetFrameworkMinimum when DotNetBuildFromSource), a bunch of test projects which have a net48 tfm fail to restore:
System.Management/tests/System.Management.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.IO.Packaging/tests/System.IO.Packaging.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Formats.Cbor/tests/System.Formats.Cbor.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.DirectoryServices/tests/System.DirectoryServices.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.DirectoryServices.Protocols/tests/System.DirectoryServices.Protocols.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.DirectoryServices.AccountManagement/tests/System.DirectoryServices.AccountManagement.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Diagnostics.DiagnosticSource/tests/System.Diagnostics.DiagnosticSource.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
Microsoft.VisualBasic.Core/tests/Microsoft.VisualBasic.Core.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Text.RegularExpressions/tests/FunctionalTests/System.Text.RegularExpressions.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Security.Cryptography.Pkcs/tests/System.Security.Cryptography.Pkcs.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Security.Cryptography.Cose/tests/System.Security.Cryptography.Cose.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Runtime.Serialization.Formatters/tests/System.Runtime.Serialization.Formatters.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Runtime.Caching/tests/System.Runtime.Caching.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Net.Http.WinHttpHandler/tests/FunctionalTests/System.Net.Http.WinHttpHandler.Functional.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
System.Net.Http.Json/tests/FunctionalTests/System.Net.Http.Json.Functional.Tests.csproj : error NU1201: Project TestUtilities is not compatible with net48 (.NETFramework,Version=v4.8). Project TestUtilities supports: net8.0 (.NETCoreApp,Version=v8.0) [/home/tester/runtime/Build.proj]
@ViktorHofer @NikolaMilosavljevic how can we fix this?
cc @omajid