nant

Continuous Integration with Nant

亡梦爱人 提交于 2019-12-05 05:23: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

MSBuild cannot find SGen when compiling a solution

可紊 提交于 2019-12-05 04:53:35
I've looked at several other SGen-related questions on here and either their answers don't apply or their answers don't fix this for me. I have installed several SDKs to fix this issue with no luck. Reference types should not be changed since this is the only place this is a problem. Once suggestion is to put SGen.exe into the C:\Windows\Microsoft.NET\Framework\v3.5 folder, but that's not been done on the box where this is not a problem. In this scenario, SGen.exe actually exists and is right where it's supposed to be, but MSBuild still is having issues with finding it for some reason!

Using NAnt and Ivy to build a VB6 project

这一生的挚爱 提交于 2019-12-05 04:52:50
问题 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

Any SQL Server 2008 Database Change Management (MIgrations) Tools Available?

二次信任 提交于 2019-12-05 02:37:13
问题 We were running Tarantino in a Nant build script but we're getting some new hardware and using the opportunity to upgrade to SQL Server 2008. Unfortunately Tarantino won't work with SQL 2K8 so I'm looking for an alternative. Any ideas? 回答1: Migrator.net is the tool I use with SQL 2008. It also has nant script capability. I suggest using the trunk version, rather than the 0.7 release as it's had some good, as yet unreleased changes. This roundup has other options. And there are few other

Stopping ASP WebDev and Selenium servers from command line

柔情痞子 提交于 2019-12-04 21:16:14
I am introducing Selenium tests into my build for the first time. I figured that to do this in NAnt, I would have to start the WebDev server first: <exec program="path/to/WebDev.WebServer.exe" commandline="/port:51150 /path:path/to/website" failonerror="true" resultproperty="selenium.webdev.server.running" spawn="true"> </exec> Then start the Selenium server: <exec program="path/to/java.exe" commandline="-jar path/to/selenium-server.jar" failonerror="false" spawn="true"> </exec> Then run my tests. This works. What i can't figure out is how do I kill the WebDev and Selenium servers when my

Setting Teamcity version number with counter from file

China☆狼群 提交于 2019-12-04 15:41:57
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 to do this, tried many things among this solution http://binary-notes.blogspot.com/2011/05/controlling

protractor timeout after 30000msec

送分小仙女□ 提交于 2019-12-04 12:57:07
I am tryin to integrate protractor e2e tests in my cruisecontrol I am using the following testspec: describe('index', function () { var ptor; it('should have a title', function () { browser.get('http://juliemr.github.io/protractor-demo/'); expect(browser.getTitle()).toEqual('Super Calculator'); }); it('Check google', function () { browser.driver.get('http://www.google.com'); }) }); When I run this spec though the command line works fine. However when I run it as a nant target in the build config it says there is a timeout error: 31mtimeout: timed out after 30000 msec waiting for spec to

nAnt Deleting files older than 7 days old

拈花ヽ惹草 提交于 2019-12-04 12:14:24
问题 I would like to create a target that cleans log files older than 7 days old in a specific folder. I get an error when I try to put in a "date" element inside a fileset. How can I go about this? <delete> fileset basedir="${StageIISRoot}/MySite/App_Data/ErrorLog"> <date datetime="${datetime::now() - timespan::from-days(7)}" when="before"/> <include name="*.xml" /> </fileset> </delete> 回答1: I don't see any documentation for using the "date" element. You might consider something like this:

Parallel task execution on NAnt

*爱你&永不变心* 提交于 2019-12-04 11:11:57
I am using NAnt to build 5 different installer packages for the same software, in different configurations. These tasks can be parallelized as they are not dependent on each other. Installshield which is building these configuration seems inefficient with regards to multi core CPU usage (the usage capped at 25% CPU on a 4 core machine). I have been looking for an easy way to parallize tasks and only found this , which is pretty much what I need. However the source code for this project is not available and it's referencing some types which are not available in the latest version of NAnt 0.91

NAntContrib/NAnt mkiisdir fails on IIS 7.0 / windows 2008

♀尐吖头ヾ 提交于 2019-12-04 08:40:47
I'm trying to use NAnt/NAntContrib build script to build a web application on Windows 2008 (IIS 7.0). In the build file, there is mkiisdir task, which fails with: [mkiisdir] The webservice at 'localhost' does not exist or is not reachable. All the documents/posts I found so far (non for w2k8, only Vista) say to install IIS 6 Compatibility services (all of them, including scripting tools, etc.) So I did, but it still throws this error. Any idea what else need to be changes, so NAnt be able to create/delete virtual directories on IIS 7.0? EDIT: New data - when I log in as local administrator to