Xcode – Automatically add all files in a folder to a target

This is completely broken in Xcode. Adding folders by folder reference (@Pavel’s answer) should be correct – but it just doesn’t work. See also https://stackoverflow.com/a/42600782/2518722. I’m using Xcode 8.3 (update: still broken in Xcode 11), but it’s been broken for many generations prior, too. There isn’t a perfect workaround, but this is what I do: … Read more

ant depends vs. antcall

The biggest difference is that Ant will ensure that dependencies declared via depends are called at most once. For example: <target name=”a” /> <target name=”b” depends=”a” /> <target name=”c” depends=”a” /> <target name=”d” depends=”b, c” /> If I call target d, b and c are called. However, a is only called once (even though both … Read more

How to check if an assembly was built using Debug or Release configuration?

Check this. The idea is that you get the list of assembly attributes using Assembly.GetCustomAttributes() and search for DebuggableAttribute and then find if such attribute has IsJITTrackingEnabled property set. public bool IsAssemblyDebugBuild(Assembly assembly) { return assembly.GetCustomAttributes(false).OfType<DebuggableAttribute>().Any(da => da.IsJITTrackingEnabled); }

Visual Studio 2010 Publish Web feature not including all DLLs

None of these answers are sufficient in my mind. This does seem to be a genuine bug. I will update this response if I ever find a non-hack solution, or Microsoft fixes the bug. Update: Doesn’t seem promising. https://connect.microsoft.com/VisualStudio/feedback/details/731303/publish-web-feature-not-including-all-dlls

Qt – ‘Shadow Building’?

Shadow building is a technique used to build different Qt builds of the same version for different platforms/compilers/etc. Your compiled build is in a different directory, separate from the original Qt source directory. I’ve created a shadow build for my MSVS2010 compiler. If I wanted to, I could create a new build for MinGW in … Read more