nant

TeamCity and NAnt: With what to send build success / failed email ?

I want to send an email if the build fails to the developers, with the fail details. I'm also wants to send a success email to the project admins, etc with the address to the new test application. What is the proper tool to send the actual mail, TeamCity or NAnt? ...

Problems upgrading VB.Net 2008 project into VS2010

Hi there, I have been upgrading several different VS2008 projects into VS2010 and have found a problem with VB.Net projects when they are converted. Once converted, the .vbproj files have changed from this in VS2008: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> ...

nant: invalid element nunit2. Unknown task or datatype

How to solve this problem? I have this ProjectName.UnitTests.config file, and I did exactly what the documentation said: http://nant.sourceforge.net/release/latest/help/tasks/nunit2.html <?xml version="1.0" encoding="utf-8" ?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> ...

Nant <cl> task: how to link libs?

Hi all, my first question on stackoverflow!! I'm usgin the last NANT version: 0.90 How do i specify the lib names using the task? Example: how do i link with the gtest.lib? Morover i have a curisoity: why NANT doesn't allow an external property file? Example: It would be great if one of the developer answers. Is there a ratio or is ...

Embeding a licenses.licx file into an exe using MSBuild via a NAnt script

We have an automated build setup using TeamCity for our application. This application uses Active Reports 6, which use a license.licx file for licensing. When I build using Visual Studio on the build machine, everything is cool and the license is recognized when I distribute my application to others. The problem is that our build serv...

NAnt errors when generating assembly info after project is upgraded to VS2010

I have a project I recently upgraded to VS2010 - the project/solution files are updated, but I'm still targeting .NET 3.5. Until now, my standard NAnt build script has not given me any trouble. However, it appears that after updating the project, and updating the NAnt config to be aware of the new tooling, I am now receiving an error wh...

IIS Integration testing: remove X-Powered-By: ASP.NET header

I want to have a test that testing the inexistent of this http headers, using NAnt and NUnit: X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Edit: I'm asking hot to actually test this rule: "don't have asp headers". so, I can have this test in each new website that I'm doing, so it make it easier no to forget this simple step. ...

Spawn a multi-threaded Java program from a Windows command line program, spawner won't end until spawnee ends. How can I prevent the hang?

Short version: How can I prevent a spawned Java process in Windows from blocking the spawning process from ending? Long version: I'm trying to spawn a multi-threaded Java program (Selenium RC, not that it should matter) from a program launched from the Windows command line (NAnt's <exec> task, again, not that it should matter). I'm d...

NAnt authorization access issue

I'm having a problem trying to move a file through my network, I want to transfer the release from my continuos integration virtual machine to the host of this VM. but i get this: System.UnauthorizedAccessException: Access to the path '\\192.168.0.36\E$\WebApps\MyProgram' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, Str...

How do you use Nant to build an ASP.Net MVC project?

Does anyone have an example nant build file to build an MVC2 project? I'm not sure whether you can use msbuild or whether you have to use aspnet_compiler or if nant will just handle it. Thanks ...

Building libopenmetaverse on CentOS 5

I'm trying to build libopenmetaverse on CentOS however I get the following error. I'm not this kind of developer and am installing this for someone else to use. This is just the part of the build that fails. Any ideas? [nant] /opt/libomv/Programs/WinGridProxy/WinGridProxy.exe.build build Buildfile: file:///opt/libomv/Pr...

How do I get Nunit to run selenium tests against different servers?

I have an Nunit test which uses selenium RC to run tests against our UI. I want to run the tests against 2 different servers, which means having the call to selenium.open() with 2 different servers. However, I don't want to have 2 different Nunit test suites that do the same thing but against different servers. I need a way of passing p...

How do you build a Windows Workflow Project with NAnt 0.90?

I'm trying to build a Windows Workflow (WF) project using NAnt, but it doesn;t seem to be able to build the ".xoml" and ".rules" files. Here is the code of the csc task that I'm using: <csc debug="${build.Debug}" warninglevel="${build.WarningLevel}" target="library" output="${path::combine(build.OutputDir,assembly.Name+'.dll')}" verbos...

Question about <foreach> task and the failonerror attribute‏

Hi guys, I have made a build file for the automated compilation of Oracle Forms files. An excerpt of the code is as follows: <target name="build" description="compiles the source code"> ... <foreach item="File" property="filename" failonerror="false" > <in> <items basedir="${source.directory}\${project.type}\Forms"> ...

Do you know any build systems with decent support for parallelization?

Hi, I am looking for a build system (working on ms windows) that has good support for parallelization of tasks/targets (or whatever you call them). To be more specific - during build (that is initiated on MS Windows machine) I need to copy source files to a number of different machines (which are not necessarily running Windows) and st...

(yet another) problem with mapped drive via the command line

I know, I know. There are a million threads everywhere talking about problems with mapped drives. I've ready many of them but I still can's seem to wrap my head around this problem or come to a solution. I have a build server/continuous integration server (Win 2003 running CruiseControl.NET) that listens to our source control server. Wh...

run nant build file in command prompt using c#

i have a build file with nant now all i need to do is execute it with command prompt using c# i tried the below but i am not able to build it .. pls help me its urgent.. thnaks in advance System.Diagnostics.Process.Start("exe -buildfile:d:\buildfile.build); and when i am runing through cmd prompt directly it is working ...

MSBuild 2010 - how to publish web app to a specific location (nant)?

I'm trying to get MSBuild 2010 to publish a web app to a specific location. I can get it to publish the deployment package to a particular path, but the deployment package then adds its own path that changes. For example: if I tell it to publish to C:\dev\build\Output\Debug then the actual web files end up at C:\dev\build\Output\Debug\...

Copy files from a zip folder to another folder in nant

I want to copy the files from the zip folder to another folder. I am doing this , but it doesn't works <copy todir="Lib"> <fileset basedir="Output/RCxSL.Client.zip/ServiceClientDlls"> <include name="*.dll" /> </fileset> </copy> How to achieve this ? the folder is zipped. ...

Can I tag in Apache Subversion with NAnt?

I need to build multiple environments and tag them in Apache Subversion using a NAnt script. Is there a way that I can use NAnt to create the tags in Apache Subversion with a variable I supply? ...