问题
I was messing around with the dnvm, and I ran dnvm upgrade, putting me into beta5. However, the project I am working on is staying in beta4 (at least for now).
I have been attempting to revert and failing. I have gone as far as to delete the runtime folder. Now, when I open the project or attempt to make a new one I get the following error:
This is expected because I deleted the folder. However, I want to use dnx-clr-beta4. My dnvm list is as follows:
What do I need to do to make Visual Studio look for beta4 instead? Thank you for your time.
回答1:
Put the DNX version inside the global.json file which lives on the root directory of your solution (like here).
{
"sdk": {
"version": "1.0.0-beta4"
}
}
You may need to restart the Visual Studio.
The other way is to configure this through project properties dialog inside Visual Studio:
来源:https://stackoverflow.com/questions/30309356/how-to-force-visual-studio-to-use-a-specific-version-of-dnx