Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a MSBUILD or TFS property that can be used to get the comment of the person committing a checkin?
    text
    copied!<p>I'm currently trying to add a set of commands for the AfterBuild event of my build. The commands are as follows</p> <ol> <li>Checkout files in ..\Binaries\Latest\$(ConfigurationName)\</li> <li>Copy build output to ..\Binaries\Latest\$(ConfigurationName)\</li> <li>Checkin files to ..\Binaries\Latest\$(ConfigurationName)\</li> </ol> <p>The section defined in my project file looks like</p> <pre><code> &lt;Target Name="AfterBuild"&gt; &lt;PropertyGroup&gt; &lt;TF&gt;"$(VS100COMNTOOLS)..\IDE\tf.exe"&lt;/TF&gt; &lt;/PropertyGroup&gt; &lt;!-- include the Challenges dll and config --&gt; &lt;ItemGroup&gt; &lt;UtilityDLLs Include="$(OutDir)\*.*" /&gt; &lt;/ItemGroup&gt; &lt;!-- Automticly checkout files --&gt; &lt;Exec Condition=" '$(BuildingInsideVisualStudio)' == 'false' " Command="$(TF) checkout /noprompt /recursive $(SolutionDir)..\Binaries\Latest\$(ConfigurationName)\"&gt; &lt;/Exec&gt; &lt;!-- copy the file to features build output--&gt; &lt;Copy Condition=" '$(BuildingInsideVisualStudio)' == 'false' " ContinueOnError="true" OverwriteReadOnlyFiles="true" SourceFiles="@(UtilityDLLs)" DestinationFolder="$(SolutionDir)..\Binaries\Latest\$(ConfigurationName)\" /&gt; &lt;!-- Automatically checkin files --&gt; &lt;Exec Condition=" '$(BuildingInsideVisualStudio)' == 'false' " Command="$(TF) checkin /noprompt /recursive /comment:"COMMENT HERE" $(SolutionDir)..\Binaries\Latest\$(ConfigurationName)\"&gt; &lt;/Exec&gt; &lt;/Target&gt; </code></pre> <p>In my last command, you'll see the option of /comment:"COMMENT HERE"</p> <p>I would like to substitute "COMMENT HERE" with the MSBUILD or TFS property that contains the comment of the dev who made the initial checkin. Is this an option? If so, how do I accomplish this?</p> <p>I didn't find one in <a href="http://msdn.microsoft.com/en-us/library/bb629394.aspx" rel="nofollow">Common MSBuild Project Properties</a></p> <p><strong>Elaboration</strong></p> <p>Without divulging too much information, let me elaborate on what I'm trying to accomplish. Our TFS structure is essentionally laid out something like this</p> <ul> <li>trunkCore <ul> <li>Library1</li> <li>Library2</li> <li>Library3</li> </ul></li> <li>trunkWeb <ul> <li>CoreBinaries</li> </ul></li> <li>trunkAPI <ul> <li>CoreBinaries</li> </ul></li> </ul> <p>When a developer checks in a change to /trunkCore/Library# a build kicks off and the resulting binaries are automatically checked into /trunkWeb/CoreBinaries and /trunkAPI/CoreBinaries. The checkin occurs as a result of the AfterBuild config settings I have defined in the Library1, Library2, and Library3 csproj files (as seen above).</p> <p>The initial code checkin and the checkin of the binaries are two seperate checkins. I would like to reference the comment of the original code checkin in the checkin notes of the automated checkin instead of using some canned text like "Automated checkin of binaries". Doing so would offer much more clarity when viewing history of the binaries in the CoreBinaries directories. This isn't a must have but most definitely would be nice.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload