“netcoreapp1.0” is an unsupported framework. - Asp.Net Core Music Store

倾然丶 夕夏残阳落幕 提交于 2019-12-04 22:34:57

问题


I'm just trying out asp.net core for the first time. Opening up the newly updated music store app but I can't get it to build Nuget tells me:

Errors in C:\development\MusicStore\test\E2ETests\project.json
    "netcoreapp1.0" is an unsupported framework.

How can I get the .net framework reference to restore?


回答1:


RC2 was released yesterday, and now you can. You need:

  1. Install tooling for VS2015 from https://go.microsoft.com/fwlink/?LinkId=798481 (link from step 1)
  2. Upgrade NuGet (VS Extensions) - 3.4.3.855 (auto-updated) works for me, but version 3.5.0 (beta) is recommended here (second link in step 1).
  3. Edit your global.json file - update version property to 1.0.0-preview1-002702 (details here)



回答2:


In ASP.NET Core 1.0 RTM Tools Preview 2 the version needs to be:

"version": "1.0.0-preview2-003121"

(Run dotnet --version to make sure) Then don't forget to run:

dotnet restore

in your Package Manager Console, Command Prompt or Git Bash



来源:https://stackoverflow.com/questions/37181602/netcoreapp1-0-is-an-unsupported-framework-asp-net-core-music-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!