Jump to content

Recommended Posts

Posted

I am trying to sort out a build system using the MSBuild product that comes with the .NET framework.

 

Specifically, I am looking to check out various ASsemblyInfo.cs files, update the build number and then check them back in.

 

I am storing the build number itself in VSS as it should only be update daily and it's shared with multiple projects.

 

So 2 questions

 

1) How can I update the build number by getting the version file, having MSBuild utilize it/read it in some fashion (I could store it as a XML file and MSBuild should be able to suck it in as some sort of parameter) and then update the AssemblyInfo files to reflect the value it has.

 

2) Looping.* I Understand that using the % simulates a for loop to some degree.* However, in the case of checking in checking out of VSS using the MSBuild.Community.Tasks.Targets package I am finding I have to make one CheckIn/CheckOut call per file which strike me as a bit daft.* For example for Checkin it looks something like this:

 

*

**

**

**

**

**

***

******

**

 

There must be some way I can make use of an ItemGroup to reduce this to one VssCheckin block.* Because botht the LocalPath and Path values have dynamic content in this sense using two "%" in a VssCheckin call does not work very well :-)

 

Suggestions?

 

Thanks,

 

Col

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...