nantcontrib

Cruise Control .Net not showing Nant build errors

孤者浪人 提交于 2019-12-29 08:12:34
问题 We are running Cruise Control 1.5.7256.1 and using it to do builds using Nant and Nantcontrib. The builds are failing and succeeding correctly, but when they fail the related error messages are being shown on the CCNet Build Report page. See image below The build errors can be seen on the View Build Log page, but they aren't making it through to the Build Report page. The build itself is pretty simple, it's just a Nantcontrib msbuild element that builds a .Net 3.5 .sln file. Any ideas? 回答1:

IIS site and nant/nantcontrib?

*爱你&永不变心* 提交于 2019-12-23 13:33:09
问题 is it possible to manage IIS web applications with NAnt? For example stop or start it? 回答1: Maybe you can use exec task to execute iisreset -stop iisreset -start EDIT : And this VBS might help for stopping/starting WebApplications under IIS Here is the accespted solution to stop a website with nant task on IIS : <target name="stopSite"> <exec program="cscript.exe"> <arg value="C:\windows\system32\iisweb.vbs" /> <arg value="/stop" /> <arg value="test" /> </exec> </target> 回答2: Nant has the

Running builds using .net 3.5 MSBuild and NantContrib

孤者浪人 提交于 2019-12-23 05:05:15
问题 I noticed that projects that were originally created in VS 2008 do not compile using the nantcontrib msbuild task. There is a solution that I've seen here but it seems like a bit of a hack, considering 'MSBuildBinPath' has been depricated, and I don't exactly like the idea of changing this property on every single project file that I create in VS 2008. Short of changing build scripts to call msbuild through an exec task, is there any way to point the msbuild task at a particular version of

How to catch errors while executing VB Project using NANT?

牧云@^-^@ 提交于 2019-12-11 08:13:28
问题 We are executing all the VB projects using below NANT script:Just example <target name="VBCompile" > <property name="failure.reason" value="VBCompile" /> <trycatch> <try> <foreach item="File" property="FileName" in="${VBProj.dir}"> <echo message="Creating Dll from: $:{FileName}" /> <exec basedir=${VBProj.dir} program=${VB6.exe} commandline=/MAKE ${FileName} outdir ${VBDll.dir} </foreach> </try> <catch> <fail message="${failure.reason}"/> </catch> <finally> //..some codes </finally> </trycatch

Sample Request: <msi> task of nant-contrib

痴心易碎 提交于 2019-12-01 01:01:24
Can anyone please provide me a sample build file demostrating the use of the task of nant-contrib for creating an installer of a web application project. Damien Carol This one :) <?xml version="1.0"?> <project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nant.sf.net/release/0.85/nant.xsd http://ilqhfaatc1ws628/nant.xsd"> <!-- Nant command line: c:\nant\nant -debug+ /f:"D:\LaptopServiceTools\ShortFilenameFailure.build.xml" -v+ create.msi --> <target name="create.msi"> <setenv> <!--Set path to

Sample Request: <msi> task of nant-contrib

那年仲夏 提交于 2019-11-30 19:52:53
问题 Can anyone please provide me a sample build file demostrating the use of the task of nant-contrib for creating an installer of a web application project. 回答1: This one :) <?xml version="1.0"?> <project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nant.sf.net/release/0.85/nant.xsd http://ilqhfaatc1ws628/nant.xsd"> <!-- Nant command line: c:\nant\nant -debug+ /f:"D:\LaptopServiceTools

Cruise Control .Net not showing Nant build errors

杀马特。学长 韩版系。学妹 提交于 2019-11-29 12:17:46
We are running Cruise Control 1.5.7256.1 and using it to do builds using Nant and Nantcontrib. The builds are failing and succeeding correctly, but when they fail the related error messages are being shown on the CCNet Build Report page. See image below The build errors can be seen on the View Build Log page, but they aren't making it through to the Build Report page. The build itself is pretty simple, it's just a Nantcontrib msbuild element that builds a .Net 3.5 .sln file. Any ideas? Did you check the dashboard.config file? In this file you can add/delete xsl log parsers in the xslfileNames

The 'SQLNCLI' provider is not registered on the local machine

回眸只為那壹抹淺笑 提交于 2019-11-29 06:12:39
问题 I have a NAnt-based script which that I run on my local PC that connects to SQL Server 2008 Express also running on my local PC to drop and recreate databases using .sql files - this works fine, no problem here. The problem comes when I have recreated the same set-up on another PC, I get the error in my NAnt script saying that: System.InvalidOperationException: The 'SQLNCLI' provider is not registered on the local machine. at System.Data.OleDb.OleDbServicesWrapper.GetDataSource

<msbuild> task or msbuild.exe with NAnt?

痴心易碎 提交于 2019-11-26 11:26:08
问题 It looks like there are (at least) two options for getting nant to use csproj files: using the task of NAntContrib or using msbuild.exe directly (e.g., codecampserver). Am I reading this right, and if so, what is the advantage of using msbuild.exe over the NAntContrib task? 回答1: The NAntContrib assumes .NET Framework V2.0. If you want to use .NET 3.5, you'll need to call MsBuild.exe directly. As you upgrade to new versions of .NET, you need only modify the MSBuildPath property. Here's an