更新时间:2022-02-09 23:44:08
嗨David Coxsey,
Hi David Coxsey,
感谢您在此发布。
您在VSTS中使用的构建任务是什么? MSBuild或Visual Studio Build?
What is build task you are using in the VSTS? MSBuild or Visual Studio Build?
在项目文件中,导入代码为:
In the project file, the import code is:
<Import Project="
(MSBuildExtensionsPath)\Reporting Services \ Microsros.ReportingServices.MSBuilder.targets" />
(MSBuildExtensionsPath)\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets" />
MSBuildExtensionsPath的值取决于MSBuild版本,如果您使用的是Visual Studio 2017 / MSBuild 15.0,则此变量的值应为:
The value of MSBuildExtensionsPath is depends on the MSBuild version, if you are using Visual Studio 2017/MSBuild 15.0, the value of this variable should be:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Reporting Services
如果您使用的是Visual Studio 2015 / MSuild 14.0及更低版本,则值应为:
If you are using Visual Studio 2015/MSuild 14.0 and below, the value should be:
C:\Program Files (x86)\MSBuild
根据错误信息,值为C:\Program Files(x86)\ MSBuild,确保您没有在VSTS上使用VS2017 / MSBuild 15.0,并且你可以在那个文件夹上找到这个文件。
According to the error info, the value is C:\Program Files (x86)\MSBuild, make sure you are not using VS2017/MSBuild 15.0 on VSTS, and you can find this file on that folder.
如果上面没有帮助你,请你在这里分享你关于构建任务的配置吗?
If above not help you, could you please share your configuration about Build task here?
希望这会有所帮助。