aspnet / dnvm

OBSOLETE - see readme
Other
174 stars 61 forks source link

How to set dnvm version for Visual Studio 2015 #480

Closed drewsheneman closed 8 years ago

drewsheneman commented 8 years ago

I downloaded beta8 for ASP.NET 5 and am trying to set it as the default for new Visual Studio projects. Using the Developer command prompt for Visual Studio 2015 I did:

dnvm use 1.0.0-beta8 -arch x64 -p

My command prompt now displays:

c:\>dnvm list

Active Version Runtime Architecture Location Alias


* 1.0.0-beta8 clr x64 C:\Users\username\.dnx\runtimes 1.0.0-beta8 clr x86 C:\Users\username\.dnx\runtimes def...

However, when I now open Visual Studio 2015 and create a new ASP.NET 5 Web Application project, my global.json still says architecture x86 (the previous version), and my project does not build. Under References it says (Errors - see Error list) but there are too many errors to count. Doing 'Restore Packages' appears to do nothing.

How do I set Visual Studio 2015 to use this current version with x64 architecture (the architecture of my machine) and to create new projects so that they build successfully out of the box (like the previous version I was using)?