Skip to content
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

Unable to target CoreCLR from Visual Studio Code #88

Comments

@jrieken
Copy link
Contributor

jrieken commented Mar 14, 2016

From @TheBlueSky on February 26, 2016 13:3

Hellp everyone,

I created a totally empty project and specified only CoreCLR as targetted framework; i.e., in project.json I have:

"frameworks": {
    "dnxcore50": {}
}

On my PC, the dnvm confirugration is the following:

Active Version           Runtime Architecture OperatingSystem Alias
------ -------           ------- ------------ --------------- -----
       1.0.0-rc1-update1 clr     x64          win
       1.0.0-rc1-update1 clr     x86          win
  *    1.0.0-rc1-update1 coreclr x64          win             default
       1.0.0-rc1-update1 coreclr x86          win

Still, when I run the application I receive:

System.InvalidOperationException: The current runtime target framework is not compatible with 'SomeProject'.
Current runtime target framework: 'DNX,Version=v4.5.1 (dnx451)'
 Version:      1.0.0-rc1-16231
 Type:         Clr
 Architecture: x86
 OS Name:      Windows
 OS Version:   10.0
 Runtime Id:   win10-x86

Please make sure the runtime matches a framework specified in project.json

Visual Studio Code is still "thinking" that it should run x86 CLR DNX and not the x64 CoreCLR one.

I'm not sure if this is a Visual Studio Code issue, or ASP.Net Core tooling issue; and appreciate any hint and help.

Copied from original issue: microsoft/vscode#3489

@jrieken
Copy link
Contributor Author

jrieken commented Mar 14, 2016

From @TranscendOfSypherus on March 4, 2016 1:56

I too am seeing this issue, if I launch a command window from the command pallet and invoke dnx web then kestrel launches fine against coreclr.

@DustinCampbell
Copy link
Member

Hi @TheBlueSky and @TranscendOfSypherus, with DNX replaced with .NET Core, is this still an issue. It seems to be pretty stale. Let me know if you're still experiencing this problem.

@TheBlueSky
Copy link

@DustinCampbell, it isn't relevant anyway now, after moving to dotnet. I'm going to test this later, and if there is an issue, I believe we should open a new "Issue".

@DustinCampbell
Copy link
Member

yes, that'd be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment