asp.net C# web解决方案的新管理
当我针对项目运行msbuild时,会得到一个错误:
error MSB4226: The imported project "C:\
Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Target
s" was not found. Also, tried to find "MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" in the fallback search pa
th(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program F
iles (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirm that the path in the <I
mport> declaration is correct, and that the file exists on disk in one of the search paths.项目文件前三行代码:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Package" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />我在运行MS Community2017。我读到MSBuild是作为安装的一部分包括在内的。我不太了解这是什么;社区任务与msbuild不同吗?它不是附带的吗?我是否需要下载与VS2017一起安装的msbuild?
我们非常感谢你的帮助-
Thx,
博伊德
发布于 2018-12-04 03:27:47
MSBuild社区任务是一个单独的设置:https://github.com/loresoft/msbuildtasks
https://stackoverflow.com/questions/53602629
复制相似问题