开发者

SvnCommit (MSBuild context) misses one file from the ItemGroup

I'm using MSBuild with the community tasks under TeamCity.

Just like Garrett in this thread, I update my AssemblyInfo.cs files, and then commit them.

In the solution at hand, I've got five AssemblyInfo.cs files, but only four get committed using this MSBuild code:

<Target Name="VersionCommit" DependsOnTargets="Version">
    <ItemGroup>
      <AssemblyInfoFiles Include="**/Properties/AssemblyInfo.cs;" />
    </ItemGroup>

    <SvnCommit Message="Updated verions in AssemblyInfo files." 
               Username="cc" 
               Targets="@(AssemblyInfoFiles)">
    </SvnCommit>
</Target开发者_StackOverflow社区>

I've verified that the RegEx pattern above works, i.e. finds all five files.

Any ideas why one of the files doesn't get committed?


This is embarrassing...

The RegEx pattern worked alright, but a bug in another RegEx used for actually updating the files didn't make the missing file dirty as it was supposed to.


Did you svn add the file first?

As an aside, people often get fooled by TortoiseSVN which gives you those handy little checkboxes -- they think that when they check a box on the Commit screen that they're somehow passing files to svn commit -- what they're really doing is telling Tortoise to svn add and then svn commit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜