-
Notifications
You must be signed in to change notification settings - Fork 5k
Integrate Crossgen2 pack infrastructure into the shared framework tooling in Arcade #1867
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
Comments
Note, this currently produces |
This is not a must-have for .NET 5 but it would ensure Crossgen2 generation doesn't get broken. There's no anticipated sharing of this code. |
Looks like Crossgen2 package has not been published for 5.0: $ dotnet --version
5.0.100-rtm.20506.2
$ dotnet new console -n r2rtest; cd r2rtest
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on r2rtest/r2rtest.csproj...
Determining projects to restore...
Restored /Users/am11/projects/r2rtest/r2rtest.csproj (in 78 ms).
Restore succeeded.
$ dotnet publish -p:PublishReadyToRun=True -p:PublishReadyToRunUseCrossgen2=True -c Release -r osx-x64
Microsoft (R) Build Engine version 16.8.0-preview-20473-01+250161603 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
/Users/am11/.dotnet/sdk/5.0.100-rtm.20506.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(63,5): error NETSDK1094: Unable to optimize assemblies for performance: a valid runtime package was not found. Either set the PublishReadyToRun property to false, or use a supported runtime identifier when publishing. [/Users/am11/projects/r2rtest/r2rtest.csproj] |
This issue is about infra quality, and wouldn't be related to this. Can you post a new issue so it can be routed/answered correctly? I'd also include where you got that SDK and what NuGet feeds you have set up, but that's just intuition, not really knowing likely causes of this error. 😄 |
[Triage] @jkoritzinsky was this done as part of SharedFX refactoring? |
Yes, the tooling was integrated. |
#1859 adds some additions to the shared framework infrastructure to make crossgen2 packs:
runtime/src/installer/pkg/projects/netcoreapp/pkg/Microsoft.NETCore.App.Crossgen2.pkgproj
Lines 3 to 24 in b8a6d38
These should be ported into dotnet/arcade once the name is decided between Crossgen or Crossgen2, so that shared framework tooling maintenance can happen without as much coordination between repos.
The text was updated successfully, but these errors were encountered: