Все вопросы: [nant]

256 вопросов

похожие теги: nant-task
3
голосов
1ответов
317 просмотров

How to make nant complain when a file is missing from a fileset

I have a fileset element in a build file that is defined as: <fileset id="fileset" basedir="."> <include name="test.txt"/> <include name="missing.txt"/> </fileset> When this runs (as part of a copy task), it does not complain if any of the files are missing. Whi...

0
голосов
3ответов
1375 просмотров

Nant "nant.onsuccess" property

I have a nant file which does the building of my project. Once the build succeeded, I will use the nant.onsuccess property to send mail. In this nant.onsuccess I will call next batch of targets to build. But I need to send the mail depending on the success or failure of these set of targets that ...

0
голосов
1ответов
1066 просмотров

mkdir nant permissions

I need to use mkdir on a network path, which is on a different domain. I can login into the network properly, however nant is not able to. I setup a network drive on the system where nant runs, however it still cant access it. Does anybody know how to achieve this?

1
голосов
2ответов
4656 просмотров

nAnt running .bat with folderPath as parameter

I am trying to setup a nAnt task to run a batch file with 4 parameters. First 2 parameters are folder path, so it required to be wrapped with double quote. Here's my build file <?xml version="1.0"?> <project name="Proejct" default="dbsetup" > <description>nAnt script</desc...

1
голосов
1ответов
550 просмотров

Where is the <import> tag in Nant?</import>

I want to import another build file into my current project so I can put all common properties in one place. In ant you can simply use: &lt;import file="c:\tools\commonProperties.include" /&gt; How to achieve that in NAnt?

2
голосов
4ответов
3432 просмотров

Using the aspnet_compiler.exe to compile .Net Web Apps

I have code in the top layer of my .Net web application that I'd like to unit test, but when my build server compiles the project using the aspnet_compiler.exe, it makes a .dll file that is not at all usable by another project, i.e. an NUnit test project. (This is true of ASP .Net web applicatio...

5
голосов
4ответов
4256 просмотров

Build merge module without Devenv from .vdproj

I read quit a few Stackoverflow Questions about building mergemodules via commandline but all of them were accepted when either somebody suggested to use devenv for compilation or use Dark to create wix-files from existing msi files. Considering the following: VisualStudio isn't installed on t...

0
голосов
1ответов
2080 просмотров

Getting NAnt to check for changed files in SVN

In the interests of trying to speed up my NAnt/CruiseControl.Net/Ivy continuous build process, I was hoping to get NAnt to check if my codebase has changed on my local PC after performing a NAnt-based update, and then if the code has changed, then kick off the process to re-build that project an...

3
голосов
1ответов
1757 просмотров

Using CruiseControl to copy the head SVN folder to a Release folder

I'm just getting started with CruiseControl.NET and nAnt and don't really have a good understanding of how the whole process works. We currently have most of our solutions in Visual Source 'Safe', and have the build server Label each release automatically using the AssemblyInfo file. We're migra...

0
голосов
1ответов
1621 просмотров

Ant Bulk Search and Replace

I have a properties file in which the keys represent strings in source code files that I would like to search for, and the values represent the replacement string that I would like to replace the strings with (see below for an example). I would like to perform these replacements over a set of fi...

9
голосов
1ответов
1042 просмотров

Suppressing Log Output for NAnt Delete Task

We are currently using CruiseControl.NET with NAnt 0.85 build scripts and while everything is working well, the log files are a little too verbose for my liking. In particular, when deleting folders using the &lt;delete&gt; task I always get a [delete] Deleting directory entry in the log. Fai...

1
голосов
1ответов
1140 просмотров

NAnt and ASP.NET Compiler

I have a build script running successfully, but I am having a hard time running anything after aspnet_compiler completes. I want to use robocopy to copy the project to another folder. If I put the copy task above the compile (as shown below) I get the message to the console, but if I place it a...

2
голосов
3ответов
909 просмотров

Can I target Silverlight 3.0 using NAnt?

How can I add a silverlight-3.0 target framework to NAnt? I tried modifying the nant.exe.config file, based on silverlight-2.0 profile, but that fails during compilation with CS0518: Type "System.Object" not defined or imported [error message translated from Polish]. Also, the silverlight-2.0 tar...

0
голосов
2ответов
168 просмотров

Recommended build targets

I'm a solo developer looking into a tool such as MSBuild/NAnt to improve my build process. My project files are starting to get messy with post-build events and there are analysis tools I'd like to run some times and not others. I want to regain order and define everything into a build XML file. ...

18
голосов
2ответов
50238 просмотров

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

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 err...

0
голосов
2ответов
1408 просмотров

MSBuild stops on the first error when called inside NAnt script?

I'm trying to build a VS 2008 solution in NAnt, but it seems msbuild stops the build process after the first compilation errror has occured. In MSBuild there is a "ContinueOnError=true" or "StopOnFirstFailure=false" attribute, but how to specify this in NAnt ? The failonerror="false"does not so...

6
голосов
4ответов
7783 просмотров

I have a error building a .vdproj on msbuild with nant

I'm getting used to using nant for build releases. But I have started to use asp.net MVC, and i choice make the setup for installation with a .vdproj . But, when I call the: in nant, my result is: [exec] D:\My Documents\Visual Studio 2008\Projects\Wum\Wum.sln : warning MS B4078: The p...

0
голосов
1ответов
216 просмотров

Nant build failing with NCover

I am currently setting up NCover as part of our CC.NET continuous integration. I've downloaded NCover 1.0.1 from sourceforge, and put the relevent DLLs into the correct nant folder so I can use the tasks in my build file. The build process instruments our source code correctly, and then goes on ...

1
голосов
1ответов
757 просмотров

Nant: Building projects using svn-externals

Using subversion and Nant for building. I have a main project that depends on several sub-projects. The sub-projects exist as separate projects inside subversion. My question is: Should the nant build script in the main project build all the referenced sub projects and itself? Or do the subpr...

5
голосов
3ответов
1822 просмотров

How to use mercurial from nant

I have a little private Google code project. For a SCM I use Mercurial. And for the local build i would like to use nant. So basically: I would like to download my source files from a known mercurial repository using a nant task I would like to somehow get the revision number of the repository...

6
голосов
2ответов
3152 просмотров

How do I pass a value from cc.net to build-script? ccnet.config-&gt;xx.build

I have various settings in my ccnet.config file and wish to pass them to my build file in order to keep these constants in one place. How do I do that?! Thanks, Anders, Denmark

0
голосов
2ответов
397 просмотров

Error running aspnet_compiler on websites user controls

My builds and runs fine in Visual Studio, however when I run a Nant task to compile the website, it gives me an error: [path]\ContactView.ascx error CS0117: 'System.Web.UI.Usercontrol' does not contain a definition for 'Name' I have a UserControl called ContactView that has another UserCont...

3
голосов
2ответов
1080 просмотров

Will Selenium Grid run under NAnt (not Ant)?

I am trying to get Selenium Grid to run using NAnt but am a little lost, as all explanations I can find use Ant - although I thought they were fairly similar, I can't seem to fire off Selenium Grid on my local PC in this way. Here's the URLs to the Selenium Grid pages online that I've found, but...

4
голосов
6ответов
2055 просмотров

Using the ASP Compiler in NAnt to build an ASP .Net MVC application

I am succesfully building ASP .Net applications in NAnt using the ASP Compiler, without a problem., as part of my Continuous Integration process. However, if I try exactly the same process on an ASP .NET MVC application, the build fails in NAnt, but will compile succesfully in Visual Studio. Th...

0
голосов
1ответов
659 просмотров

TeamCity 4.5 not recognizing trycatch element in nant script

Our team recently upgraded to TeamCity 4.5.4 but we're having trouble with TeamCity running our nant build scripts. We now get an error message saying: Invalid element &lt;trycatch&gt;. Unknown task or datatype. We haven't changed our build script during or after the upgrade so I'm wondering wh...

3
голосов
2ответов
2243 просмотров

How to append XML nodes using existing Nant or Nant Contrib tasks?

During a build process using Nant, how to update an xml file, for adding new nodes. I wish to do this by using existing Nant/NantContrib tasks

2
голосов
1ответов
413 просмотров

Compile WebSite Project with NAnt

I have a website project in Visual Studio 2008. I would like to build this website using MSBuild. I use the following command to build the solution: msbuild.exe mysolution.sln /t:Rebuild /v:q After I ran the command, it creates a new folder called precompiled, creates a copy of my project, remo...

2
голосов
1ответов
665 просмотров

Gallio Integration with NANT and CruiseControl.NET

In our build process we're currently using MBUnit 2.x tests, called from an NAnt task, called from CruiseControl.NET. I've uprgaded to Gallio and MBUnit 3.x locally and am able to run tests from VS2008. I'm having trouble getting our build process upgraded. It looks like we have two options, e...

0
голосов
1ответов
95 просмотров

Calling NAnt from a .Net Application

I am working on a prototype project and need to put a new layer of abstraction over my existing NAnt scripts, for which I'd like to use .Net, possibly even WPF. What I have at present is a NAnt script which I call from a Command window (a DOS box, for the old-skoolers). As I said, I'd like to w...

1
голосов
3ответов
2361 просмотров

Simple HelloWorld build script

I have a simple HelloWorld application that I'm trying to build using NAnt. However, even with the simplest of build files, I still cannot get it to work. Below is my HelloWorld.build file. &lt;?xml version="1.0"?&gt; &lt;project name="Hello World" default="build"&gt; &lt;property name="nant.set...