nant

How to build a .NET website using Nant

跟風遠走 提交于 2019-12-07 14:06:37
问题 I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems: <msbuild project="MySolution.sln"> arg value="/property:Configuration=release" /> </msbuild> I now have a website (not a web application) in a VS Solution and it won't build - I get a lot of namespace errors. Should I be able to build the solution with MSBUILD even though it contains a website? Or do I need to use CSC? 回答1: You should try using the devenv.exe command if msbuild.exe

MSBuild cannot find SGen when compiling a solution

断了今生、忘了曾经 提交于 2019-12-07 02:19:57
问题 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

Stopping ASP WebDev and Selenium servers from command line

橙三吉。 提交于 2019-12-06 16:13:43
问题 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

Nant: can't get current directory from .include

痞子三分冷 提交于 2019-12-06 11:11:39
It's not exactly easy for me to summarize this... I have this structure on disk: [dir] project [dir] foo [file] foo.build [dir] bar [file] bar.build [file] default.include The file default.include contains a couple of properties which are the directories used during the build. E.g: property name="build.dir" value="${directory::get-current-directory}". The default.include file is included by foo.build and bar.build using its relative path: include buildfile="..\default.include" Now the problem: when I run foo.build from project\foo dir, I get the wrong value for build.dir. I need "project" and

protractor timeout after 30000msec

孤街浪徒 提交于 2019-12-06 06:39:30
问题 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

Parallel task execution on NAnt

烂漫一生 提交于 2019-12-06 05:35:30
问题 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

NAntContrib/NAnt mkiisdir fails on IIS 7.0 / windows 2008

╄→гoц情女王★ 提交于 2019-12-06 03:26:04
问题 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

How to change connection string automatically on build with Nant

会有一股神秘感。 提交于 2019-12-05 21:44:26
问题 is it possible to change the connection string in my web.config automatically when build type is release using Nant? if so, how? thanks 回答1: 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="

How to build a .NET website using Nant

╄→尐↘猪︶ㄣ 提交于 2019-12-05 21:36:39
I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems: <msbuild project="MySolution.sln"> arg value="/property:Configuration=release" /> </msbuild> I now have a website (not a web application) in a VS Solution and it won't build - I get a lot of namespace errors. Should I be able to build the solution with MSBUILD even though it contains a website? Or do I need to use CSC? You should try using the devenv.exe command if msbuild.exe is failing for you. Also you may be interested in Web Deployment Projects . Sayed Ibrahim Hashimi My Book:

Build merge module without Devenv from .vdproj

五迷三道 提交于 2019-12-05 08:34:16
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 the buildserver I have to use. I am using nant + msbuild to compile the solutions I would like to compile mergemodules from .vdproj (because Visual Studio detects dependencies automatically) and create a msi setup from multiple mergemodules ... how can I build the merge modules from commandline without