.NET Core:WebApplication(XXX)的文件夹不包含要在Ubuntu 16.04中还原的项目

时间:2017-02-16 04:20:07

标签: .net yeoman core

重现的步骤

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

1 个答案:

答案 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日