⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netbpmversiontest.build

📁 基于DotNet的开源工作流引擎
💻 BUILD
字号:
<?xml version="1.0" ?>

<project 
	name="NetBpm.VersionTest" 
	default="build" 
	xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd"
>
	<target name="build" depends="buildV1, buildV2"/>

	<target name="buildV1" description="Build NetBpm v2">
					
		<!-- ensure the AssemblyInfo is writable -->
		<attrib file="src/v1/NetBpm.VersionTest/AssemblyInfo.cs" readonly="false" />
		
		<asminfo output="src/v1/NetBpm.VersionTest/AssemblyInfo.cs" language="CSharp">
			<imports>
				<import namespace="System" />
				<import namespace="System.Reflection" />
				<import namespace="System.Runtime.CompilerServices" />
				<import namespace="System.Runtime.InteropServices" />
			</imports>
			<attributes>
				<attribute type="CLSCompliantAttribute" value="false" />
				<attribute type="ComVisibleAttribute" value="false" />
				<attribute type="AssemblyTitleAttribute" value="${nant.project.name} for ${current.runtime.description}" />
				<attribute type="AssemblyDescriptionAttribute" value="NetBpm is a .Net port of JBpm1. NetBpm is an open source platform for building, executing and managing workflows." />
				<attribute type="AssemblyCompanyAttribute" value="${project.company}" />
				<attribute type="AssemblyProductAttribute" value="${nant.project.name}" />
				<attribute type="AssemblyCopyrightAttribute" value="Licensed under Apache License, Version 2.0." />
				<attribute type="AssemblyVersionAttribute" value="1" />
				<attribute type="AssemblyInformationalVersionAttribute" value="${project.version.major}.${project.version.minor}" />
				<attribute type="AssemblyFileVersionAttribute" value="${project.version}" />
			</attributes>
		</asminfo>

		<csc 
			target="library" 
			define="${current.build.defines}" 
			debug="${build.debug}" 
			output="v1/lib/${nant.project.name}.dll" 
			doc="${build.dir}/bin/${nant.project.name}.xml"
		>
			<nowarn>
				<warning number="1573" />
				<warning number="1591" />
			</nowarn>
			<!--
				Documentation related warnings.  Basically it's not going to output a warning when there
				is no attempt at documentation.  If the code has documentation but there is a problem with
				it then lets warn the developer during the build.
				
				CS1571: XML comment on 'construct' has a duplicate param tag for 'parameter'
				CS1572: XML comment on 'construct' has a param tag for 'parameter', but there is no parameter by that name
				CS1573: Parameter 'parameter' has no matching param tag in XML comment (but other parameters do)
				CS1574: XML comment on 'construct' has cref attribute 'item' that could not be found
				CS1580: Invalid type for parameter 'parameter number' in XML comment cref attribute
				CS1581: Invalid return type in XML comment cref attribute
				CS1584: XML comment on 'member' has syntactically incorrect cref attribute 'invalid_syntax'
				CS1587: XML comment is not placed on a valid language element
				CS1589: Unable to include XML fragment 'fragment' of file 'file' - reason
				CS1590: Invalid XML include element - Missing file attribute
				CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
				CS1592: Badly formed XML in included comments file - 'reason'
			-->
			
			<sources failonempty="true">
				<include name="src/v1/**/*.cs" />
			</sources>
						
			<references basedir="${build.dir}/bin">
				<include name="${nant.settings.currentframework.frameworkassemblydirectory}/System.dll" />
				<include name="${nant.settings.currentframework.frameworkassemblydirectory}/System.XML.dll" />
				<include name="${nant.settings.currentframework.frameworkassemblydirectory}/System.Data.dll" />
				<include name="**/*.dll" />
			</references>
	
		</csc>
	</target>

	<target name="buildV2" description="Build NetBpm v2">
					
		<!-- ensure the AssemblyInfo is writable -->
		<attrib file="src/v2/NetBpm.VersionTest/AssemblyInfo.cs" readonly="false" />
		
		<asminfo output="src/v2/NetBpm.VersionTest/AssemblyInfo.cs" language="CSharp">
			<imports>
				<import namespace="System" />
				<import namespace="System.Reflection" />
				<import namespace="System.Runtime.CompilerServices" />
				<import namespace="System.Runtime.InteropServices" />
			</imports>
			<attributes>
				<attribute type="CLSCompliantAttribute" value="false" />
				<attribute type="ComVisibleAttribute" value="false" />
				<attribute type="AssemblyTitleAttribute" value="${nant.project.name} for ${current.runtime.description}" />
				<attribute type="AssemblyDescriptionAttribute" value="NetBpm is a .Net port of JBpm1. NetBpm is an open source platform for building, executing and managing workflows." />
				<attribute type="AssemblyCompanyAttribute" value="${project.company}" />
				<attribute type="AssemblyProductAttribute" value="${nant.project.name}" />
				<attribute type="AssemblyCopyrightAttribute" value="Licensed under Apache License, Version 2.0." />
				<attribute type="AssemblyVersionAttribute" value="2" />
				<attribute type="AssemblyInformationalVersionAttribute" value="${project.version.major}.${project.version.minor}" />
				<attribute type="AssemblyFileVersionAttribute" value="${project.version}" />
			</attributes>
		</asminfo>

		<csc 
			target="library" 
			define="${current.build.defines}" 
			debug="${build.debug}" 
			output="v2/lib/${nant.project.name}.dll" 
			doc="${build.dir}/bin/${nant.project.name}.xml"
		>
			<nowarn>
				<warning number="1573" />
				<warning number="1591" />
			</nowarn>
			<!--
				Documentation related warnings.  Basically it's not going to output a warning when there
				is no attempt at documentation.  If the code has documentation but there is a problem with
				it then lets warn the developer during the build.
				
				CS1571: XML comment on 'construct' has a duplicate param tag for 'parameter'
				CS1572: XML comment on 'construct' has a param tag for 'parameter', but there is no parameter by that name
				CS1573: Parameter 'parameter' has no matching param tag in XML comment (but other parameters do)
				CS1574: XML comment on 'construct' has cref attribute 'item' that could not be found
				CS1580: Invalid type for parameter 'parameter number' in XML comment cref attribute
				CS1581: Invalid return type in XML comment cref attribute
				CS1584: XML comment on 'member' has syntactically incorrect cref attribute 'invalid_syntax'
				CS1587: XML comment is not placed on a valid language element
				CS1589: Unable to include XML fragment 'fragment' of file 'file' - reason
				CS1590: Invalid XML include element - Missing file attribute
				CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
				CS1592: Badly formed XML in included comments file - 'reason'
			-->
			
			<sources failonempty="true">
				<include name="src/v2/**/*.cs" />
			</sources>
						
			<references basedir="${build.dir}/bin">
				<include name="${nant.settings.currentframework.frameworkassemblydirectory}/System.dll" />
				<include name="${nant.settings.currentframework.frameworkassemblydirectory}/System.XML.dll" />
				<include name="${nant.settings.currentframework.frameworkassemblydirectory}/System.Data.dll" />
				<include name="**/*.dll" />
			</references>
	
		</csc>
	</target>

</project>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -