0
votes

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"
  }
}
1
What version of .NET Core does your project.json file specify? The frameworks property would specify which version of .NET will be used.Alexander Staroselsky
I updated question with global.json. I assume that is what you were looking for.Peter Kellner
global.json definitely helps, but the project.json has some key compilation information as well.Alexander Staroselsky

1 Answers

3
votes

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!