nant

Cruise Control .Net not showing Nant build errors

孤者浪人 提交于 2019-12-29 08:12:34
问题 We are running Cruise Control 1.5.7256.1 and using it to do builds using Nant and Nantcontrib. The builds are failing and succeeding correctly, but when they fail the related error messages are being shown on the CCNet Build Report page. See image below The build errors can be seen on the View Build Log page, but they aren't making it through to the Build Report page. The build itself is pretty simple, it's just a Nantcontrib msbuild element that builds a .Net 3.5 .sln file. Any ideas? 回答1:

如何在一个.BAT文件中运行多个.BAT文件

北慕城南 提交于 2019-12-27 21:52:45
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我正在尝试使我的 commit-build.bat 执行其他.BAT文件,这是我们构建过程的一部分。 commit-build.bat 内容: "msbuild.bat" "unit-tests.bat" "deploy.bat" 这似乎很简单,但是 commit-build.bat 只执行列表中的第一项( msbuild.bat )。 我已经分别运行每个文件,没有问题。 #1楼 采用: call msbuild.bat call unit-tests.bat call deploy.bat 不使用CALL时,当前的批处理文件将停止并且被调用的批处理文件开始执行。 这是可以追溯到早期MS-DOS时代的一种特殊行为。 #2楼 尝试: call msbuild.bat call unit-tests.bat call deploy.bat #3楼 call msbuild.bat call unit-tests.bat call deploy.bat #4楼 要在 .bat 文件中调用 .bat 文件,请使用 call foo.bat (是的,这很愚蠢,如果可以使用 foo.bat 调用它, foo.bat ,就像在命令提示符下那样,但是正确的方法是使用 call 。) #5楼 查看文件名后,您是否考虑过使用诸如

VBC + NAnt. Error compiling WinForm

∥☆過路亽.° 提交于 2019-12-24 18:54:20
问题 It should first be noted that I am trying to avoid rewriting all my scripts to use msbuild. I have noticed that there are several problems when using NAnt with the VBC task and compiling a WinForms application. The main problem seems to be that VBC can't find Sub Main. This is odd, since from within VS, there is no indication that there is any sort of difference between my call to vbc and msbuild's call to vbc. Does anyone have any insight into a solution to this problem or a way to force the

ScriptSharp compilation with NAnt script

谁都会走 提交于 2019-12-24 13:15:31
问题 We've recently added the excellent script# to our project. Currently we have it so that our VS build simply copies the compiled .js file from the output directory to the scripts directory of our web app. We've decided to make it a permanent feature and so would like to make it so that the .js file gets generated as part of our web build NAnt script to ensure that it's always up to date. Is there any way to do this nicely or do I need to call MSBuild from my NAnt script specifying the .csproj

With NAnt, How to use C# 3.0 compiler while targetting .NET 2.0 runtime?

放肆的年华 提交于 2019-12-24 10:38:55
问题 I'm using NAnt 0.85 to build a legacy project. The script itself uses the csc task (not the msbuild task) and works fine. The project is on its way to migrating over .NET 3.5. We already use VS2008, and C# 3.0, while still targeting .NET 2.0 framework runtime. Now the problem occurs when we want to upgrade our NAnt scripts, to compile C#3.0 code using csc task. I managed to compile C#3.0 code with NAnt, by modifying the nant.exe.config to add the net-3.5 framework section, but still, I can't

NAnt: get task permission denied

百般思念 提交于 2019-12-24 09:12:09
问题 I'm trying to use the NAnt <get> task to download some artifacts from our build server. However I'm getting permission denied to the destination folder even though the folder I'm downloading to has "Everyone" with full control. What's going on? 回答1: Nevermind, The problem was that in the destination of the <get> task you need to specify the file as well as the directory. 回答2: Is the directory read-only? If so, you should be able to use the <attrib> task before <get> to allow read/write access

NAnt - how to get the directory path of the included script

99封情书 提交于 2019-12-24 05:14:10
问题 I have a common NAnt script (containing some common targets and constants) that I include in many other NAnt scripts like this: <include buildfile="<path>\common.build" verbose="true" /> Calling scripts are in various folders. In this included script I need to read a file from the same directory, where included script resides. "Current directory" is set to the directory of the calling script, not included one. How can I get the directory path of the included script? If I use the following

Patching nant 0.91 to use mono 4.0

荒凉一梦 提交于 2019-12-24 02:18:20
问题 The Nant doesn't support mono 4, but fortunately there's a patch for it. I download the patch - http://sourceforge.net/tracker/download.php?group_id=31650&atid=402870&file_id=404197&aid=3206199 I also download the source. I unzip the source and copy the patch inside the directory. I run patch < mono-4.0.diff , but I got this error. can't find file to patch at input line 8 Perhaps you should have used the -p or --strip option? The text leading up to this was: |Index: src/NAnt.Core/Functions

IIS site and nant/nantcontrib?

*爱你&永不变心* 提交于 2019-12-23 13:33:09
问题 is it possible to manage IIS web applications with NAnt? For example stop or start it? 回答1: Maybe you can use exec task to execute iisreset -stop iisreset -start EDIT : And this VBS might help for stopping/starting WebApplications under IIS Here is the accespted solution to stop a website with nant task on IIS : <target name="stopSite"> <exec program="cscript.exe"> <arg value="C:\windows\system32\iisweb.vbs" /> <arg value="/stop" /> <arg value="test" /> </exec> </target> 回答2: Nant has the

Getting the TeamCity build number into the AssemblyInfo file using Nant

邮差的信 提交于 2019-12-23 12:16:49
问题 I have done a lot of googling but cant seem to find an exact solution to get the TeamCity build number into my AssemblyInfo files. Would appreciate a full solution for my requirements... 1 Get the build number into a Nant variable. I believe that this code will accomplish this.. PropertyGroup Version$(BUILD_NUMBER)/Version /PropertyGroup (repoduced as best as possible in SO). 2 Now I need a way to update the revision component of my version numbers so I get something like 1.0.0.[build number]