build-process

Visual Studio keeps building everything

怎甘沉沦 提交于 2019-11-27 16:08:25
I have a large .sln file with many projects. I just made a change in project A and it builds nine other projects that project A references, but that had no code change. Is there a trick to speed this process up? Divide and conquer: Limit the amount of build time that goes on in your solution by creating additional solutions that contain logical subsets of projects you're working on. This limits your scope and will speed up builds. See the The Partitioned Single Solution Model in this MSDN article: http://msdn.microsoft.com/en-us/library/ee817674.aspx Key quote from the article: Separate

How to get Target name?

随声附和 提交于 2019-11-27 15:26:21
We know that Xcode maintains environment variable of ${TARGET_NAME} but how to access this variable in objective-C code ? What I have tried ? I have added "TARGET_NAME=${TARGET_NAME}" this in Preprocessor macros section of Build Settings. But now I am not sure how to use this variable "TARGET_NAME" as a string in objective-C code. In my case product name and target name are different so, no chance to use that. I tried to access using #ifdef TARGET_NAME NSLog(@"TargetIdentifier %@",TARGET_NAME); #endif This code is giving error like "Use of undeclared identifier 'myapptargetname'" You can add

Finding compiler vendor / version using qmake

血红的双手。 提交于 2019-11-27 15:02:46
问题 Is there any way to get the version and vendor of the compiler used by the user through qmake? What I need is to disable building some targets of my project when g++ 3.x is used and enable them when g++ 4.x is used. Update: Most answers targeted the preprocessor. This is something that I want to avoid. I don't want a target to be build for a specific compiler version and I want this decision to be made by the build system. 回答1: In addition to ashcatch's answer, qmake allows you to query the

Maven for other languages? [closed]

白昼怎懂夜的黑 提交于 2019-11-27 14:21:00
I am relatively new to the world of Java and Maven, but I couldn't imagine starting a new Java project without using Maven. The idea of providing a human-readable project model is something that I would imagine is universally desirable across many languages. This is especially true when your application relies upon numerous external libraries. Are there any other project management or build tools for languages other than Java that are similar in nature to Maven; that is, that provide a mechanism for the project maintainer to specify dependencies and build order? Rich Seller Here's some I know

Adding classpath to jetty running in maven integration-test

廉价感情. 提交于 2019-11-27 12:46:02
问题 I'm trying to set up integration tests for a Maven project that produces a war file. (As seen here http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin/.) However I the war file requires a bunch of .properties files on the classpath, that I don't want to bundle in the war. Is there a way (preferably through plugin configuration) to add a folder to the classpath used by jetty? I Googled this and found http://markmail.org/message/awtqrgxxttra3uxx but this, as far as I can tell, does not

ILMerge DLL: Assembly not merged in correctly, still listed as an external reference

牧云@^-^@ 提交于 2019-11-27 12:45:21
问题 In the build process for a .NET C# tool, I have been using ILMerge to merge the assemblies into a single exe. I added a new class library recently, and now the ILMerge is failing. I have remembered to tell it to merge in the new DLL! It is now giving me this error, which I don't really understand: ILMerge.Merge: The assembly 'DataObjects' was not merged in correctly. It is still listed as an external reference in the target assembly. All of the assembly references I have done using 'project'

Visual Studio IDE: I want it to make a sound after it compiles so I can get back to work

我只是一个虾纸丫 提交于 2019-11-27 12:40:48
问题 Would be a nice thing - do I have to write a script or can't I just tweak the build script to do some task? 回答1: Windows already has support for this, go to the Control Panel and open up Sounds and Audio Devices. Under the Sounds tab there is a section for program events. If you scroll down far enough one of the sections will be Microsoft Visual Studio. Then just pick the sound you want to hear for Build Succeeded and Build Failed. You will need to restart Visual Studio after choosing your

Disabling the *.vshost.exe and miscellaneous files from being created on build

拜拜、爱过 提交于 2019-11-27 12:37:45
I found the following information about the Microsoft Visual Studio "extra" files: What is the purpose of the vshost.exe file? My question is, is there a way that I can NOT have the .pdb, .manifest and vshost.exe files from being made? Or are they absolutely necessary? I just noticed that after debugging it, it's still showing up as a running process in my machine which worries me since I already closed it. Switch to the Release configuration. Then Project + Properties, Debug tab, untick the "Enable the Visual Studio hosting process" option. Build + Clean, you can delete anything that's left

How to get cmd line build command for VS solution?

牧云@^-^@ 提交于 2019-11-27 11:48:34
This is probably easy but I am getting stuck: when I build a solution in Visual Studio - how do extract the exact cmd line for the current build command in order to be able to do the same build from VisualStudio console? In the output window I can see the single projects in the solution build commands but not the one for the whole solution. I am on VS2005. Any help would be appreciated In addition to what @JohnIdol says correctly, I've found that you need to setup a number VS environment variables. I don't have the name of the batch file in front of me, but you can modify or 'I think' use it.

Is continuous integration worth it for small projects?

送分小仙女□ 提交于 2019-11-27 11:40:08
问题 I've been pushing for continuous integration at my company since I joined 5 months ago, but having seen the type of applications we work on I'm starting to think that it might not be worth the effort of setting up each and every project for continuous integration. If you work in a development department where the average project takes 2-3 weeks and once it's deployed you seldom if ever have to worry about it, is continuous integration worth the hassle of setting it up? 回答1: Probably depends