-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Area-NativeAOTNative AOT compilationNative AOT compilationArea-run-fileItems related to the "dotnet run <file>" effortItems related to the "dotnet run <file>" effort
Description
#:package Newtonsoft.Json@*
Console.WriteLine("Hello World");Running the previous with a source-built .NET 10 SDK gives:
$ dotnet run example.cs
/tmp/repro/example.csproj : error NU1101: Unable to find package runtime.fedora.42-x64.Microsoft.DotNet.ILCompiler. No packages exist with this id in source(s): /usr/lib64/dotnet/library-packs, nuget.org
The build failed. Fix the build errors and run again.
I'm not sure why this command goes look for the ILCompiler? Is it needed?
A Microsoft.DotNet.ILCompiler for fedora.42-x64 is available, but only if the user installs the dotnet-sdk-aot-10.0 package.
For other commands, the SDK will only use it when the user explicitly sets the RuntimeIdentifier to the non-portable rid. So here as well it would be preferable to use the NETCoreSdkPortableRuntimeIdentifier (instead of NETCoreSdkRuntimeIdentifier).
cc @baronfel @dsplaisted @dotnet/source-build @omajid
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-NativeAOTNative AOT compilationNative AOT compilationArea-run-fileItems related to the "dotnet run <file>" effortItems related to the "dotnet run <file>" effort