-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
PublishAot with a specific Runtime version is broken #89040
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsDescriptionIn https://github.com/aspnet/Benchmarks we publish NativeAot apps with the latest version of the .NET runtime and the latest .NET SDK (even if the runtime repo hasn't flown into the SDK yet). To accomplish this, we inject 2 items into the app's .csproj: Starting last week Thursday, this approach has been failing in our benchmark pipelines. See the latest run here.
Reproduction Steps
<ItemGroup>
<FrameworkReference Update="Microsoft.NETCore.App"
RuntimeFrameworkVersion="8.0.0-preview.7.23364.11" />
<PackageReference Include="Microsoft.Dotnet.ILCompiler"
Version="8.0.0-preview.7.23364.11" />
</ItemGroup>
Expected behaviorThe app should publish successfully with the runtime version specified above. Actual behaviorThe publish fails with
Regression?Yes, this worked last week. Known WorkaroundsNo response ConfigurationNo response Other informationWhen debugging this in msbuild, it appears that the
|
- <PackageReference Include="Microsoft.Dotnet.ILCompiler"
+ <PackageReference Include="Microsoft.Dotnet.ILCompiler; runtime.$(RuntimeIdentifier).Microsoft.DotNet.ILCompiler"
Version="8.0.0-preview.7.23364.11" /> |
This looks like a regression introduced by nuget somewhere in the range NuGet/NuGet.Client@13f2b6a...ba16cb0. SDK picked this up in dotnet/sdk#33913. I suggest we try reverting the update: dotnet/sdk#34069 |
The root cause was a nuget regression around case sensitivity - which was being hit due to the incorrect casing of the package. You can fix it by replacing |
Closing as the underlying issue is in NuGet. - NuGet/Home#12757 Thanks @sbomer for the great investigation here! |
Description
In https://github.com/aspnet/Benchmarks we publish NativeAot apps with the latest version of the .NET runtime and the latest .NET SDK (even if the runtime repo hasn't flown into the SDK yet).
To accomplish this, we inject 2 items into the app's .csproj:
<FrameworkReference Update="Microsoft.NETCore.App"
and<PackageReference Include="Microsoft.Dotnet.ILCompiler"
. See #81382 and #84372 for more info.Starting last week Thursday, this approach has been failing in our benchmark pipelines. See the latest run here.
Reproduction Steps
dotnet new console --aot
dotnet publish
Expected behavior
The app should publish successfully with the runtime version specified above.
Actual behavior
The publish fails with
Regression?
Yes, this worked last week.
Known Workarounds
No response
Configuration
No response
Other information
When debugging this in msbuild, it appears that the
runtime.win-x64.microsoft.dotnet.ilcompiler
nuget package is not getting downloaded. Later in msbuild it expects it to be there, and since it isn't we get an unintelligible error.The text was updated successfully, but these errors were encountered: