build

Force rules for build and deployment

Our web project is source-controlled with SVN. It contains MSBuild file to build local, test and production builds. We also use CruiseControl.NET to deploy production and test versions to servers manually (not after every commit). The question is how to check that if production deployment is being done using CC.NET web project is built ...

NAnt build c# project with Linq to SQL Classes

I'm in the midst, after many hours of researching how to automate the build process, writing a nAnt build script for a project that works with COM interop (not by choice... just the only way to integrate with the host package). I'm trying to figure out, one of my dll's happens to contain a Linq to SQL class in it, and I'd like to, if at...

c++ problem with build

I have this method declaration in Util.h file 30:string to_string(const bit_vector& v); Util.cc file has the definition string to_string(const bit_vector& v){ string str = ""; for (bit_vector::const_iterator i = v.begin(); i < v.end(); ++i){ if(*i == 1) str += "1"; else str += "0"; } return str; } when I try to bui...

Flex ant task problem

When I try to build a project that uses Flex and where the Flex SDK is on one drive and the project files on another I get the following error in ant: [mxmlc] java.lang.NoClassDefFoundError: flex2/tools/Compiler [mxmlc] Exception in thread "main" It seems to be a problem with the Flex mxmlc ant task. Anyone know the root cause of this...

c++ visual studio 2008 Linking problem

When I build my project it compiles well, but when Linking it throws huge number of LNK errors! error LNK2001, error LNK2005, error LNK2019 were there in the error list >Linking... 1>MultiCatAttributeInfo.obj : error LNK2019: unresolved external symbol "public: class std::vector<class std::basic_string<char,struct std::char_traits<char>...

Automatic Deployment of Webservice

We've been using Visual Studio 2008 to deploy/publish our webservices for a while now and we'd like to automate the build (get code from sourcesafe, build, label the code, copy files to test pc,...). For our other projects we use Kinooks Visual Build but I can't get it to deploy as Visual Studio does. As the developers at Kinook advised...

Including non-code in VS project.

So I've got several projects in a solution. A couple of class librarys, a UI, and several testing projects. There is a set of XML files that are used to store alot of configuration information that we need to init our app. I want to have one place that is THE xml files and then copy that set of XML into the different projects when they...

Find out why Visual Studio decides to copy DLLs into a bin directory

I have a web application project. I am trying to find out why certain DLLs are being copied into the bin directory of the web application. As far as I can see there are no references to the DLLs under the list of references. Whilst I don't think it should make a difference, I have been through all the DLLS of the projects that the web a...

how to link to static library in c?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a" but my project doesn't compile) ...

How do I share a label value between multiple CC.NET builds?

I have two projects set up in CC.NET: CI build and nightly build. Both of them execute the same nant script, but with different parameters. The CCNET label (currently generated by the DefaultLabeler) is embedded into AssemblyInfo as the build part of the version (e.g *MajorVersion.MinorVersion.CCNET_Label.SVN_Revision*). For more cons...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I'm developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I'm having struggle setting up the environment for this development project. First a clarification why I'm using the approach I'm describing here:...

How do I get notification that the local Visual Studio build is complete?

There doesn't seem to be a post-build solution task. One could presumably hack it by creating a dummy project that is the last one to build and put a beep in the post-build project. ...

Defining your own VS C++ Build Macros

We came across a bunch of pre-defined Build Macros for instance $(SolutionDir), but can you define your own build macros in Visual C++ 2005? ...

How to programmatically build a visual studio solution ?

I would like to compile a solution by passing the solution file path (.sln file) and the build mode (debug, release). I do not want to call a command line process like devenv.exe or msbuild.exe, instead I would like to use an API and know if there were compile errors. Is it possible ? Please provide samples if you think you know how to ...

Keyboard shortcut to build only startup project?

Hi, I've tried to find a keyboard shortcut to build only the startup project In VS2008. I only found a configurable shortcut to build the project which is currently viewed, which isn't as good. Any ideas? Thanks. ...

CVS ChangeLog-script for windows-based build-process?

Hello, Do you know if there is a script or tool to create a changelog from our cvs, which can be integrated in a build-process on a windows-based build-server. I found this: http://www.red-bean.com/cvs2cl/, but it is not possible to install Perl on our build-server so i can't use cvs2cl. I've tried the simple command "cvs log", but ther...

maven use a different directory for site source files than src/site

I need to configure where my Maven 2 project's site files are located, by default they are src/site/, I'd like to point them to src-documentation/site, how would I override Maven's default conventin? ...

How do I get rid of "API restriction UnitTestFramework.dll already loaded" error?

The following error pops up every now and then: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamTest\Microsoft.TeamTest.targets(14,5): error : API restriction: The assembly 'file:///C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll' has already l...

Is there such a thing as an automatic build in any IDE for .NET?

I'm not talking about a continuous build process, but the excellent feature in Eclipse whereby any java code changes are automatically built in a background thread. With this enabled, running unit tests or applications is immediate. Going back to the 'manual' builds of VS20XX is quite painful. I've only seen this working in Eclipse for ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/k12/ #svn log --revision "HEAD" /var/www/code/ | head -2 | tail -1 | awk '{print $1}' > /var/www/path/version.txt # upload the files rsync ...