nant

how to get partial update from subversion

你。 提交于 2019-12-04 05:46:23
问题 I'm in the following scenario in my application's repository: revision 7 (2 changed files, 1 added file) revision 6 (4 changed files) revision 5 (2 added, 2 deleted, 2 changed) revision 4 (3 changed files) revision 3 (12 added, 2 changed files) I want to get a working copy that includes all changes from revision 3 to Head but does NOT include the changes for revisions 5 and 6. I am using SVN merge for this, but changes are not being reflected, and I'm getting file conflicts for revision 5 and

Building Flex projects in ant/nant

霸气de小男生 提交于 2019-12-04 04:22:12
We have a recurring problem at my company with build breaks in our Flex projects. The problem primarily occurs because the build that the developers do on their local machines is fundamentally different from the build that occurs on the build machine. The devs are building the projects using FlexBuilder/eclipse and the build machine is using the command line compilers. Inevitably, the {projectname}-config.xml and/or the batch file that runs the build get out of sync with the project files used by eclipse, so the the build succeeds on the dev's machine, but fails on the build machine. We

How to change connection string automatically on build with Nant

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 03:16:23
is it possible to change the connection string in my web.config automatically when build type is release using Nant? if so, how? thanks I think you could use the xmlpoke task. For example, if your web.config is <?xml version="1.0"?> <configuration> <connectionStrings> <add name="myDb" connectionString="blah" providerName="blah"/> </connectionStrings> </configuration> Then you could add a task to your build file like this. <xmlpoke file="path_to_your_web_root\Web.config" xpath="/configuration/connectionStrings/add[@name='myDb']/@connectionString" value="your_connection_string" /> Oh, here is

how to modify source with NAnt?

痞子三分冷 提交于 2019-12-04 03:14:38
I would like to modify the string in a .h file with NAnt before building the solution. There is a macro in .h file: #define SERVER_ADDRESS "www.customserver.net" and I would like to modify the string before deploying software so each build could be made for custom address by passing the address in command line. Does anyone know how this could be done? Thanks! One could use the loadfile task to help with this. This task loads the given file into a property. What is really useful is when you apply a filterchain with replacetokens to replace certain areas of the file. For example if one were to

Using NAnt and Ivy to build a VB6 project

北战南征 提交于 2019-12-03 20:48:46
I am working on a continuous integration system for both .Net and VB6 applications using Subversion, CruiseControl, NAnt and Ivy. The .Net side of things isn't too much of a problem, but I need a little guidance with the VB6 side of things, more from the 'DLL-hell' side of things! My current set-up is getting all dependent files for my VB6 system, as expected and builds the various projects within ok. BUT... it's using DLLs that are already registered on my PC, and not those within my Lib folder, which is where I am resolving my dependencies from Ivy. I can get around this problem by

Continuous Integration with Nant

馋奶兔 提交于 2019-12-03 20:16:02
I am preparing to use continuous integration for the first time. I will be using Nant for the automated build and testing tasks, and am trying to find the appropriate CI tool to poll the repository and execute the Nant script. I have so far loosely researched the following: Hudson Cruise Control Draco My sense so far is that since most of the work will be done by Nant, Draco would be fine because it is supposed to be easy to install/setup. Cruise Control and Hudson, on the other hand might provide better reporting options. What is the best way to perform Continuous Integration when using Nant

ASPNETCOMPILER : error ASPRUNTIME: Target Directory not empty

时间秒杀一切 提交于 2019-12-03 16:07:23
问题 I have a web application that needs to be built using a nant script. All the projects in the solution build fine but for this error that crops up each time at the end of the build. I couldn't find much useful information on resolving this error. Has anyone encountered and fixed this kind of issue before? Any help would be much appreciated. [exec] ASPNETCOMPILER : error ASPRUNTIME: The target directory is not empty, and does not appear to contain a previously compiled application. Please

How can I use Nant's xmlpoke target to remove a node

女生的网名这么多〃 提交于 2019-12-03 16:00:07
问题 Given the following xml: <rootnode> <childnode arg="a">Content A</childnode> <childnode arg="b">Content A</childnode> </rootnode> Using XMLPoke with the following XPath: rootnode/childnode[arg='b'] The result (if the replace string is empty) is: <rootnode> <childnode arg="a">Content A</childnode> <childnode arg="b"></childnode> </rootnode> The contents of the childnode have been removed when we actually want the childnode itself removed. The desired result is: <rootnode> <childnode arg="a"

Nant failing with bad permissions on build server

我是研究僧i 提交于 2019-12-03 15:30:08
问题 Total newbie question. I am trying to run a Nant script on a build server (very basic script, not doing anything), and it's failing with the error System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. What should I do to get it running? 回答1: @TK has the answer here, I believe, though it may not be as simple as whether or not nant is running from a

Is nAnt still supported and suitable for .net 3.5/VS2008?

孤街醉人 提交于 2019-12-03 14:37:32
问题 I am using MSBuild to build my stuff. I want to use CruiseControl.net as by Build Server. Now, CCNET refers nAnt a lot, but it looks as if ccnet can do most of the stuff nant could do through the project configuration and msbuild. Also, nAnt seems a bit unsupported, with a Beta release that is almost a year old now. In short: I am actually quite happy with MSBuild (especially since it's the "official" compiler front end) and a bit uncomfortable with nAnt, but I do not want to judge