C# release version has still .pdb file

后端 未结 5 1874
离开以前
离开以前 2020-11-28 22:56

I want to deploy the release version of my application done in C#.

When I build using the Release config, I still can see that .pdb files a

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 23:47

    You control pdb / symbol generation in the project properties under Build -> Advanced... -> Debug info:. The options are:

    • none (no symbol information)
    • full (a .pdb will be produced, and some symbol information is embedded in the assembly)
    • pdb-only (a .pdb will be produced but the assembly is not impacted)

    See http://msdn.microsoft.com/en-us/library/8cw0bt21%28VS.80%29.aspx for more information.

    I strongly recommend that you choose the pdb-only option, not the none option as it still gives you some symbol information without affecting the assembly - you will probably find that this is the current setting you have on your release builds.

提交回复
热议问题