.net - 构建 .NET Framework 4.7.2 项目时的 MSB4019 Microsoft.WebApplication.targets
问题描述
当我使用
dotnet build
使用 .NET Framework 4.7.2 项目构建解决方案,我收到以下错误
error MSB4019: The imported project "C:\Program Files\dotnet\sdk\3.1.101\
Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" was not found.
Confirm that the expression in the Import declaration "C:\Program files\dotnet\sdk\3.1.101\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets"
is correct, and that the file exists on disk.
在 VS2019 中,项目构建正确。如何修复路径?
.NET Core 3.1 SDK 已安装,我也尝试安装 .NET Framework 4.7.2 SDK - 没有结果
解决方案
推荐阅读
- ruby-on-rails - 在 Rails 服务中处理数据的最佳方式
- c++ - 将字符串放入链表
- phpword - 如何在 PHPWord 中为传入的 HTML 添加样式
- sql - 从本地网络中的共享位置附加 SQL Server 数据库中的 .mdf / .ldf 文件
- javascript - 使用哪个替代方法代替 document.write()?
- powershell - 将条件应用于命令行开关的输出
- javascript - 如何在 iOS 的 Ionic 电容器中为登录表单打开 webview 自动完成功能?
- python - 无法在 python 中实现 __repr__() 方法
- swift - 从共享扩展中的 NSItemProvider 获取 PDF 文件的 url
- prolog - X 在诸如“example([X|L1], [X,X|L2])”之类的谓词的第二个操作数中计算为什么