c# - The imported project "\packages\Microsoft.Net.Compilers.3.3.1\tools\Microsoft.CSharp.Core.targets" was not found
问题描述
After upgrading Microsoft.Net.Compilers from 3.1.1 to 3.3.1 in VS 2019, project build fails with:
The imported project "...\packages\Microsoft.Net.Compilers.3.3.1\tools\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Sure enough, there is no "tools" folder at packages\Microsoft.Net.Compilers.3.3.1\
I have tried deleting the packages folder and restoring Nuget packages as suggested by similar questions but the folder is still not there.
解决方案
推荐阅读
- javascript - Lodash 按键组数组
- cron - 如何使用 Bitnami LAMP 堆栈在 LightSail 服务器上运行自定义 cron 作业?
- reactjs - React / Redux / Meteor:在回调中调度一个动作的方法,被调用两次
- python - Python Pandas - 返回特定列下的值数
- powershell - 试图理解我没见过的powershell语法,涉及sshpass和小写命令
- logging - 堆栈驱动程序查询抛出 400 GoogleJsonResponseException:400 错误请求“请求包含无效参数”
- node.js - 如果脚本构建失败,如何停止 npm start
- vba - 将字符串转换为 VBA 全局变量
- java - 将 arraylist 字符串转换为双精度数组
- r - Mutate with apply statement in dplyr chain