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
Could not resolve coreclr path #5844
Comments
If your goal was to produce a shared framework application, you need the packages in "Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0-*"
} which includes things like the NETStandard library and the host executable. The platform where you deploy the app should have the shared framework installed on it. The app will be executed on that platform with the command Alternatively if your plan was to produce a standalone (self-contained) application (as it appears that you're doing), then RE: " * " (pure star) package references, that is not supported AFAIK. They'll jump in if I'm incorrect on that. Did you try |
@guardrex my aim is to produce a platform independent executable. I wanted to have
I am assuming this is because my library platform reference to
Any suggestions in this case? What should be using in my library project as a platform reference or none?
Well, I don't want to specify a version for a project reference package. |
I am about to run out of hairs to pull 😄 this is really way too complicated to get going. I handpicked the references and my library's project.json file looks like below:
However, I am now getting this after running
|
When you say "library project," do you mean that you plan to If that's the case, then you can just use Of course, the exception there is correct: You can only use I'm on JabbR right now if you want to talk about it: https://jabbr.net/#/rooms/AspNetCore |
Library project means it doesn't have an entry point emitted into the produced assembly. Just like this: https://github.com/aspnet/HttpAbstractions/tree/391db10384b72be955b9987a19ec0cf4b77d22f8/src/Microsoft.AspNetCore.Http.Abstractions |
@tugberkugurlu Are you trying to run your library? I'm lost as to what you're trying to do. |
Yeah ... I'm a little confused what you're trying to build, too. |
@davidfowl not library, I also have another project which consumes my library project and has
and the rest is as described in https://github.com/dotnet/cli/issues/2640#issuecomment-214036392. This is the one that I try to run |
@tugberkugurlu What's your CLI version? |
should be |
|
Oh yeah but that didn't help, too (rerestored everything and
|
@tugberkugurlu Upgrade it, your CLI is too old for the shared runtime you're trying to use.
I believe the versioning scheme looks like this: CLI version = {version} Your shared framework version can't be higher than your CLI version (because the CLI comes with a version of the shared framework, but yours is too low. |
@davidfowl ah, OK. upgrading now, thanks! It doesn't mention any incompatibility on the error message. Can this be picked up at runtime and if so, can error message be made a bit more clear? |
The error messages are pretty horrible overall but @schellap has been tackling them one by one. It would be great if the error told you, what the available versions were as well. |
@davidfowl instead of upgrading, I locked the version of the platform reference:
it worked! thx! |
https://github.com/dotnet/cli/blob/rel/1.0.0/TestAssets/TestProjects/TestSimpleIncrementalApp/project.json runs with the following settings on Ubuntu 14.04:
|
Just closing the loop on this one... the error message was improved since dotnet/cli#2709. The escrow builds displays this message.
|
My project.json file looks like below:
when I run
dotnet run
after runningdotnet restore --no-cache
, I am getting the below error:I added the runtime and did another restore:
now I am getting this:
Not sure about a few things:
Environment data
dotnet --info
output:The text was updated successfully, but these errors were encountered: