[英]MSBUILD failing with error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found
I have a.net48 SDK project (library), and on my build machine it has suddenly stopped building (and re-running prior commits fail).我有一个 .net48 SDK 项目(库),在我的构建机器上它突然停止构建(并且重新运行之前的提交失败)。
Where does MSBuild look for the Microsoft.NET.Sdk for a .net framework (not core) project? MSBuild在哪里寻找.net框架(非核心)项目的Microsoft.NET.Sdk? I think it may have actually have been deleted, but I can't be sure since I don't know where to check....我认为它可能实际上已被删除,但我不能确定,因为我不知道在哪里检查....
You need do.net sdk
installed on your build machine.您需要在构建机器上安装do.net sdk
。
SDK-style projects - even when targeting full FW - need do.net
. SDK 风格的项目——即使是针对完整的固件——也需要do.net
。 See https://learn.microsoft.com/en-us/do.net/core/project-sdk/overview for more details.有关详细信息,请参阅https://learn.microsoft.com/en-us/do.net/core/project-sdk/overview 。
Btw.顺便提一句。 Binlog viewer and binary MSBuild log (produced via -bl
option) is a great tool to troubleshoot your build issues. Binlog 查看器和二进制 MSBuild 日志(通过-bl
选项生成)是解决构建问题的好工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.