Skip to content
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

Fix the list of RIDs supported by ILCompiler #784

Merged

Conversation

AntonLapounov
Copy link
Member

@AntonLapounov AntonLapounov commented Mar 8, 2021

Fix the issue with runtime.json file in Microsoft.DotNet.ILCompiler package that currently lists all 15 runtimes supported by .NET 6 while we build runtime ILCompiler packages for 6 RIDs only (#630 (comment)).

We have to set the RIDPropsFile property before importing src/installer/pkg/projects/Directory.Build.props to avoid using RIDs listed in src/installer/pkg/projects/netcoreappRIDs.props.

The output of dotnet publish -r win-x86 before the fix:

    Determining projects to restore...
! Z:\Test\HelloWorld.csproj : error NU1101: Unable to find package runtime.win-x86.Microsoft.DotNet.ILCompiler. No packages exist with this id in source(s): dotnet-experimental, nuget
    Failed to restore  Z:\Test\HelloWorld.csproj (in 838 ms).

After the fix:

    Determining projects to restore...
    Restored Z:\Test\HelloWorld.csproj (in 496 ms).
    You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
    HelloWorld -> Z:\Test\bin\Debug\net5.0\win-x86\HelloWorld.dll
! Z:\Test\pkg\microsoft.dotnet.ilcompiler\6.0.0-preview.3.21153.3\build\Microsoft.NETCore.Native.Publish.targets(59,5): error : win-x86 not supported yet. https://github.com/dotnet/corert/issues/4589 [Z:\Test\HelloWorld.csproj]

@AntonLapounov AntonLapounov added the area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation label Mar 8, 2021
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise. Thank you!

@jkotas jkotas merged commit fec2e0b into dotnet:feature/NativeAOT Mar 8, 2021
@AntonLapounov AntonLapounov deleted the FixListOfSupportedRIDs branch March 8, 2021 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants