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
Can't run console app built for win10-x64 (probably other rids as well) #5916
Comments
Is this using dotnet new, or a different template? |
@brthor Sure enough I don't have a bin folder under c:\program files\dotnet. I did install the SDK which should have included the runtime as well. |
Can you share the project.json please? |
`{ "frameworks": { I suspect is the platform dependency which is causing the issue |
Thanks for the info @BillHiebert , looking into this now |
@BillHiebert did you run restore in between steps 3 and 4? |
I've reproed this using the following steps (same as yours, but restore step is key):
The base cause here is that So immediate workaround is to run EDIT: I think a better fix is actually to use what has been restored (lock file) and ignore the type:platform removal until that is restored. |
The issue ended up being simple, build is keying off the wrong things to determine if the project is portable. Now we'll see this error, which tells you to restore again. I'm not sure if the right thing is for build to succeed here, but this error seems acceptable and matches the state of the project (project.json and project.lock.json are mismatched)
|
After some more testing, this issue goes deeper.. The other fixed bug appears to have been unrelated or a red herring. When we restore a "type": "platform" dependency, this is reflected in the project.lock.json as "type":"package"
However, the lock files generated with and without cc @anurse @emgarten @yishaigalatzer |
/cc @pakrym @davidfowl |
Knowing that doesn't help solve the problem though. How can we determine from a lock file whether This seems like an important scenario for cli to be able to determine whether the current project file is compatible with the current lock file. As it exists, the EDIT: Added more clarification |
@anurse Perhaps the issue here then is not that "type":"package" should be "type":"platform" in the lock file but that the |
Verify coreclr absence/presence depending on app type during dotnet build.
Verify coreclr absence/presence depending on app type during dotnet build.
Verify coreclr absence/presence depending on app type during dotnet build.
hi error : Can not find runtime target for framework ' I am sure number 3. suggested is not the case cause I a not trying to publish but build. how do I approach understanding and fixing suggested item 2. ? thank you |
dotnet version: 1.0.0-rc2-002520
Steps to reproduce
5 Output should be in bin\debug\netcoreapp10\win10-x64
See the following error
Could not resolve coreclr path
The text was updated successfully, but these errors were encountered: