Description
Occurred when running /azp run runtime-extra-platforms
Appears to affect:
- tvos-arm64
- ios-arm64
Error in
Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5) so around https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets#L90
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=397028
Build error leg or test failing: Build / tvos-arm64 Release AllSubsets_Mono_RuntimeTests / Build Tests
Pull request: #91290
Error Message
/Users/runner/work/1/s/src/tests/build.sh ci os ios arm64 Release -mono /p:ArchiveTests=true /p:DevTeamProvisioning=- /p:RunAOTCompilation=true /p:MonoForceInterpreter=true /p:BuildTestsOnHelix=true /p:LibrariesConfiguration=Release
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/runner/work/_temp/26a21b3c-3468-45b3-926f-3d1d35795c51.sh
__OutputRid: ios-arm64
Building Tests...
__TargetOS: ios
__TargetArch: arm64
__BuildType: Release
__TestIntermediatesDir: /Users/runner/work/1/s/artifacts/tests/coreclr/obj/ios.arm64.Release
__NativeTestIntermediatesDir: /Users/runner/work/1/s/artifacts/tests/coreclr/obj/ios.arm64.Release/Native
__ManagedTestIntermediatesDir: /Users/runner/work/1/s/artifacts/tests/coreclr/obj/ios.arm64.Release/Managed
Creating TestBinDir: /Users/runner/work/1/s/artifacts/tests/coreclr/ios.arm64.Release
Creating LogsDir: /Users/runner/work/1/s/artifacts/log
Creating MsbuildDebugLogsDir: /Users/runner/work/1/s/artifacts/log/MsbuildDebugLogs
Building tests via "/Users/runner/work/1/s/eng/common/msbuild.sh" --ci --warnAsError false /Users/runner/work/1/s/src/tests/build.proj /t:TestBuild /p:TargetArchitecture=arm64 /p:Configuration=Release /p:TargetOS=ios /nodeReuse:false /maxcpucount "/flp:Verbosity=normal;LogFile=/Users/runner/work/1/s/artifacts/log/TestBuild.ios.arm64.Release.log" "/flp1:WarningsOnly;LogFile=/Users/runner/work/1/s/artifacts/log/TestBuild.ios.arm64.Release.wrn" "/flp2:ErrorsOnly;LogFile=/Users/runner/work/1/s/artifacts/log/TestBuild.ios.arm64.Release.err" "/bl:/Users/runner/work/1/s/artifacts/log/TestBuild.ios.arm64.Release.binlog" /p:NUMBER_OF_PROCESSORS=4 /p:ArchiveTests=true /p:DevTeamProvisioning=- /p:RunAOTCompilation=true /p:MonoForceInterpreter=true /p:BuildTestsOnHelix=true /p:LibrariesConfiguration=Release
[15:45:12.39] Restoring all packages...
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/test_dependencies_fs/test_dependencies.fsproj (in 1.41 sec).
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/test_dependencies/test_dependencies.csproj (in 676 ms).
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj (in 1.85 sec).
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/GenerateHWIntrinsicTests/GenerateHWIntrinsicTests_Arm.csproj (in 214 ms).
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/GenerateHWIntrinsicTests/GenerateHWIntrinsicTests_General.csproj (in 215 ms).
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/GenerateHWIntrinsicTests/GenerateHWIntrinsicTests_X86.csproj (in 215 ms).
Determining projects to restore...
Restored /Users/runner/work/1/s/src/tests/Common/XUnitLogChecker/XUnitLogChecker.csproj (in 213 ms).
Determining projects to restore...
/Users/runner/work/1/s/.dotnet/sdk/8.0.100-rc.1.23415.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher. [/Users/runner/work/1/s/src/tests/Common/XUnitWrapperGenerator/XUnitWrapperGenerator.csproj] [/Users/runner/work/1/s/src/tests/build.proj]
##[error].dotnet/sdk/8.0.100-rc.1.23415.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher. [/Users/runner/work/1/s/src/tests/Common/XUnitWrapperGenerator/XUnitWrapperGenerator.csproj]
Nothing to do. None of the projects specified contain packages to restore.
/Users/runner/work/1/s/src/tests/build.proj(543,5): error MSB3073: The command ""/Users/runner/work/1/s/.dotnet/dotnet" restore -r ios-arm64 Common/XUnitWrapperGenerator/XUnitWrapperGenerator.csproj /p:SetTFMForRestore=true /p:TargetOS=ios /p:TargetArchitecture=arm64 /p:Configuration=Release /p:CrossBuild=" exited with code 1.
##[error]src/tests/build.proj(543,5): error MSB3073: The command ""/Users/runner/work/1/s/.dotnet/dotnet" restore -r ios-arm64 Common/XUnitWrapperGenerator/XUnitWrapperGenerator.csproj /p:SetTFMForRestore=true /p:TargetOS=ios /p:TargetArchitecture=arm64 /p:Configuration=Release /p:CrossBuild=" exited with code 1.
Build FAILED.
/Users/runner/work/1/s/.dotnet/sdk/8.0.100-rc.1.23415.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(90,5): error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher. [/Users/runner/work/1/s/src/tests/Common/XUnitWrapperGenerator/XUnitWrapperGenerator.csproj] [/Users/runner/work/1/s/src/tests/build.proj]
/Users/runner/work/1/s/src/tests/build.proj(543,5): error MSB3073: The command ""/Users/runner/work/1/s/.dotnet/dotnet" restore -r ios-arm64 Common/XUnitWrapperGenerator/XUnitWrapperGenerator.csproj /p:SetTFMForRestore=true /p:TargetOS=ios /p:TargetArchitecture=arm64 /p:Configuration=Release /p:CrossBuild=" exited with code 1.
0 Warning(s)
2 Error(s)
{
"ErrorMessage": "error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=397028
Error message validated: error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/7/2023 2:45:45 PM UTC