开发者

C# compiler including local path in EXE

开发者 https://www.devze.com 2023-03-28 10:45 出处:网络
When I compile a Release project (DEBUG is not enabled) in VS 2010, I\'m seeing things like this in the ge开发者_StackOverflow中文版nerated EXE:

When I compile a Release project (DEBUG is not enabled) in VS 2010, I'm seeing things like this in the ge开发者_StackOverflow中文版nerated 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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消