PC Review


Reply
Thread Tools Rate Thread

Assembly versioning

 
 
=?Utf-8?B?TWFyaw==?=
Guest
Posts: n/a
 
      21st Jan 2007
Hi...

As part of our automated build process, we'd like to put the subversion
revision in the rev part of the assembly version. How would someone get a
value determined at compile time into the assembly build? I've googled
around a bit on the subject and I found one reference to a little app that
manually rewrites AssemblyInfo.cs in a pre-process, and another where one
plugs their own class into the project build to manage the IncrementRevision
function.

What's the best way?

Thanks
-Mark

 
Reply With Quote
 
 
 
 
Markus
Guest
Posts: n/a
 
      22nd Jan 2007
Hi,

> As part of our automated build process, we'd like to put the
> subversion revision in the rev part of the assembly version. How
> would someone get a value determined at compile time into the
> assembly build? I've googled around a bit on the subject and I found
> one reference to a little app that manually rewrites AssemblyInfo.cs
> in a pre-process, and another where one plugs their own class into
> the project build to manage the IncrementRevision function.
>
> What's the best way?


Have a look at the MSBuildCommunity task called AssemblyInfo, this
writes an AssemblyInfo.cs file (http://msbuildtasks.tigris.org/).

I use it to write a GlobalAssemblyInfo.cs file, that is included
(referenced) in all projects. This only contains the version info, but
still all projects have their individual AssemblyInfo.cs file and have
the option to define assembly related informations.

hth
Markus
 
Reply With Quote
 
WenYuan Wang
Guest
Posts: n/a
 
      24th Jan 2007
Hi Mark,
Thanks for Markus's information.

I just want check if the method mentioned by Markus is what you need.
If you have any further questions or concerns on this, please feel free to
reply me and we will follow up. I'm glad to work with you.

Have a great day!
Wen Yuan
Microsoft Online Community Support
===============================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
===============================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly versioning mike Microsoft Dot NET Framework 1 20th Oct 2005 05:28 PM
Assembly versioning Ily Microsoft ASP .NET 2 4th Apr 2005 07:13 PM
Assembly versioning Klaus Aschenbrenner Microsoft Dot NET Framework 0 17th Mar 2005 02:31 PM
Assembly Versioning Query. Microsoft Dot NET Framework 0 12th Aug 2004 02:26 PM
Dot net assembly versioning Coder Microsoft C# .NET 3 15th Nov 2003 12:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:21 PM.