Tom
Tom

Reputation: 857

C# compiler including local path in EXE

When I compile a Release project (DEBUG is not enabled) in VS 2010, I'm seeing things like this in the generated EXE:

C:\Code\Test\Test\obj\x86\Release\Test.pdb

Why is this, and how can I disable it? I've tried Googling, but can't find much.

Upvotes: 3

Views: 128

Answers (2)

aL3891
aL3891

Reputation: 6275

Allthough i havent actually tried looking in the exe file, you can disable generation of pdb files (and presumably their inclusion in the exe) from the project properties under Build > Advanced > Debug info. if you set this value to 'None', nothing should be generated

Even for release the default is to generate pdb files only.

Upvotes: 2

astellin
astellin

Reputation: 443

These files are for debugging. They contain (among other thins) information on matching breakpoint in code to place in the compiled code. They should not be shipped with the binaries.

Upvotes: 0

Related Questions