visual-studio-2017 - Visual Studio 2017 和 dotnet run 命令行失败

标签 visual-studio-2017 dotnet-cli

将 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/

相关文章:

c# - 可以将 Visual Studio 2017 与 SAP .NET 连接器 3.0 一起使用吗?

debugging - 使用 dotnet cli watch 选项进行 Visual Studio 代码调试

.net-core - 查找生成器 'identity' ...给定的程序集名称或代码库无效

.net - 无法创建迁移。错误 MSB1009 : Project file does not exist

visual-studio - 在MSBuild文件中获取VS 2017的正确$(VisualStudioVersion)

c++ - GDI+ 库导致 "error C2760: syntax error: unexpected token ' 标识符',在 VS2017 中为 XP 编译时预期为 'type specifier'"

c# - 在 dotnet 构建或发布期间无法找到包含目录的存储库

c# - 在非 c# 文件中的 dotnet 新模板中添加可选内容

c# - 有没有办法直接受益于 Roslyn C# 编译器的 AST?

c# - 如何使用 msbuild 15 从生成的 nuget 包中的 nuspec 文件中删除依赖项部分