[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: C# AssemblyInfo integration

From: Yves Goergen <nospam.list_at_unclassified.de>
Date: Tue, 01 Sep 2009 08:21:15 +0200

On 01.09.2009 04:20 CE(S)T, si wrote:
> Writing your own MSBuild task is easy (easier than in NAnt), here's
> the end result in one of our C# projects:
>
> <Target Name="UpdateFrameworkVersion" Condition="'$(CIBuildNumber)' != ''">
> <UpdateVersion Attribute="AssemblyFileVersion"
> AssemblyInfo=".\Properties\FrameworkAssemblyInfo.cs"
> BuildNumber="$(CIBuildNumber)" />
> </Target>

> It doesn't matter where the number(s) come from, so
> long as you can set an MSBuild property you can set it in any part of
> the version.

How can I set a property in such an MSBuild project? Can the value of a
property come from an external tool that e.g. runs across the working
copy to determine the SVN revision number?

Does this task affect the file being compiled or will I again have to
set that "don't use host compiler" flag on the csproj file? (Otherwise
the build process would ignore any changes made to the source files in a
pre-build event. But this seems to have the drawback that errors are no
longer highlighted in the source...)

-- 
Yves Goergen "LonelyPixel" <nospam.list_at_unclassified.de>
Visit my web laboratory at http://beta.unclassified.de
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2389659
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-01 08:22:12 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.