• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Diffrence between debug & release versions

Hello,

I am new to C#.
I wrote a C# application, compiled it as Debug version (I have a dll inside inside bin folder) and gave it to my customer.
Should I compile it as Release version?
What is a diffrence between Debug & Release version? When should I use each of these compilations?

THANKS
Margarit

Debug-Release.JPG
0
margarit
Asked:
margarit
  • 2
  • 2
2 Solutions
 
AndyAinscowFreelance programmer / ConsultantCommented:
You should always distribute the release versions.
Typically a debug build contains extra information/code to assist in debugging - usually means bigger and slower.
0
 
ErburethCommented:
When you compile a program in Debug mode, usually no optimizations are made, and, what is more important, symbolic names of functions and variables are exported too, so you can debug your program easily. On the other hand, Release mode compilation makes some speed optimizations and no debug symbols are included, so the resulting binary is smaller and faster. So always remember to switch to Release mode before compiling your program for distribution :)
0
 
margaritAuthor Commented:
Thanks for the useful comments. One more question:
When I give the debug version to customer I give him EXE + dll.
Does executable from release version contains dll inside of it, or I should use EXE+dll too?
THANKS
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
You still need both.
You build a release version of the exe AND a release version of the dll
0
 
margaritAuthor Commented:
THANKS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now