【发布时间】:2021-10-30 09:10:17
【问题描述】:
我从 GitHub 存储库克隆了我的项目,并在 Visual Studio 中打开项目时收到以下错误:
C:\path\to\project\test.pyproj : error : The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\v16.0\Python Tools\Microsoft.PythonTools.Django.targets" was not found. Also, tried to find "Microsoft\VisualStudio\v16.0\Python Tools\Microsoft.PythonTools.Django.targets" in the fallback search path(s) for $(MSBuildExtensionsPath32) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Users\me\AppData\Local\Microsoft\VisualStudio\16.0_e9ead341\devenv.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. C:\path\to\project\test.pyproj
我已尝试更改声明并尝试验证我是否安装了所有正确的 Visual Studio 工作负载,但问题仍然存在。该项目是一个运行 Python 的 Web 应用程序,后端使用 Django,前端使用 JavaScript。
【问题讨论】:
标签: python django visual-studio web-development-server