मेरे पास निम्नलिखित exec कार्य है, assemblyinfo.cs फ़ाइलों का चेकइन निष्पादित करता है। मैं निकास कोड वापस करने की कोशिश कर रहा हूं, लेकिन किसी कारण से यह हमेशा खाली रहता है।एमएसबिल्ड निष्पादन कार्य, निकास कोड खाली
<!--Checkin if all succeeded-->
<Exec Condition=" '$(LocalCompilationSuccess)' != 'Failed' and '$(LocalTestSuccess)' != 'Failed' " ContinueOnError="True"
Command='"$(TfCommand)" checkin /recursive /comment:"$(NoCICheckInComment) $(BuildDefinitionName): build succeeded, checkin changes." /override:"TeamBuild $(BuildDefinitionName)" $/SomeProject/Trnk' WorkingDirectory="$(SolutionRoot)" >
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
</Exec>
मैं 2 तरीकों से बाहर निकलने के कोड को पढ़ने के लिए कोशिश की है:
'%(ErrorCode.Identity)'
'$(ErrorCode)'
दोनों खाली हैं। कोई सुझाव?
अजीब, '' की कोशिश – sll