nant

CruiseControl “Unused node detected” error when adding xmlns to Project node

女生的网名这么多〃 提交于 2019-12-23 10:25:52
问题 I am trying to use the Cruise Control preprocessor functionality to break my configuration into smaller reusable sections. I can use the include feature great from within the root cruisecontrol node, like so: <cruisecontrol xmlns:cb="urn:ccnet.config.builder"> <cb:include href="child.config" /> </cruisecontrol> If I try and use another include within the child config (like so): <project name="TestProject" xmlns:cb="urn:ccnet.config.builder"> <cb:include href="grandchild.config" /> </project>

XmlPoke and unique nodes

扶醉桌前 提交于 2019-12-23 09:56:27
问题 I am trying to use an xmlpoke task to update a VS Project File (which is XML). In the Project root, there are multiple PropertyGroup nodes, I am trying to select the first one. The XML looks like this <Project> <PropertyGroup> </PropertyGroup> <PropertyGroup> </PropertyGroup> <PropertyGroup> </PropertyGroup> </Project> I am using an xpath of //Project/PropertyGroup[1] to get the first PropertyGroup, but I get the error: “Non-unique xpath given //Project/PropertyGroup[1]”. edit: sorry, I didn

XmlPoke and unique nodes

谁说胖子不能爱 提交于 2019-12-23 09:55:50
问题 I am trying to use an xmlpoke task to update a VS Project File (which is XML). In the Project root, there are multiple PropertyGroup nodes, I am trying to select the first one. The XML looks like this <Project> <PropertyGroup> </PropertyGroup> <PropertyGroup> </PropertyGroup> <PropertyGroup> </PropertyGroup> </Project> I am using an xpath of //Project/PropertyGroup[1] to get the first PropertyGroup, but I get the error: “Non-unique xpath given //Project/PropertyGroup[1]”. edit: sorry, I didn

Running builds using .net 3.5 MSBuild and NantContrib

孤者浪人 提交于 2019-12-23 05:05:15
问题 I noticed that projects that were originally created in VS 2008 do not compile using the nantcontrib msbuild task. There is a solution that I've seen here but it seems like a bit of a hack, considering 'MSBuildBinPath' has been depricated, and I don't exactly like the idea of changing this property on every single project file that I create in VS 2008. Short of changing build scripts to call msbuild through an exec task, is there any way to point the msbuild task at a particular version of

Building the platform code with nant and VS2008

主宰稳场 提交于 2019-12-22 14:54:16
问题 I'm using the latest nightly build, VS2008 prof trial and .NET 3.5 and I'm getting this error "Solution format of file 'C:\test\Project\src\project.sln' is not supported." Any Solution to overcome from it 回答1: I don't know from what you posted if this will work, but if you're trying to run the solution using a the Nant Msbuild task, you might be able to get away with substituting that for a an exec task that calls the most recent version of msbuild as an executable. For example: <exec program

How to use Nant/TeamCity to Deploy across DMZ?

放肆的年华 提交于 2019-12-22 13:55:58
问题 I have build server inside our domain (and it needs to be because it also talks to other boxes in the domain), and a webserver that is in the DMZ. As part of our build scripts, I would like to deploy websites to the webserver in the DMZ, using the Nant copy task. The problem is, that Nant is invoked from TeamCity which runs under the System account on the build server, and there is no way that I can find to give the build server system account access to the DMZ webserver directories. (It

TF error: There are no remaining changes to check in

时间秒杀一切 提交于 2019-12-22 07:39:52
问题 We have an NAnt script to update our "pre-built" assemblies in TFS as one of our TeamCity build projects. The build is triggered by other builds. It does a TF checkout, moves some files, then does a TF checkin. The relevant target (tf resolves to the path of TF.exe): <target name="checkin.assemblies"> <exec program="${tf}"> <arg value="checkin" /> <arg value="${dir.assemblies}" /> <arg value="/comment:${message}." /> <arg value="/noprompt" /> <arg value="/recursive" /> </exec> </target>

TF error: There are no remaining changes to check in

点点圈 提交于 2019-12-22 07:39:26
问题 We have an NAnt script to update our "pre-built" assemblies in TFS as one of our TeamCity build projects. The build is triggered by other builds. It does a TF checkout, moves some files, then does a TF checkin. The relevant target (tf resolves to the path of TF.exe): <target name="checkin.assemblies"> <exec program="${tf}"> <arg value="checkin" /> <arg value="${dir.assemblies}" /> <arg value="/comment:${message}." /> <arg value="/noprompt" /> <arg value="/recursive" /> </exec> </target>

Build merge module without Devenv from .vdproj

血红的双手。 提交于 2019-12-22 06:59:28
问题 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

How can I pull artifacts from TeamCity?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 06:45:05
问题 I would like to pull artifacts from teamcity. I've been trying to use c# and the HtmlAgilityPack to goto the website and find the latest version and its artifacts. I'm currently stuck at the login, I think I just need to be sending Session Cookies out. Am I going in the right direction, has anyone else tried this? I realize that pushing files out with the build scripts is easy but I'd like to minimize changes to the Ant,NAnt files since I'm looking at scaling this to 100 apps. Edit: this