build-script

visual studio post-build script error calling gacutil.

I'm on vista, with VS2005 running as admin. Both vs2005 and vs2008 are installed. If I explicitly use the path to gacutil, it works, but not if I only call gacutil like this: if NOT $(ConfigurationName) == Release gacutil /f /i "$(TargetPath)" I would just update the post-build script, but I've been asked to leave it alone. It's ...

How do I determine what target is calling my current target in Nant?

I'm not even sure if my question is worded right...but I'll try to explain what I'm struggling with at the moment. I'm not highly experienced with this so forgive me if my explanations aren't the best....and I'm also trying to simplify my build script for the purposes of this question so if I'm missing some detail let me know... I am mo...

build failed executing nant

Hi all. I've got a nant build script (.86 beta) and it is telling me this: BUILD FAILED Failed to initialize the 'Microsoft .Net Framework 2.0' target framework. The process cannot access the file 'C:\Users\cconway\AppData\Local\Temp\tmp25E3.tmp' because it is being used by another process. This file does not e...

Why does processing multiple individual targets take longer when Nant is directed to process them from a single target?

I have a nant build script that specifies the compilation of various Visual Studio solution files. <target name="compile.solution1" description="Compiles solution 1"> <msbuild project="${src.dir}\Solution1.sln" verbosity="${build.verbosity}"> <property name="Configuration" value="${build.config}" /> <property name="OutputPath" val...

TeamCity 4.5 not recognizing trycatch element in nant script

Our team recently upgraded to TeamCity 4.5.4 but we're having trouble with TeamCity running our nant build scripts. We now get an error message saying: Invalid element <trycatch>. Unknown task or datatype. We haven't changed our build script during or after the upgrade so I'm wondering what, if any, change do we need to make to get thi...

Calling C# code inside a nant build script - time impact?

I have a section of C# code within my nant build script that runs and updates the console window's title with any message that I want, which is this (and runs perfectly fine): <script language="C#" > <code unless="${string::ends-with(build.script.debug, 'off')}"> [TaskName("consoletask")] public class TestTask...

Use msbuild community tasks without installing

In our developer environment, no users have administration rights. As such, it's not possible to install MSBuild.CommunityTasks without getting admin to do so. What I'm wondering is similar to NAnt, i.e. is it possible to include the files in your solution directory, and just reference it from there? This way, will not matter if the pe...

TFS 2008 Build Script

In TFS 2008, I am trying to modify a build script (TFSBuild.proj). I get the following warning: The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'TeamProject' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. Which is correct, The element Proper...

Can I tag in Apache Subversion with NAnt?

I need to build multiple environments and tag them in Apache Subversion using a NAnt script. Is there a way that I can use NAnt to create the tags in Apache Subversion with a variable I supply? ...

Need TSBuild.proj Script for Separate x86 and x64 builds using Team Build in TFS 2008?

Hi all, I want to build x86 and x64 builds using a single script in TFS 2008. Later on i need to move them to different output dirs and zip them. Here is my script. I need a bit of guidance of the build script. Please help. <Target Name="BeforeBuild"> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> ...

Eclipse Jar export script

I have a shared project that I'd like to split up in Eclipse. It's an android shared library which some packages should just be jar files others need to be smaller shared libraries. What is the best way to handle this other than manually creating smaller projects? Also is there a way to create a script to create exported jar files from...

MSBuild Target BeforeBuild not Executing

I seem to have a situation where code that I put into the BeforeBuild target is not successfully executing. Here is what I have: <Target Name="BeforeBuild" > <Message Text="Before Build" /> </Target> I can’t see the message output in the build log when the build runs. Is there something wrong with the way I’ve formatted this, or...

mysql script of scripts

I have a database that I need to maintain in both oracle and mysql. The data insert script of scripts looks like below. Of course Mysql uses source while oracle uses @ In all other respects the scripts invoked and their order of invocation are identical. (That's because they are just ANSI compliant insert statements). Is there anyway ...

Do you synchronize your build script with IDE?

If you used the following: Continuous Integration using build scripts IDE for code development Do you run into problems of synchronizing your build scripts with the IDE build system? If so, how do you resolve this kind of issue? Using any environment (Java/.NET/etc) to explain the solution will do. I just want to get ideas on how peo...

TFS Build Script Tracing

When debugging a build script, is it possible to get TFS to use a build script that is currently checked out? For example, I currently have a build script that I'm trying to debug, but in order to add a line of trace, I need to book out the TFSBuild.proj, change it, and then book it back in. ...

Best framework to write build scripts

Some of basic requirements are: Basic build scripts requirements like pulling from scm, copying, compiling :) Compatibility on Windows, Unix (Solaris, HPUX, AIX) and Linux. I have heard of several good options like scons, ant etc but would like to know what is your favorite choice? Currently I have 36 kornshell scripts which i need t...

Building Flex with Nant?

I'm wondering if I'm barking up the wrong tree here. Is it possible to replace an Ant build script used for building Flex projects with a Nant build script? Specifically, it doesn't seem like there are any replacements for the Ant <mxmlc>, <macrodef> and <taskdef> tasks provided with Nant or Nant-contrib. I'm not too experienced in ei...

How can we effectively version a large web application consisting of multiple sub-applications?

I'm part of a team that operates a portal for our company. There are ~200 small, what we call applications, inside of the portal. One may be to submit receipts, another to submit a timesheet, another to see activities going on, etc. Each of these applications is fairly separate from the others, so we've created individual trunk/branch...