build-process

How does C# compilation get around needing header files?

老子叫甜甜 提交于 2019-11-28 03:02:32
I've spent my professional life as a C# developer. As a student I occasionally used C but did not deeply study it's compilation model. Recently I jumped on the bandwagon and have begun studying Objective-C. My first steps have only made me aware of holes in my pre-existing knowledge. From my research, C/C++/ObjC compilation requires all encountered symbols to be pre-declared. I also understand that building is a two-step process. First you compile each individual source file into individual object files. These object files might have undefined "symbols" (which generally correspond to the

Building a WAR project with unzipped JAR dependency?

牧云@^-^@ 提交于 2019-11-28 03:01:30
问题 I have two projects, my-lib and my-webapp . The first project is a dependency of my-webapp . Thus, when ask Maven2 to build my WAR, the my-lib JAR is added in the WEB-INF/lib/ directory of the web application. However, I want to have the my-lib JAR unzipped directly in the WEB-INF/classes directory, exactly as if the my-lib sources were contained in the project my-webapp . In others words, instead of having the following WAR content: my-webapp/ ... WEB-INF/ lib/ my-lib-1.0.jar ... (others

Best .NET build tool [duplicate]

左心房为你撑大大i 提交于 2019-11-28 02:54:06
Possible Duplicate: NAnt or MSBuild, which one to choose and when? What is the best build tool for .NET ? I currently use NAnt but only because I have experience with Ant . Is MSBuild preferred? Peter Meyer We actually use a combination of NAnt and MSBuild with CruiseControl . NAnt is used for script flow control and calls MSBuild to compile projects. After the physical build is triggered, NAnt is used to publish the individual project build outputs to a shared location. I am not sure this is the best process. I think many of us are still looking for a great build tool. One promising thing I

What is the point of a “Build Server”? [closed]

邮差的信 提交于 2019-11-28 02:52:09
I haven't worked for very large organizations and I've never worked for a company that had a "Build Server". What is their purpose? Why aren't the developers building the project on their local machines, or are they? Are some projects so large that more powerful machines are needed to build it in a reasonable amount of time? The only place I see a Build Server being useful is for continuous integration with the build server constantly building what is committed to the repository. Is it I have just not worked on projects large enough? Someone, please enlighten me: What is the purpose of a build

Why is a different dll produced after a clean build, with no code changes?

 ̄綄美尐妖づ 提交于 2019-11-27 23:35:02
When I do a clean build my C# project, the produced dll is different then the previously built one (which I saved separately). No code changes were made, just clean and rebuild. Diff shows some bytes in the DLL have changes -- few near the beginning and few near the end, but I can't figure out what these represent. Does anybody have insights on why this is happening and how to prevent it? This is using Visual Studio 2005 / WinForms. Update: Not using automatic version incrementing, or signing the assembly. If it's a timestamp of some sort, how to I prevent VS from writing it? Update: After

Have CMake recursively scan folders?

耗尽温柔 提交于 2019-11-27 20:16:05
问题 How do I set up CMake to recursively scan a given directory and determine the list of source files? My project is a shared library. I have a folder structure similar to this: / src/ # Source files in an arbitrary tree include/ # Headers, tree mirrors that of the src/ folder examples/ # Executable code examples that link against the library CMakeLists.txt I want CMake to recursively scan src and include and determine the list of source and header files in my project, regardless of the

Clean Windows Azure Website

柔情痞子 提交于 2019-11-27 19:57:43
My ASP.NET MVC project pushed to a Azure website with an extra DLL which is invalid. This is keeping the project from running correctly. If a new website is created it works perfectly. Cleaning the project locally and redeploying does not fix the problem. Is there a way to perform a "remote clean?" This project is being deployed directly from Visual Studio with the publish menu item. When you right click and click Publish Web on the left hand side there should be a settings tab. Click this. Then expand the option under File Publish Options and check the Box for Remove addtional files at

How to filter the xcodebuild command line output?

自闭症网瘾萝莉.ら 提交于 2019-11-27 18:58:31
Running xcodebuild from the console will bring you very verbose output and I wasn't able to locate any options for limit its output in order to display only warnings and errors. I'm looking for a way to capture the xcodebuild output and filter it. It would prefer a Python solution that will work with pipes but I'm open to other approaches as long they are command line based solutions. Are any tools that are already able to do this? To only see the error output messages, redirect the standard output to /dev/null (a special file that works as a black hole) like this: xcodebuild > /dev/null If

Maven 3 profile with extensions

半世苍凉 提交于 2019-11-27 18:01:31
问题 My question had been addressed in this thread, but the explanation is not clear. I have this build definition in one of my pom.xml files: <build> <finalName>${my.project}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.kuali.maven.wagons</groupId> <artifactId>maven

PDB files for production app and the “Optimize code” flag

元气小坏坏 提交于 2019-11-27 17:33:29
问题 When should I include PDB files for a production release? Should I use the Optimize code flag and how would that affect the information I get from an exception? If there is a noticeable performance benefit I would want to use the optimizations but if not I'd rather have accurate debugging info. What is typically done for a production app? 回答1: When you want to see source filenames and line numbers in your stacktraces, generate PDBs using the pdb-only option. Optimization is separate from PDB