[Mono-list] monodoc - update.exe

Martin Willemoes Hansen mwh@sysrq.dk
Tue, 21 Oct 2003 12:17:25 +0200


--=-UHYCg+t2PdGqWwVB+mr7
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2003-10-21 at 07:11, Giuseppe Greco wrote:

> Hi all,
> 
> How can I update <AssemblyVersion> in the <AssemblyInfo>
> element automatically?
> 
> For instance, the first time I run update.exe,
> <AssemblyVersion> is set to the same value as in the
> AssemblyInfo.cs file... but subsequent updates don't
> modify <AssemblyVersion> anymore.



You could probably run the files through sed like:

for file in *.xml; do
    sed s/0.0.0.0/1.1.1.1/g < $file > $file.xml.new;
done;

or something similar.


> Is this the desired behavior, or is it a bug?



Im not sure, but I think it would be a bug. Talk a little with Duncan
about it.


> Thanks,
> Gius_.
> 
> 
> ----------------------------------------
> Giuseppe Greco
> 
> ::agamura::
> 
> phone:  +41 (0)91 604 67 65
> mobile: +41 (0)76 390 60 32
> email:  giuseppe.greco@agamura.com
> web:    www.agamura.com
> ----------------------------------------
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------               


--=-UHYCg+t2PdGqWwVB+mr7
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
On Tue, 2003-10-21 at 07:11, Giuseppe Greco wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Hi all,

How can I update &lt;AssemblyVersion&gt; in the &lt;AssemblyInfo&gt;
element automatically?

For instance, the first time I run update.exe,
&lt;AssemblyVersion&gt; is set to the same value as in the
AssemblyInfo.cs file... but subsequent updates don't
modify &lt;AssemblyVersion&gt; anymore.</PRE>
</BLOCKQUOTE>
<PRE></I></FONT></PRE>
You could probably run the files through sed like:<BR>
<BR>
for file in *.xml; do<BR>
&nbsp;&nbsp;&nbsp; sed s/0.0.0.0/1.1.1.1/g &lt; $file &gt; $file.xml.new;<BR>
done;<BR>
<BR>
or something similar.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Is this the desired behavior, or is it a bug?</PRE>
</BLOCKQUOTE>
<PRE></I></FONT></PRE>
Im not sure, but I think it would be a bug. Talk a little with Duncan about it.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#737373"><I>Thanks,
Gius_.


----------------------------------------
Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  giuseppe.greco@agamura.com
web:    </FONT><A HREF="http://www.agamura.com"><U>www.agamura.com</U></A>
<FONT COLOR="#737373">----------------------------------------
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com</FONT>
<A HREF="http://lists.ximian.com/mailman/listinfo/mono-list"><U>http://lists.ximian.com/mailman/listinfo/mono-list</U></I></A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------               
</PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>

--=-UHYCg+t2PdGqWwVB+mr7--