Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force Visual Studio to use x64 DNX SDK architecture

I'm using 1.0.0-beta7 x64 but visual studios insists I'm using x86. When I delete all my runtimes except the one I'm targeting I get this:

enter image description here

I can't find a reference to x86 anywhere in my project.

enter image description here

When I hover over the Solution DNX SDK version here it shows the x86 version but I don't know where it's getting this from. Currently this isn't causing any problems I'm just trying to understand what's going on.

like image 347
Magpie Avatar asked Oct 31 '22 17:10

Magpie


1 Answers

Right-click in your, web (not solution) project and select Properties. Click "Use Specific Runtime" and pick the dnx runtime that you want from the dropdown. All this does is set the "sdkVersion" in the /Properties/launchSettings.json of your project.

Set project specific dnx runtime

The "sdk" in your global.json indicates the minimum sdk version that the project will run but won't run your project against it. It'll take the setting you have in launchSettings.json instead.

like image 116
Dealdiane Avatar answered Nov 15 '22 05:11

Dealdiane