Repository navigation
Open
Description
Repro steps
Follow instructions at https://github.com/dotnet/runtime/blob/main/docs/workflow/building/coreclr/nativeaot.md#building-packages with current .NET 10 RC1
Result
C:\test>dotnet publish -c release --packages pkg
Determining projects to restore...
All projects are up-to-date for restore.
c:\net10-rc1\sdk\10.0.100-rc.1.25425.114\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.target
s(345,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\te
st\test.csproj]
test -> C:\test\bin\release\net10.0\win-x64\test.dll
C:\test\pkg\microsoft.dotnet.ilcompiler\10.0.0-dev\build\Microsoft.DotNet.ILCompiler.SingleEntry.targets(60,5): warning
: Delete explicit 'Microsoft.DotNet.ILCompiler' package reference in your project file to avoid versioning problems. [
C:\test\test.csproj]
C:\test\pkg\microsoft.dotnet.ilcompiler\10.0.0-dev\build\Microsoft.NETCore.Native.Publish.targets(70,5): error : The Pr
ivateSdkAssemblies ItemGroup is required for _ComputeAssembliesToCompileToNative [C:\test\test.csproj]
C:\test>type nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="local" value="C:\runtime\artifacts\packages\Release\Shipping" />
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
</packageSources>
</configuration>
C:\test>type test.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishAot>true</PublishAot>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="10.0.0-dev" />
</ItemGroup>
</Project>
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
dotnet-policy-service commentedon Aug 28, 2025
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.
jkotas commentedon Aug 28, 2025
Regressed by #116882 . @jkoritzinsky Could you please take a look?
jkotas commentedon Sep 12, 2025
@agocke is rewriting naot targets
dellamonica commentedon Sep 25, 2025
I tried building with the
mcr.microsoft.com/dotnet/nightly/sdk:10.0-preview-alpine-aotdocker image and got NuGet errors that look similar to this.Is there a workaround?
agocke commentedon Oct 7, 2025
FYI, rewrite is too risky for .NET 10 so this will go into .NET 11.
agocke commentedon Nov 4, 2025
Current workaround is:
where the version number in the above is replaced with the desired version.
Gabboxl commentedon Feb 4, 2026
Hi, are there any updates on this issue?