build-process

Tutorials on packaging a Java application

What are some tutorials and best practices that show to make a build from source code for a Java desktop / JEE web application? I want to learn what needs to be packaged as a WAR/JAR from source and how it must be structured? ...

User cannot run C# released app - "The application failed to init.properly"

Hi, I am desperate due to this problem: I have created and built app which works fine on mine and my colleagues PC. However, third user reports that with .NET 3.5 the app reports: "The application failed to init.properly" and with .NET 4.0 "Unable to find the version of runtime to run this application“. Could you please advice? It was bu...

Compiling a C# project as a class library and executable at the same time in VC# Express 2008

Hello Everyone, I am working on a C# WinForms application in VC# 2008 Express, writing unit tests with NUnit 2.5.5, and running them via the NUnit GUI program. Right now to run them I switch the output type to 'class library' and then switch back to 'windows application' after I'm done testing. I just have NUnit reading from the bin/Rel...

Makefiles - Compile all .cpp files in src/ to .o's in obj/, then link to binary in /

So, my project directory looks like this: /project Makefile main /src main.cpp foo.cpp foo.h bar.cpp bar.h /obj main.o foo.o bar.o What I would like my makefile to do would be to compile all .cpp files in the /src folder to .o files in the /obj folder, the...

Stored Procedures In Source Control - Automate Build/Deployment Process

My company provides a large .NET service-oriented solution. The services layer interact with a T-SQL back-end consisting of hundreds of tables and stored procedures. Our C# code is in version-control (SVN) but our stored procedures and schema are not. After much lobbying of expedient upper-management, I was allowed to review our (non-ex...

Is there a way to have one project build another in Visual Studio?

We are finally getting a source control system in place at work and I've been in charge of setting it up. I've read that it's usually good practice to not include binaries in source control so I haven't. However, we have two all-purpose utility projects (each in their own solution) that generate utility .dll's which are included in alm...

What's the ROI of using a build tool like ant or nant?

To me this sounds like a really stupid question. Why would you not use a build tool? However, I need to explain my co-worker why he should be using a build tool of some sort. He's getting really into the idea of working as a team with more programmers, but he isn't understanding the bigger picture of what needs to change in the ...

Is it necessary to generate javadoc as part of build process?

Is it necessary to generate javadoc as part of build process? ...

VB.NET generates properties in the release build

I have a form and i drag and drop a control in VB.NET. I have a line say, private WithEvents radioButton RadioButton Also, I have a handler like, private void click(.....) Handles radioButton.Click { ... } Now, When I build this is .NET 3.5 in release mode, and see the generated code in reflector tool, the code is something li...

How to copy .java sources to Ant javac destFolder

Hi, I know how to use Ant to copy files and folders but what I'm interested in is if, and how, I can have the javac task copy the same sources it's compiling to the output directory. Basically, it's very similar to the option to include your sources in the jar task. Thanks in advance, Ittai ...

How to output to a compiler's console and how to stop the build when an error occurs from an external tool?

Hello, I have a tool that is added to the build-chain. I am wondering how to redirect stdout to all compiler consoles and also, how do I break when an error occurs while executing that external tool? Answers are sought for modern common compilers. If there is a generic process or if it can be done automatically let me know. ...

How to set the build area for rpmbuild per-invocation

I'm modifying an automated build, and want to tell rpmbuild to use a specific build area when invoking it. This is similar to an existing question, but more specific. I don't want to run any of the build commands as the root user; the aim is only to have an RPM, not to install anything into the system. I don't want to require the user...

SSIS Script task in a 64 bit environment

SSIS (SQL 2005) packages that have a script task that invoke custom .NET dlls throw the following error when run in a 64 bit environment The task cannot execute in 64-bit environment because the script is not pre-compiled. Please turn on the option to pre-compile the script in the task editor. The script tasks are set to PreCompile=fa...

Build number increment not reflected in AssemblyVersion

I've browsed through some of the discussion on auto-incrementing build numbers, but in the impatience of youth decided to roll my own and re-invent the wheel. I know there are probably better ways to go about this (which I'm definitely going to investigate), but my question centers more around the Assembly and/or Version classes. My ap...

Why does Go compile quickly?

I've Googled and poked around the Go website, but I can't seem to find an explanation for Go's extraordinary build times. Are they products of the language features (or lack thereof), a highly optimized compiler, or something else? I'm not trying to promote Go; I'm just curious. ...

Error handling in VS/C# build events.

I have just written a small utility to be used in a pre-build event. The utilty works fine when run as standalone, but does nothing when used in the build event. Is there a standard way of noticing and dealing with error conditions in build events, or is that the domain of more advanced build control? ...

Does Visual Studio 2008 use make utility?

I have checked in buid directory and have not found makefile there. How does Visual Studio 2008 buid the project? Does it use makefile? ...

How to copy referenced assembly's dependecies to ASP.NET output bin folder?

Hi all, In Visual Studio 2010, I have project A (asp.net application). Project A references project B (class library). Project B references assembly C (direct reference to a DLL). When building project A, only project A and project B binaries are present in the /bin directory of project A, but not the assembly C. Why is that? If projec...

Proving the ROI of a technology?

How does one prove the ROI of a technology to their manager? The closest thing I have found to a document on how to do this is: http://www.agilejournal.com/pdf/Finding-ROI-in-Build-Automation.pdf There are formulas in this document, but I can't really tell if they are just alot of marketing or if they are accurate formulas on how to ...

Visual studio keeps building everything

I have a large sln with many project. I just made a change in project A and it build 9 other projects that project A references, but that had no code change. Anyone know of any tricks to speed this process up? ...