问题
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:
- Install tooling for VS2015 from https://go.microsoft.com/fwlink/?LinkId=798481 (link from step 1)
- 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).
- Edit your
global.json
file - updateversion
property to1.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