BuildAutomation/fxcop.xml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<project xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" name="Application.FxCop" default="FxCop.Execute">	
	
	<include buildfile="${args.settings.file}" />
	<loadtasks assembly="..\lib\External\NAntContrib\0.85\NAnt.Contrib.Tasks.dll" />

	
	
	<!-- ****************************************************************************************
		<summary>Runs the unit tests.</summary>
	      **************************************************************************************** -->
	<target name="FxCop.Execute">
		<call target="FxCop.CheckArguments" />
		<call target="FxCop.SetVariables" />
		<call target="FxCop.ExecuteFXCopTask" />
	</target>
	
	
	<target name="FxCop.SetVariables">
		<!-- Set the  project file . -->
        <property name="fxcop.projectFileFullPath" value="${fxcop.projectFile.dir}\${fxcop.projectFile}"/>		
	</target>
	
	
	<!-- ****************************************************************************************
		<summary>Executes the FXcop rule checking.
			The assemblies to check are referenced in the project file.
		</summary>
	      **************************************************************************************** -->
	<target name="FxCop.ExecuteFXCopTask">
		<fxcop projectFile="${fxcop.projectFileFullPath}" 
			   failonerror="false" applyOutXsl="false" 
			   analysisReportFilename="${fxcop.xmlResultsFile}" />   
	</target>
	
	
	<!-- ****************************************************************************************
		<summary>Executes the FXcop rule checking.
		fxcopcmd.exe 
			/p:application.fxcop 
			/o:fxcopResults.xml 
			/f:"C:\kishore\bus\Cab\Neekho\Tests\Neekho.Apps.Tests\Neekho.WinApp\bin\Debug\Neekho.Core.dll" 
			/f:"C:\kishore\bus\Cab\Neekho\Tests\Src\Neekho.Apps.Tests\Neekho.WinApp\bin\Debug\Neekho.BusinessEntities.dll" 
		</summary>
	      **************************************************************************************** -->
	<target name="FxCop.ExecuteFXCop">
		<property name="fxcop.args" value='/p:"${fxcop.projectFileFullPath}"'/>
		<property name="fxcop.args" value='${fxcop.args} /o:"${fxcop.xmlResultsFile}"' />
		
		<echo message="RUNNING COMMAND ${fxcop.path} IN ${fxcop.workingDir} WITH ARGUMENTS ${fxcop.args}."/>
		
		<exec program="${fxcop.path}"
				commandline='${fxcop.args}'
				workingdir="${fxcop.workingDir}" output="${fxCop.logfile}" 
				failonerror="false" resultproperty="fxcop.result"/>
		
		<!-- Check the results and fail if necessary -->
        <fail message="Failures reported in FX-COP rule checks." unless="${int::parse(fxcop.result)==0}" />    
	</target>
	
	
后面还有 30 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。