Peter Kellner
Peter Kellner

Reputation: 15478

Need Help Building ASP.NET Core Source Because of Missing .Net Version

I can't seem to find the version of asp.net core that is wanted to build what is at the current asp.net core site. I'm currently getting the error that vs is looking for v 1.0.0-preview2-1-003180 but I can't find that anywhere to install. I'ved looked here:

https://github.com/dotnet/core/blob/master/release-notes/download-archive.md

What is the recommended way to download the source from

https://github.com/aspnet/Mvc

and build it. (I'm on the dev branch).

enter image description here

Update: There are 13 projects in the solution. There is a global.json in solution and a project.json in each project.

Here is the global.json:

{
  "projects": [
    "src",
    "test/WebSites",
    "samples"
  ],
  "sdk": {
    "version": "1.0.0-preview2-1-003180"
  }
}

Upvotes: 0

Views: 322

Answers (1)

Alexander Staroselsky
Alexander Staroselsky

Reputation: 38767

Try updating "frameworks" property of project.json to something like:

"frameworks": {
  "netcoreapp1.1": {
    "dependencies": {
      "Microsoft.NETCore.App": {
        "type": "platform",
        "version": "1.1.0"
      }
    },
    "imports": "dnxcore50"
  }
},

This should target .NET Core 1.1 rather than the specific SDK version you are receiving an error on.

Hopefully that helps!

Upvotes: 3

Related Questions