web deployment project vs2005 (exit code 1)
In our latest build using Visual Studio 2005 Web Deployment Projects, we were seeing the build fail with the following error: aspnet_merge.exe exited with code 1. Not the most helpful error text.
The fix is relatively easy, however. Select Tools --> Options. Then in the Projects and Solutions branch, select Build and Run. You'll see a dropdown box for MSBuild Project Build Output Verbosity. Change this to Diagnostic, and OK.
Then show your build output by selecting the View --> Output option. Make sure that in the 'Show output from' box, you've selected "Build". Then just build your project, and wait for the inevitable fail. You should see something like:
An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'OurAssembly.Login' found in assembly 'App_Web_9wlv1iu2'.
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(574,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
Done executing task "AspNetMerge" -- FAILED.
Then adjust your class names to eliminate the duplicate class name(s), save and rebuild.