build-process

Maven and dependent modules

こ雲淡風輕ζ 提交于 2019-11-27 10:42:15
问题 Colleagues have been touting the wonders of maven and its magical dependency stuff but I'm finding that it fails at what I would consider the obvious use. Suppose I have a root folder with a master POM. Then underneath I have some projects, call them A and B B requires A and so the POM in the B folder has the appropriate dependency entry in it Now, back in the root folder, in a profile, I specify that I want to build B. When I perform the usual mvn clean install, I get a failure because A was

Visual Studio 2010, how to build projects in parallel on multicore

牧云@^-^@ 提交于 2019-11-27 10:33:35
问题 I have a big solution with more than 40 projects. Almost half of them are test projects. In my project we use both Code Contracts, Code Analysis, Style Analysis. I want to be able to build the projects that are not dependent in parallel on my quad core CPU. How can I setup msbuild to build the projects in parallel? 回答1: In Visual Studio: Tools | Options | Projects and Solutions | Build and Run. This should default to your CPU count. From the command line: msbuild /maxcpucount[:n] (is n is not

Using CMake to generate Visual Studio C++ project files

风格不统一 提交于 2019-11-27 10:28:56
I am working on an open source C++ project, for code that compiles on Linux and Windows. I use CMake to build the code on Linux. For ease of development setup and political reasons, I must stick to Visual Studio project files/editor on Windows (I can't switch to Code::Blocks , for example). I see instructions to generate Visual Studio files using CMake, as here . Have you used CMake to generate Visual Studio files before? How has been your experience? Suppose I want to add a new file to my project. What is the workflow for this? Alex CMake is actually pretty good for this. The key part was

How to get Visual Studio 'Publish' functionality to include files from post build event?

∥☆過路亽.° 提交于 2019-11-27 10:18:58
I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration. I develop in a 32bit environment but need to create a release package for a 64bit environment, so in the 'Release' configuration I have a post build event that copies the 64bit version of a third-party dll into the bin directory overwriting the 32bit version. When I use the 'Publish' functionality, even though the correct 64bit dll is being copied to the bin directory

Why use Gradle instead of Ant or Maven? [closed]

冷暖自知 提交于 2019-11-27 09:55:09
What does another build tool targeted at Java really get me? If you use Gradle over another tool, why? Rich Seller I don't use Gradle in anger myself (just a toy project so far) [author means they have used Gradle on only a toy project so far, not that Gradle is a toy project - see comments] , but I'd say that the reasons one would consider using it would be because of the frustrations of Ant and Maven. In my experience Ant is often write-only (yes I know it is possible to write beautifully modular, elegant build s, but the fact is most people don't). For any non-trivial projects it becomes

Programming Definitions: What exactly is 'Building'.

。_饼干妹妹 提交于 2019-11-27 09:25:50
问题 What does it mean to build a solution/project/program? I want to make sure I have my definitions correct (so I don't sound like a idiot when conversing). In IDE's, you can (correct me if I'm wrong) compile source-code/programming-code into computer-readable machine code. You can debug a program, which is basically stepping through the program and looking for errors. But what exactly does building a program do? In VS I'm aware that when you build a program it produces an executable file in a

C# could not load file or assembly…system cannot find file specified [duplicate]

倾然丶 夕夏残阳落幕 提交于 2019-11-27 07:54:53
问题 This question already has answers here : Could not load file or assembly or one of its dependencies (36 answers) Closed 11 months ago . Writing a routine WinForms app that references a few custom libraries written by myself. I am building one particular library which depends on another library and, when I do, I get the following warning message: "Could not load file or assembly 'RHLib' Version 1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find

VisualStudio: How to save the obj folder somewhere else

≯℡__Kan透↙ 提交于 2019-11-27 06:57:23
Does anyone know how to tell VS(2008) where to save the obj folder when building the solution? We have it save the bin folder to another path in order to keep the source file folders small (ie. emailable), but can't find any way to tell it to do the same with obj... Use the BaseIntermediateOutputPath property in the project file ( .csproj , .vbproj , etc.), as explained at http://msdn.microsoft.com/en-us/library/bb629394.aspx . You'll have to manually edit the XML document using a text editor, then reload it in Visual Studio. It may still create the obj folder (that's a known bug), but will

The model item passed into the dictionary is of type ‘mvc.Models.ModelA’ but this dictionary requires a model item of type ‘mvc.Models.ModelB‘

人盡茶涼 提交于 2019-11-27 06:56:46
I have this annoying mistake in some of my builds. There is no error in the project, because if I build again, then the problem disappears. The message only appears, when the site is deployed to a Windows 2008 Server. I first thought that it might be an issue with temporary files, but thats not the case. I deployed the build to a different web and the error still appears. The error appears on random actions of the site. Most of the time builds are ok, but each 3rd or 4th build produces runtime errors. I build using a WebdeploymentProject in release mode. Views are precompiled. It's not In ASP

Copy all files and folders using msbuild

我是研究僧i 提交于 2019-11-27 06:35:16
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 dirs} What I need to be able to do is copy all the files and sub folders from the tools folder into the debug folder for the application. This is the code that I have so far. <ItemGroup> <Viewer Include="..\$(ApplicationDirectory)\Tools\viewer\**\*.*" /> </ItemGroup> <Target Name="BeforeBuild"> <Copy SourceFiles="@(Viewer)