将 Visual Studio 2017RC 用于 ASP.NET Core 项目,project.json
文件将转换为 MyApplication.csproj
文件。
但是,dotnet run
命令行现在会抛出错误:
C:\Projects\MyApplication(1,0): error DOTNET1017: Project file does not exist 'C:\Projects\MyApplication\project.json'.
dotnet
是否缺少处理 .csproj
的更新?或者我应该使用不同的命令行在 Visual Studio 之外运行它吗?
最佳答案
我最近遇到了这个问题。我不得不删除所有旧版本的 .NET Core 并重新安装最新版本。一旦我这样做了,它又开始工作了。
关于visual-studio-2017 - Visual Studio 2017 和 dotnet run 命令行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41185277/