尝试编译Python Django项目时遇到构建错误:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: 找不到.NETFramework,Version=v4.0的引用程序集。要解决此问题,请安装此框架版本的开发人员包(SDK / Targeting Pack)或重新定向应用程序。您可以在https://aka.ms/msbuild/developerpacks下载.NET Framework Developer Packs。
如何解决?
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: 找不到.NETFramework,Version=v4.0的引用程序集。要解决此问题,请安装此框架版本的开发人员包(SDK / Targeting Pack)或重新定向应用程序。您可以在https://aka.ms/msbuild/developerpacks下载.NET Framework Developer Packs。
如何解决?