重现的步骤
Installed .NET core in Ubuntu16.04
Used Yeomen to generate Web Application
The following files /folders got generated
appsettings.Development.json bower.json Controllers Program.cs README.md TestYoWebCoreApplication.csproj web.config appsettings.json bundleconfig.json global.json Properties Startup.cs Views wwwroot
Expected behavior
Dotnet restore
dotnet run
should restore and compile
Actual behavior
Dotnet restore
dotnet run
not working
Error "warn : The folder '/home/WebApplication' does not contain a project to restore.
Environment data
dotnet --info output:
dotnet-dev-1.0.0-preview2.1-003177
答案 0 :(得分:3)
只需更新您的dotnet版本! 我解决了这个问题:
$ sudo apt remove dotnet-dev-1.0.0-preview2-1-003177
$ sudo apt install dotnet-dev-1.0.0-rc4-004771
然后:
$ dotnet restore
工作顺利。
(确切地说:I rm -rf
mywebapp与yeoman一起生成并重新做了,但它不应该改变)
截至今日2017年2月19日