1. 程式人生 > >VS2013 error MSB6001 “cmd.exe” 返回值為1

VS2013 error MSB6001 “cmd.exe” 返回值為1

 轉載來自blog:http://blog.csdn.net/jhgameboy/article/details/23624059

   簡單的說,就是在Microsoft.CppCommon.targets中找到

        Look for the CustomBuild task definition:
        <Target Name="CustomBuild"
        Condition="'@(CustomBuild)' != ''"
        DependsOnTargets="SelectCustomBuild;ComputeCustomBuildOutput"
        BeforeTargets="$(CustomBuildToolBeforeTargets)"
        AfterTargets="$(CustomBuildToolAfterTargets)"
        >

        並在下面加入這段

     <ItemGroup>
     <_ExpandedAdditionalInputs Include="%(CustomBuild.AdditionalInputs)"/>
     <_ExpandedOutputs Include="%(CustomBuild.Outputs)"/>
     <CustomBuild>
     <AdditionalInputs>@(_ExpandedAdditionalInputs)</AdditionalInputs>
     <Outputs>@(_ExpandedOutputs)</Outputs>
     </CustomBuild>
     </ItemGroup>

         重新生成解決方案