No executable found matching command dotnet-projectmodel-server

后端 未结 9 2144
栀梦
栀梦 2020-12-05 04:26

I\'m getting this error when opening .NET Core projetcs in VS 2015 Community:

The following error ocurred attempting to run the project model server

相关标签:
9条回答
  • 2020-12-05 04:37

    I has that problem after installing visual studio 2017, I just created a global.json file with this configuration:

    {
      "projects": [ "src", "test" ],
      "sdk": {
        "version": "1.0.0-xxxxx"
      }
    }
    

    To know which version you are possibly using, open your console and go to C:\Program Files\dotnet\sdk> then execute a simple dir command, that will list the folders of the different dot net core versions you may have on your system, try one by one and select the version that works for you.

    BTW: it worked for me to place the global.json in the project root, not the solution.

    0 讨论(0)
  • 2020-12-05 04:38

    Not a good position at all. Dot Net Core 1.0 is the LTS version and this is the one to target. .NET Core 1.1 is NOT the LTS version (and will not run on Amazon for example). So recommending this route goes against Microsoft's policy on LTS versions.

    An LTS version MUST continue to be "supported for three years after the general availability date of a LTS release"

    0 讨论(0)
  • 2020-12-05 04:42

    I just encountered the same issue after updating Microsoft Azure SDK v2.9.6

    I uninstalled the 2.9.6 SDK and noticed I had a problem opening my global.json file. So I got the most recent version from VSTS for my solution and that fixed my problem.

    0 讨论(0)
  • 2020-12-05 04:43

    Another option to fix this is to add a Solution folder called "Solution Items" and add a global.json file in it with an "sdk" element specifying the correct SDK version if you have multiple installed side-by-side. I installed 2017 RC and I started getting this error because it installs Preview 4. I don't want to uninstall Preview 4 or 2017 will stop working. Adding the global.json file with the following text fixed it for me. (check your %PROGRAMFILES%\dotnet\sdk folder for installed SDK versions.)

    { "sdk" : { "version" : "1.0.0-preview2-1-003177" } }
    
    0 讨论(0)
  • 2020-12-05 04:44

    In my case, after installing .net core 1.1.0 there were still versions 1.0.1 installed. Delete old versions and reinstall Microsoft .NET Core tools.

    0 讨论(0)
  • 2020-12-05 04:45

    I got this message when I was trying out a new Angular2 with .NET Core template from the ASP.NET Core Template Pack.

    Basically, you'll need a global.json file as a Solution Item in the Solution folder (NOT Projects)

    {
      "projects": [ "src", "test" ],
      "sdk": {
        "version": "1.0.0-preview2-003131"
      }
    }
    

    For more information, you can read further on this page.

    Dot Net Core Tutorials

    0 讨论(0)
提交回复
热议问题