build-process

Build numbers: major.minor.revision

人走茶凉 提交于 2019-11-28 13:50:50
问题 How would you write a build.xml file, using neither custom code nor external dependencies (such as a shell script), that: Generates a build number of the form major.minor.revision (e.g., 01.02.34 ). Auto-increments the revision on each compile of the source code. Auto-increments the minor version on each execution of a dist(ribution) task. Additionally: Provides an option to increment the major number. Provides an option to increment the minor number. Whenever the major number is incremented,

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

巧了我就是萌 提交于 2019-11-28 13:45:51
This question already has an answer here: Could not load file or assembly or one of its dependencies 35 answers 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 the file specified" The application functions, there are no error messages, but I am one of those that likes a completely clean

How does Go compile so quickly?

只愿长相守 提交于 2019-11-28 13:21:10
问题 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. 回答1: Dependency analysis. From the Go FAQ: Go provides a model for software construction that makes dependency analysis easy and avoids much of the overhead of C-style include files and libraries. That is the main

The dreaded java.lang.NoClassDefFoundError

余生颓废 提交于 2019-11-28 11:36:59
I've looked through many of the existing threads about this error, but still no luck. I'm not even trying to package a jar or use any third-party packaging tools. I'm simply running from within Eclipse (works great) and then trying to run the exact same app from the command line, in the same location it's built to (getting this error). My goal is to be able to zip up the bin folder and send it off to be run by someone else via a command line script. Some details: It's a command-line app and I'm using the commons-lang-2.4.jar for string utilities. That is the file that cannot be located

How can I combine and compress multiple script and css files for production use?

五迷三道 提交于 2019-11-28 11:09:17
I want to use YUI Compressor to combine and compress my css and js file sets when I compile my project. YUI Compressor only takes as input single files. I've tried using the following (Windows) commands to append to the output files, but strange characters appear in the output where appendage occurs. How can I use windows command line or powershell to achieve this? java -jar yuicompressor-2.4.2.jar --charset utf-8 jquery-1.3.2.js > scripts-all.min.js java -jar yuicompressor-2.4.2.jar --charset utf-8 jquery.superfish.js >> scripts-all.min.js If you're developing on Windows, don't forget there's

Target-specific Variables as Prerequisites in a Makefile

為{幸葍}努か 提交于 2019-11-28 10:55:13
I'm trying to write a GNU make Makefile which has a load of similar targets, where the build commands vary slightly between them. I'm trying to use target-specific variables to represent these variations. Some of these variable values refer to files I want to use as prerequisites. For example: target_1:special_filename=target1_prereq target_2:special_filename=target2_prereq target_1 target_2: common_filename $(special_filename) do_something common_filename --a-weird-option=$(special_filename) When I call 'make target_1', I want it to make target1_prereq if it doesn't exist. At the moment, it

Build information in iOS Application (date/time app was built)

自古美人都是妖i 提交于 2019-11-28 10:07:32
I'm looking for a way to dynamically add in information about the application during the build process of an iOS application. During testing, it would be great to know when the application I have installed on my device was built and possibly who built it would be a good to know as well. I'm envisioning a section in settings.app that would give basic build information for debugging purposes. I don't want to have to manually update a build information file before each build - the data should be generated dynamically. You can write a shell script build phase in Xcode that runs at the end of your

What are ways of improving build/compile time?

半世苍凉 提交于 2019-11-28 09:18:58
I am using Visual Studio, and it seems that getting rid of unused references and using statements speeds up my build time on larger projects. Are there other known ways of speeding up build time. What about for other languages and build environments? What is typically the bottleneck during build/compile? Disk, CPU, Memory? What is a list of/are good references for distributed builds? Sebastiaan Megens The biggest improvement we made for our large C++ project was from distributing our builds. A couple of years ago, a full build would take about half an hour, while it's now about three minutes,

Script to change Action Sequence records in an MSI

冷暖自知 提交于 2019-11-28 08:45:42
To solve a problem listed here I've got to change the InstallExecuteSequence .RemoveExistingProducts record in an MSI. I want to do this as part of the build process rather than mucking around with Orca Modifying the MSI_SetProperty.js script gives // MSI_SetActionSequence.js <msi-file> <table> <action> <sequence> // Performs a post-build fixup of an msi to set the specified table/action/sequence // Constant values from Windows Installer SDK var msiOpenDatabaseModeTransact = 1; var msiViewModifyInsert = 1; var msiViewModifyUpdate = 2; var msiViewModifyAssign = 3; var msiViewModifyReplace = 4;

Keeping projects in sync across multiple .NET versions

巧了我就是萌 提交于 2019-11-28 08:44:13
问题 I need to create some core libraries within my application which will be available in both .NET 3.5 and .NET 4.0. I'm happy creating multiple projects, creating the required defines and using #ifdef to control which code make it into which output assembly. However, what I would like to know is if there is a way of keeping those projects in sync? When I am developing under XNA, I have a Windows build and a Windows Phone build - and XNA injects a property into the project file called