Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

problem running Angular 2 project #2489


User avatar
0
dparizek created

When I try to open the Angular 2 server solution in Visual Studio 2015 on a Windows 10 machine, I get this. So I uninstalled .NET Core SDK and reinstalled latest version (1.0.1) from here: <a class="postlink" href="https://www.microsoft.com/net/core#windowsvs2015">https://www.microsoft.com/net/core#windowsvs2015</a>

Any ideas? Anyone else run into this?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you set the sdk verdion in global.json of your solution to "1.0.0-preview2-*" ? When this value is empty in global.json, VS tries to use newest dotnet sdk version and I think 1.0.0-preview 3- does not support this project model.

  • User Avatar
    0
    dparizek created

    More info in case others have the same issue:

    <a class="postlink" href="https://github.com/aspnet/Tooling/blob/master/known-issues-vs2015.md#missing-sdk">https://github.com/aspnet/Tooling/blob/ ... issing-sdk</a>

  • User Avatar
    0
    dparizek created

    So issue fixed to make it fully open in VS. When I try to do next step:

    C:\Code\Research1\aspnet-core\src\Research1.EntityFramework>dotnet ef database update The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found.

    • Check application dependencies and target a framework version installed at: C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App
    • The following versions are installed: 1.0.1 1.1.0-preview1-001100-00
    • Alternatively, install the framework version '1.1.0'.

    more issues... where would I specify 1.0.1 instead of 1.1.0? or specify a preview release instead of 1.1.1 straight up?

    sigh.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks for your detailed explanation. You can see the installed sdk verdions under C:\Program Files\dotnet\sdk or C:\Program Files (x86)\dotnet\sdk. You need to add a global.json to your solution and set it in that file.