-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS][tvOS] Building tests fails with "Trimming assemblies requires .NET Core 3.0 or higher" #91535
Comments
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos Issue DetailsBuild InformationBuild: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=394436 The last scheduled CI run of The next scheduled CI run on Aug 31, 2023 at 11:00 PM GMT+2 failed ( Affected pipelines:
Error Message{
"ErrorMessage": "error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
|
cc @sbomer @agocke @vitek-karas
|
@sbomer - there's a somewhat weird case here. The project gets That said, this is something few people will run into - |
Tagging subscribers to this area: @directhex Issue DetailsBuild InformationBuild: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=394436 The last scheduled CI run of The next scheduled CI run on Aug 31, 2023 at 11:00 PM GMT+2 failed ( Affected pipelines:
Error Message{
"ErrorMessage": "error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.",
"BuildRetry": false,
"ExcludeConsoleLog": false
} Known issue validationBuild: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=394436 Report
Summary
|
Set the following env var: https://github.com/NuGet/NuGet.Client/blob/46c44c7ca8d2f994367125153360893ec13373f6/src/NuGet.Core/NuGet.Build.Tasks.Console/MSBuildStaticGraphRestore.cs#L894
|
I agree. Should we open an issue in the |
That would in the sdk repo, but the priority of this is so low I doubt we'll bother with it. If we some day actually define a behavior for "trimming libraries" we would actually want the current behavior, so it's not that bad to keep it :-) I think the cleaner solution would be to actually define "publish for libraries", even if it means "invalid" - but that's a very complex problem to solve currently (mostly we don't know if somebody has dependencies on the existing semi broken behavior). |
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=394436
Build error leg or test failing: Build / tvos-arm64 Release AllSubsets_Mono_RuntimeTests / Build Tests
Pull request: #91520
The last scheduled CI run of
runtime-extra-platforms
onmain
built correctly on Aug 31, 2023 at 11:00 AM GMT+2 (ff2de363f393f2270d5752eeb3db345fcf770c5c
, https://dev.azure.com/dnceng-public/public/_build/results?buildId=391626&view=results).The next scheduled CI run on Aug 31, 2023 at 11:00 PM GMT+2 failed (
cd4a25371c721f83be3fa3367be6cb143709dadc
, https://dev.azure.com/dnceng-public/public/_build/results?buildId=392353&view=logs&j=59056779-c81b-5864-b8d0-ad352b49f318&t=8f67da1d-4989-5758-2e5c-fa15a4fd6276) and CI has been failing since.Affected pipelines:
Error Message
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=394436
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/4/2023 9:41:44 AM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: