Wednesday, April 25, 2012

Why is a bad practice to distribute the Debug version of the application in .NET?

Reading this question, in the first comment, @Cody Gray says:




Erm, you know that you're not supposed
to redistribute the "Debug" version,
right?




I'm concerned about it. In Visual Studio, I usually develop my applications in Debug mode, and if I need to distribute the executable, all I do is zip the .exe and required .dll files (in bin\Debug folder).



Why is it a bad idea?



What is the difference between doing this and doing exactly the equivalent thing in Release mode?



Edit:

I asked this question time ago, but I just wanted to edit it to add a difference:



When using Debug.Assert in the code to test it, and compile in Release Mode, all those lines are gone, so that could be another difference.





No comments:

Post a Comment