How to get Visual Studio to use the x64 DNX SDK architecture

I am using 1.0.0-beta7 x64, but visual studios insist that I am using x86. When I delete all my time periods except for targeting, I get the following:

enter image description here

I can not find the x86 link anywhere in my project.

enter image description here

When I'm on the DNX SDK version of the solution here, it shows the x86 version, but I don’t know where it got it from. This is not causing any problems at present, I'm just trying to figure out what is going on.

+5
source share
2 answers

Right-click the web project (not for solution) and select Properties. Click "Use specific runtime" and select the desired dnx runtime from the drop-down list. All this does is "sdkVersion" in /Properties/launchSettings.json of your project.

Set dnx project runtime

"sdk" in your global.json indicates the minimum version of sdk that the project will run, but will not run your project against. Instead, you will get the setting set in the launchSettings.json file.

+1
source

Are you using 32-bit Windows?

If not, I would suggest you clear the runtime.

C: \ Users \ USERNAME \ .dnx \ battery life

Then do a new install of dnvm upgrade or perhaps dnvm install <version> . While you are on it, you can also update your dnvm as well as dnvm update-self .

Then set the runtime in the web project and global.json properties to x64. If you are using IIS Express for debugging, install IIS Express to use the 64-bit version.

64 bit

Hope this helps!

+1
source

Source: https://habr.com/ru/post/1233131/


All Articles