build-process

Displaying build times in Visual Studio?

Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008. Is there any way to get devenv.com to log the time taken to build each project in the solution, so that I know where to focus my efforts? Improved hardware is not an option in this case. I've tried setting the output verbosity (under Tools...

Compiling on multiple hosts

Say that you're developing code which needs to compile and run on multiple hosts (say Linux and Windows), how would you go about doing that in the most efficient manner given that: You have full access to hardware for each host you're compiling for (in my case a Linux host and a Windows host standing on my desk) Building over a network...

VS 2008 Post Build Step funny business

Ok, here's the breakdown of my project: I have a web project with a "Scripts" subfolder. That folder contains a few javascript files and a copy of JSMin.exe along with a batch file that runs the JSMin.exe on a few of the files. I tried to set up a post build step of 'call "$(ProjectDir)Scripts\jsmin.bat"'. When I perform the build, t...

How can I make Windows software run as a different user within a script?

I'm using a build script that calls Wise to create some install files. The problem is that the Wise license only allows it to be run under one particular user account, which is not the same account that my build script will run under. I know Windows has the runas command but this won't work for an automated script as there is no way to e...

How you setup a greenfield project

I'm setting yup a Greenfield (yeeea!) web application just now was wondering how other people first setup their project with regards to automated/CI build? I generally follow this: Create SVN Repository with basic layout (trunk, braches, lib, etc.) Create basic solution structure (core, ui, tests) Create a basic test that fails Copy N...

What is a good CI build-process

What constitutes a good CI build-process? We use CI, but is deployment to production even a realistic CI goal when you have dependencies on several services that should be deployed too and other apps may depend on these too. Is a good good CI build process good enough when its automated to QA and manual from there? ...

C# - Why is a different dll produced after a clean build, with no code changes?

When I do a clean build my C# project, the produced dll is different then the previously built one (which I saved separately). No code changes were made, just clean and rebuild. Diff shows some bytes in the DLL have changes -- few near the beginning and few near the end, but I can't figure out what these represent. Does anybody have in...

Which gcc switch disables "left-hand operand of comma has no effect" warning?

It's a part of larger code base, which forces -Werror on gcc. This warning is generated in a third party code that shouldn't be changed (and I actually know how to fix it), but I can disable specific warnings. This time man gcc failed me, so please, let some gcc master enlighten me. TIA. ...

Generate docs in automated build

Is there any way to generate project docs during automated builds? I'd like to have a single set of source files (HTML?) with the user manual, and from them generate: PDF document CHM help HTML version of the help The content would be basically the same in all three formats. Currently I'm using msbuild and CCNET, but I could chan...

Does it matter which vendor's JDK you build with?

If I'm deploying to servers with WebSphere 6.1 (Java 1.5), should I use IBM's JDK on my build box? Or will Sun's JDK compile to the same binary? If I should use IBM's, where can I get the Windows x64 version? ...

How to version control the build tools and libraries?

What are the recommendations for including your compiler, libraries, and other tools in your source control system itself? In the past, I've run into issues where, although we had all the source code, building an old version of the product was an exercise in scurrying around trying to get the exact correct configuration of Visual Studio...

Copy all files and folders using msbuild

Hi all, Just wondering if someone could help me with some msbuild scripts that I am trying to write. What I would like to do is copy all the files and sub folders from a folder to another folder using msbuild. {ProjectName} |----->Source |----->Tools |----->Viewer |-----{about 5 sub dir...

How to setup a shared ccache

How can I setup a shared ccache without falling into a permissions problem? I would like to run a nightly or CI build with latest changes and share all created binaries throughout the R&D using a large ccache repository. ...

Using customBuildCallbacks.xml in an Eclipse RCP headless build

I am trying to add some custom build steps to my headless build process for an Eclipse RCP application. I understand that the recommended way is to provide a customBuildCallbacks.xml file on the plug-in directory, and adding a link to it in the build.properties file. # This property sets the location of the customb Build callback cus...

How best update a running application on a remote machine.

So my build machine spits out a new executable and I would like to update my test machine with the new build. In order to do this I would need to somehow kill the process on the remote machine, copy over the new binary and start it running. And for some reason pskill and psexec don't work due to some weird IT setup. What would be a goo...

Build sequencing when using distributed version control

Right now, we are using Perforce for version control. It has the handy feature of a strictly increasing change number that we can use to refer to builds, eg "you'll get the bugfix if your build is at least 44902". I'd like to switch over to using a distributed system (probably git) to make it easier to branch and to work from home. (Bot...

How to use system environment variables in VS 2008 Post-Build events?

How do I use system environment variables in my project post-build events without having to write and execute an external batch file? I thought that it would be as easy as creating a new environment variable named LHDLLDEPLOY and writing the following in my post-build event textbox: copy $(TargetPath) %LHDLLDEPLOY%\$(TargetFileName) /Y...

PDB files in VisualStudio bin\debug folders

I have a VS (2008) solution consisting of several projects, not all in the same namespace. When I build the solution, all the dlls used by the top level project TopProject are copied into the TopProject\bin\debug folder. However, the corresponding .pdb files are only copied for some of the other projects. This is a pain, for example when...

Visual Studios Link.exe error: "extra operand"

Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're seeing the following error: _X86_Win32/Debug/Intermediate/OurApp.exe LINK: extra operand `/subsystem:windows' Try `LINK --help' for more information It appears to be using the same version of visual studios as the other machines. Has anyone encount...

How do I run a series of processes in C# and keep their environment settings?

I am developing an auto-builder that will run a series of steps in our build process and build our target application. We used to use a batch file which set up a bunch of environment variables or called tools that setup environment variables and ultimately runs a 'make'. I've been using the 'Process' class which works great for running...