Assembly versioning


G

Guest

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
 
Ad

Advertisements

M

Markus

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
 
Ad

Advertisements

W

WenYuan Wang

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top