执行ReSharper InspectCode .MSBUILD任务文件时:
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="C:\Download\JetBrains.ReSharper.CommandLineTools.2018.1.2\InspectCode.MsBuild.Targets" />
<Target Name="Build">
<InspectCode ContinueOnError="False" SolutionFile="C:\source\xx\Dev\xx.Re.xx.sln" />
</Target>
</Project>
使用以下命令:
msbuild c:\temp\test.msbuild
我收到以下错误:
解决组件请求时出错 Microsoft.Build.Framework.IBuildEngine in ComponentAccessCardinality ::上下文中的单一模式“for in Container:JetEnvironment”。序列包含多个 一个元素
完成错误: https://pastebin.com/mCKsFtfH
inspect code命令按预期完成,显示resharper错误/警告列表,但是数据已写入stderr输出这意味着构建失败。
所以: