缺少 MSBuildCommunityTasks 文件夹

MSBuildCommunityTasks folder missing

asp.net C# Web 解决方案的新管理员

当我针对项目转到 运行 msbuild 时出现错误:

 error MSB4226: The imported project "C:\
Program Files (x86)\Microsoft Visual Studio17\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 Studio17\Community\MSBuild.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" />

我正在 运行ning MS Community 2017。我读到 MSBuild 已作为安装的一部分包含在内。我不太了解这是什么;社区任务与 msbuild 不同吗?它没有附带吗?我需要单独下载它吗?与 VS2017

一起安装的 msbuild

非常感谢任何帮助 -

谢谢,

博伊德

MSBuild 社区任务是一个单独的设置:https://github.com/loresoft/msbuildtasks