重现步骤
- 在Ubuntu16.04中安装了.NET core
- 使用 Yeomen 生成 Web 应用程序
- 生成了以下文件/文件夹
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
预期行为
Dotnet restore
dotnet run
应该恢复并编译
实际行为
Dotnet restore
dotnet run
不工作
错误:
"warn : The folder '/home/WebApplication' does not contain a project to restore.
环境数据
- dotnet --info 输出:dotnet-dev-1.0.0-preview2.1-003177
最佳答案
只需更新您的 dotnet 版本即可! 我解决了这个问题:
$ sudo apt remove dotnet-dev-1.0.0-preview2-1-003177
$ sudo apt install dotnet-dev-1.0.0-rc4-004771
然后:
$ dotnet restore
工作顺利。
(确切地说:我用 yeoman 生成了 rm -rf
mywebapp 并重新做了它,但它不应该改变)
截至今天 2017 年 2 月 19 日
关于.net-core - Ubuntu 16.04 中 WebApplication(XXX) 文件夹不包含要恢复的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42264878/