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

[ NativeAOT ] error MSB4057: The target "PrepareForILLink" does not exist in the project #590

Closed
FoggyFinder opened this issue Jan 26, 2021 · 4 comments
Labels
area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@FoggyFinder
Copy link

Unable to build a solution anymore.

I've found PR #547 where in one comment was mentioned that "I assume it will no longer work withe .NET Core 3.1 SDK."

So there is no way to use CoreRt/NativeAOT with .Net Core 3.1, right? If so

  • shouldn't be the error message more clear ?
  • shouldn't be the section Know issues (I suppose there is a typo Know**n**) updated / removed in such case ?

Otherwise the Q is how to fix it ?

@MichalStrehovsky
Copy link
Member

Yes, I wanted to add a more clear error message but got stuck figuring out the MSBuild goo to say ".NET 5 or later". I updated prerequisites to say .NET 5 is needed but nobody reads all documentation. We should definitely delete the "how to use with .NET Core 2.1" since nobody tests that.

@MichalStrehovsky MichalStrehovsky added area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation good first issue Good for newcomers help wanted Extra attention is needed labels Jan 26, 2021
@MichalStrehovsky
Copy link
Member

We might also be able to say in the ILCompiler NuGet package that .NET 5 is required so that this fails during restore.

This also has the problem that I don't know off the top of my head where to do that. The NuGet building infrastructure the ILCompiler package hooks into is... complex.

@jkotas
Copy link
Member

jkotas commented Jan 27, 2021

We should really only need .NET 5 SDK. I do not think there is a problem with targeting older TargetFramework that the nuget restore is based on.

@jkotas
Copy link
Member

jkotas commented Jan 29, 2021

The error message has been improved.

@jkotas jkotas closed this as completed Jan 29, 2021
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 good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants