use the version task and the asminfo task !
split your assemblyinfo.cs in two
- one is maintained manually and contains everything but the assembly version
attribute
- the other one will be auto-generated by the asminfo task and will contain the
version number from the version task. this number is passed through a propery set by
the version task (see prefix)
<version path="VersionInfo.txt" buildtype="noincrement" prefix="assembly."
revisiontype="increment" />
<asminfo output="VersionInfo.cs" language="CSharp">
<imports>
<import name="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyVersionAttribute" value="${assembly.version}"
/>
<attribute type="AssemblyCopyrightAttribute" value="2003 (c) ME !" />
</attributes>
</asminfo>
if you have many projects, use a foreach.
no executables, works with VB
if you don't like the version task, claim for an enhancement, i use it "as is" anyway.
����^�����)�{(��[�8b�A�zE���&z� y�!y�ޞm���)��r����Z�۬z�&j)b�
b��Z�۬z�%��l���q���z�m��?�X���(��~��zw��X�����b��?����ǫ