Mark Modrall wrote: > > Hi… > > I was thinking of using <replacetoken> to swap in some build time and > version info at nant time in my AssemblyInfo.cs’es, but according to > the docs, those elements are only applicable to <move> and <copy>. I’d > like to simply do the substitutions in place. I can always svn revert > when the build is done. > One good way to deal with this situation is to store the file as AssemblyInfo.cs.orig, and then use <copy> to create the real one. That gets around the problem of modifying a file that's under source control but shouldn't be checked back in.
The downside to this approach is that it creates problems for developers using Visual Studio, unless you're willing to include a pre-build action to automatically create the AssemblyInfo.cs file, possibly requiring developers to install NAnt on their machines. Gary ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users