nant

Deploy Artifact From Jenkins to Archiva with NAnt

假如想象 提交于 2019-12-13 19:34:22
问题 I'm admittedly new to the whole continuous integration idea. As such, I've been scouring the web to find a way to take my ASP.NET project, feed it through Jenkins for auto-build using NAnt and mono on a Linux box, and ultimately deploy the artifact into Apache Archiva to be retrieved later for installation, etc. My problem is, I don't know how to integrate this hand-off of the artifact from Jenkins to Archiva. So, here's what I understand: Archiva can be used to store any type of artifact.

Setting Teamcity version number with counter from file

做~自己de王妃 提交于 2019-12-13 12:12:14
问题 I'm currently trying to update the version no. in TeamCity using a Nant build file, containing the version number. If I just use <property name="versionNo" value="2.16.3."/> . . <echo message="##teamcity[buildNumber '${versionNo}']"></echo> In the script the buildNumber is update to 2.16.3 but I would also like to have the counter on this version number. Meaning I would like to have <echo message="##teamcity[buildNumber '${versionNo}.{0}']"></echo> But this doesn't work. Does anybody know how

nant hanging when run in cygwin

偶尔善良 提交于 2019-12-13 04:58:28
问题 I updated to cygwin 1.7.15 this afternoon and went to run the same nant script I ran successfully this morning, except that nant now hangs - no output is ever shown. I've verified nant (0.91.3881.0 alpha2) still runs in a windows cmd prompt and I've tried to rebaseall on cygwin without any luck. Edit: In 1.7.15, nant doesn't show as a process in task manager nor Process Explorer (sysinternals). How do I get nant back working in cygwin? 回答1: It looks like this is a known bug with a fix coming.

NAnt and build version

柔情痞子 提交于 2019-12-13 03:44:55
问题 I use Nant for automating ClickOnce build. So after building the application I need to know what is its version (for purpose of folder creation). Also I need build autoincrementing. For building I use msbuild.exe /t:publish 回答1: For this you can use your source code repository revision number/hash as that is often used when using subversion or git repositories. You can also make use of a buildserver like cruisecontrol (ccnet) this will do this build version incrementing for you. 回答2: As far

Simple HelloWorld build script

不羁的心 提交于 2019-12-13 00:24:23
问题 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. <?xml version="1.0"?> <project name="Hello World" default="build"> <property name="nant.settings.currentframework" value="net-3.5"/> <target name="build"> <echo>Hello</echo> <exec program="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe" commandline="HelloWorld /t:Clean

How can I automate the t4 code generation for SubSonic

北城以北 提交于 2019-12-12 19:14:36
问题 I'm using SubSonic 3 (ActiveRecord mode) to generate the code for my DAL. It uses T4 templates (.tt) files that as soon as you save, generate the code for you. I want to automate this as part of my NANT build, but I can't get this to work. I know that MS provide a tool called TextTransform to generate the code from T4 templates, but in the case of the SubSonic templates this doesn't seem to work - I think the templates make some assumptions about the template being run from within Visual

DELPHI and WANT or NANT

限于喜欢 提交于 2019-12-12 18:17:55
问题 We use cruise control .net to do our Continuous Integration in our Delphi 2006 application. We use a setup similar to the one described here. QUESTION: 1) What is the best scripting tool/language to use implement the build script? 2) Are there any advantages of using WANT over using NANT? (NOTE: D2006 is not compatible with MSBuild) 回答1: I never used WANT, but NANT works fine with any Delphi version. I presume NANT is also better supported and has more features you can use since it is used

How to make NAnt send an email using a real account

大憨熊 提交于 2019-12-12 17:09:51
问题 First of all, I have already seen this post: nant mail issues but the only answer is not satisfactory (i.e.: doesn't work for me). I am using NAnt to get latest version of source, upgrade version of the libraries and application, build the application, build the setups... all the usual things, I bet. I would like NAnt to send an email to some people confirming the conclusion of the build process; I've already checked the official (pretty ugly, IMHO) documentation for the task, but the example

Nant does not see reference

喜夏-厌秋 提交于 2019-12-12 15:25:15
问题 I want to kill all IE instances by nant script with c# code: <target name="clean"> <script language="C#" prefix="Cleaning"> <references> <include name="System.Diagnostics.dll" /> </references> <imports> <import namespace="System.Diagnostics" /> </imports> <code> <![CDATA[ [Function("Delete")] public static void KillIe() { foreach (var process in Process.GetProcessesByName("iexplore")) { process.Kill(); } } ]]> </code> </script> <echo message="Calling function: ${Cleaning::KillIe()}"/> <

Integrating External Sources in a Build

好久不见. 提交于 2019-12-12 13:04:44
问题 Where I work I have several projects in separate repositories. Each project shares a lot of common code that I want to pull out into a distinct project. I'm thinking of calling the project with the following scheme: Company.Department.Common or Company.Department.Utility. I've constructed a project for this and it has an automated build script (as does every other project). My question is that I would like to refactor my existing projects to depend on this new project. One method that is