[nem-en] Nemerle for VisualStudio redist.
Michal Moskal
michal.moskal at gmail.com
Sat Dec 30 21:51:12 CET 2006
On 12/30/06, Michal Moskal <michal.moskal at gmail.com> wrote:
> On 12/30/06, Kamil Skalski <kamil.skalski at gmail.com> wrote:
> > Yap, this is a better idea.
> > We can use svn ID keyword substitution, but it poses a little problem
> > - it allows automatic update of marked files, which contains strings
> > of form:
> >
> > .. $Revision: 235 $ ....
> >
> > The problem is that we cannot easily change this string into proper
> > AssemblyVersion attribute's string.
> >
> > One solution, which I implemented in my project is having the
> > "template" of AssemblyInfo.n files, which contain:
> > [assembly: AssemblyFileVersion("2.1.3.$Revision: 235 $")]
> >
> > and generate the ready file by replacing $Revision: 235 $ with 235
> >
> > But I think now that we could better use a macro, which would just add
> > the proper attribute to the assembly or maybe have the subclass of
> > AssemblyFileVersionAttribute to do the replacement in constructor
> > (like somebody mentioned before).
>
> We're already doing some magic in calls to this constructor
> ('*'-processing), so we could as well drop $Rev:$. We won't break
> anything (this kind of stuff is illegal in version anyway), and other
> people can also use it in their projects.
Pff... it's pointless anyway, since SVN puts there the last revision
the file was changed. So you would have to update AssemblyInfo.n for
it to change :/
OTOH a std library macro invoking 'svn info' (or anything else,
really) would be funny ;)
--
Michał
More information about the devel-en
mailing list