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

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 and it won’t come back. That this option is turned on by default for the Release build is, arguably, a bit of a flaw but defensible. … Read more

IIS 7.5 Fixing An attempt was made to load a program with an incorrect format problem?

Found the problem – The solution is in the way that the two AppPools are configured: Default Website/my_app is using DefaultAppPool where Enable 32-Bit applications is TRUE Beta/my_app -> BetaAppPool is using Enable 32-Bit applications is FALSE Changing BetaAppPool to set Enable 32-Bit applications to TRUE has fixed this problem. Solution was found by @Rick … Read more

TFS 2012 Build “Access to Path Denied”

As others mentioned, this happens when performing multithreaded builds with a common destination directory and the file copy task happens to encounter a simultaneous conflict with a copy task running for a different project. Normally this should result in a “file used by another process” exception (which is handled and retried by the file copy … Read more

Using Visual Studio project properties effectively for multiple projects and configurations

I just found out somthing I didnt think was possible (it is not exposed by the GUI) that helps make property sheet far more useful. The “Condition” attribute of many of the tags in the project property files and it can be used in the .props files as well! I just put together the following … Read more