build

Build problem for v.s 2008 project

I'm using v.s 2008 with c#. I have a windows service. I stoped that service and do some changes in the codes. I want to build my project but the visual studio open "save as" window. How can i build my project again? ...

Release build time takes so long in VS2008

Hi, When i build the project, build time get so much time if it is release. in release, linking time is : 130secs in debug, linking time is : 15secs for the same project. there is no difference in compiling, but linking there is a huge difference. do you know why it could be? ...

TFS Check-in Policy for testing without vsmdi

In our msbuild script we can run unit tests without using the vsmdi file: We would like to enforce tests to be run on check in. The "Testing policy" seems to require a .vsmdi file. Is there a way to do this without one? ...

iPhone Build Configuration Enabling Features

Question about best practices. Is there a way to programmatically detect whether the app is being compiled for an AdHoc configuration, and, if so, enable a feature in the app? For example, I am thinking of enabling a switch between beta and prod environment given depending on whether the app is an an AdHoc vs. Release configuration. T...

How to reference both ASSEMBLYVERSION and ASSEMBLYFILEVERSION?

I need to display both the AssemblyVersion and the AssemblyFileVersion. In AssemblyInfo.cs, I have: [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("2009.8.0")] However, I only get "2009.8.0" when I reference the above with: public class VersionInfo { public static string AppVersion() { ...

C# - Visual Studio 2008 capable of Conditional Compilation?

Referring to the "Configuration Manager" under the Build menu. Is there a way to comment my C# code so that the commented out code does not compile while the solution is in Debug mode, but would compile if I changed it to Release mode? Update: Judging by the answers, I should have said why I wanted this. The reason I want to have code...

Build automation tools, pointers

Hi guys, I am looking to automate the installation of software produced by my build process. How do i automate this process - any tools, pointers will help. ...

Is there a way to do a 'project only' build or rebuild for a C# project

In Visual Studio 2005, you can right-click on a C++ project and choose Project Only > Build Only [project]. Is there any way of doing the same for a C# project? If I choose Build from the project right-click menu, it builds all the dependencies too. ...

Build system choice?

I am currently setting up a new software project and I want to have an automated build system. The project has a fairly complex involving C, C#. It must also generate automatic bindings (Python, PHP, Java, Ruby, etc.) using an external tool (SWIG). The project should be able to built, and run in Linux, Windows, and possibly Mac OS X. I...

What free, portable .Net tools are available?

I'm starting a new .Net project, and I would like to know your recommendation for tools to use. In general, I would like to have the following: Somebody should be able to check out the project and build it with nothing more than mono or .Net installed It should build on as many platforms as possible (or at least Windows and Linux) Som...

How to build a DLL from the command line in Windows using MSVC

Hi. I've been doing C for about 20 years but I've never built a DLL; I've always prefered to statically link. I use the command line - cl.exe, etc - and gnumake makefiles, to build my Windows applications. I now want to build a DLL and I'm confused. Ultimately, I will end up with both a .lib and a .dll. The .lib contains stub code w...

Managing XML files in a Visual Studio project (2 instances)

Managing XML files in a Visual Studio project (2 instances) If I add an XML file to my VS project it at the root level of the project with the source files. But then if I want to test or build I need a copy down in the bin directory. Of course I always end up editing the one at the root level that is in VS and then I go to test and am u...

Maven-like dependency management for C++?

Say I have a C++ project that is split in several subprojects. The subproject all produce a DLL and different teams of developers work on each of the subproject. Now if I want to build the main project, is there a way to avoid having to build all the subprojects by myself? In short, I'm looking for something that does the dependency man...

What steps can I take to optimise build times in TeamCity?

I'm currently trying to reduce the time taken to compile and unit test projects in TeamCity. Currently my project takes about between 5 to 8 minutes to build. What it does is: Clean any existing files Compile each project Create the installer Once that is done the unit tests are kicked off and it takes about 2 minutes to run. What...

Hudson continuous-integration - How to Aggregate the archived artifacts?

The Hudson CI Server has a configuration option called "Aggregate the archived artifacts". If I'm right, this option is used to share previously build artefact's across other builds/jobs. I have tried it, but it seems not working for me. How would the correct setup looks like? (PHAR packages are similar to JAR but for PHP) My current wo...

Compiling text resources int SWF and reading them

Hi. What I want to do is to display the buildnumber in a Flex appliation. My build system (Maven) will supply the buildnumber. But how do I compile it into the SWF and display it in the UI? A possible option might be to create a text file and compile it somehow into the swf, then read the resource in the actionscript code and display i...

Unable to build SciPy on OS X 10.5.7

Hi, I am trying to install SciPy following these instructions: http://www.scipy.org/Download And constantly getting error to build them for OS X Lepeord 10.5.7: dyld: lazy symbol binding failed: Symbol not found: _iconv_open Referenced from: /usr/lib/libaprutil-1.0.dylib Expected in: /opt/local/lib/libiconv.2.dylib dyld: Symbol n...

"fatal error U1087: cannot have : and :: dependents for same target"

Using the Microsoft Driver Development Kit (DDK), this error plagued me as I attempted even to build the default drivers included with the DDK. I had a some difficulty in tracking down the cause and solution through Google. In an effort to aid others who may experience this same problem, I am documenting it here. Error: "fatal error U...

build PHP with ant scripts

Hey everyone, I was just wondering how I use Ant to build my web applications that I have written in PHP? I've googled around a bit and I have seen that it is possible but there are not any examples of the basic idea or any advanced use for them. Can any of you help me out? Thanks! ...

Why use a dedicated computer to make builds using TFS?

At the MSDN site, it states: "... install Team Foundation Build on a computer that is dedicated to running builds." OK, I got that. But my manager didn't, and I wasn't able to convince him. This way, I aske the SO community to help me convince him of the need to use a dedicated computer to run builds. ...