From: Michael D. <mik...@us...> - 2004-08-10 16:40:23
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12079/src/NHibernate Modified Files: nhibernate.build Log Message: Updated build files for dynamically generating AssemblyInfo.cs files. Index: nhibernate.build =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/nhibernate.build,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** nhibernate.build 22 Jul 2004 13:35:02 -0000 1.12 --- nhibernate.build 10 Aug 2004 16:40:14 -0000 1.13 *************** *** 12,20 **** --- 12,50 ---- * build.debug - (true|false) debug build? * current.build.defines - framework-specific build defines + * project.version - full project version + * project.version.major - the major number of the build + * project.version.minor - the minor number of the build + * project.version.build - the build number + * sign - indicates if the Assembly should be signed --> + <property name="keyFile" value="" /> <target name="build" description="Build NHibernate"> + <!-- ensure the AssemblyInfo is writable --> + <attrib file="AssemblyInfo.cs" readonly="false" /> + <if propertytrue="sign"> + <property name="keyFile" value="..\NHibernate.snk" /> + </if> + + <asminfo output="AssemblyInfo.cs" language="CSharp"> + <imports> + <import name="System.Reflection" /> + <import name="System.Runtime.CompilerServices" /> + </imports> + <attributes> + <attribute type="AssemblyTitleAttribute" value="${nant.project.name} for ${current.runtime.description}" /> + <attribute type="AssemblyDescriptionAttribute" value="An object persistence library for relational databases." /> + <attribute type="AssemblyCompanyAttribute" value="nhibernate.sourceforge.net" /> + <attribute type="AssemblyProductAttribute" value="${nant.project.name}" /> + <attribute type="AssemblyCopyrightAttribute" value="Licensed under LGPL." /> + <attribute type="AssemblyVersionAttribute" value="${project.version}" /> + <attribute type="AssemblyInformationalVersionAttribute" value="${project.version.major}.${project.version.minor}" /> + <attribute type="AssemblyFileVersionAttribute" value="${project.version}" /> + <attribute type="AssemblyKeyFileAttribute" value="${keyFile}" /> + </attributes> + </asminfo> + <csc target="library" |