Solved

Signing a .pdb file

Posted on 2011-09-11
4
665 Views
Last Modified: 2012-05-12
I would like to distribute my .pdb files through a ClickOnce install, but I cannot do it because the system does not want to sign the ClickOnce manifest when the .pdb are unsigned. And without a signed manifest, no ClickOnce.

How do you sign them.

I might be able do it by calling sn.exe in the build events, but is there an easier way built into Visual Studio?
0
Comment
  • 3
4 Comments
 
LVL 15

Expert Comment

by:x77
ID: 36521237
Pdb Files are used only on Debug, Reflector analysis, Mono.Cecil.Pdb.dll and other tools for code analysis.
Note that when you compile on release mode, pdb files are´nt generated.

You can distribute the Pdb files to other programmers, but I do´nt see advantages for distribution to users on release mode.

Pdb contains information aditional not cotained on assembly like parameter and local variable names on methods.
0
 
LVL 40
ID: 36522668
I very well know what pdb files are.

The idea of distributing them in release is to be able to retrieve more precise information from the stacktrace, such as source code line numbers, when exceptions arise on a test deployment to a few users before committing to a few hundred.

The problem is that Click Once deployment requires that the .pdb be digitally signed, but the compiler does not sign them. I was wondering if there was an easy way to do it because we frequently republish the application during those tests.
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 0 total points
ID: 36591289
The requirement for a signature for ClickOnce deployment has been removed in framework 3.5 SP1.

One of those changes that did not make it in the What's New, so I was not aware of it.

I simply removed the signatures from the manifest and application, and the pdb files were accepted when I published the package.
0
 
LVL 40

Author Closing Comment

by:Jacques Bourgeois (James Burger)
ID: 36715472
Nobody came with a solution, so I had to find one somewhere else.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now