I ran into an issue today where VB is behaving differently from C#. The issue is as follows.
Also note this is for .Net 4.0.
- Both projects are set to build in release mode
- Both projects are in the same solution
- The solution is set to build in release
- Both projects output to a Release folder in bin / obj
Everything seems to be okay except for one thing. When inspecting the files with a tool such as http://assemblyinformation.codeplex.com/ the VB projects show as Debug and the C# projects show as Release.
I tracked this down to a setting in the Advanced Compiler Options for the pdb files. If the debug info output for VB is set to anything other than none - then the project builds in debug mode (keep in mind it still outputs to the release folder). C# does not exhibit this behavior.
I did a blog post here to work around the issue - but would love to know the root cause if any one knows.
http://tsells.wordpress.com/2012/03/08/vb-projects-always-building-in-debug-mode/