Signing ASP .NET DLL

  • Thread starter Thread starter Hayato Iriumi
  • Start date Start date
H

Hayato Iriumi

I've been trying to use sn utility to sign my ASP .NET DLL, but no luck.
Well that's because ASP .NET gets compiled in a weird place like
C:\Documents and Settings\ProfileName\VSWebCache\MachineName

Does anyone know how I can accomplish signing ASP .NET DLL from VS .NET IDE?
I'm using VB .NET by the way, so Build Event is not an option....
 
Just use the sn.exe utility to create a KeyFile (*.snk), and refer to the
KeyFile in your AssemblyInfo file. Example:

[assembly: AssemblyKeyFile("c:\\myKey.snk")]

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Yeah, full path would work, but I'm trying to do it using relative path
within VS .NET. Any idea?
 
It doesn't matter. The keyfile will not be included in the end product. It
is simply used when compiling to create the strong name in the asembly.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
I know how things work, and the only thing I'm trying to figure out is
to have key file in VS .NET and sign Web app DLL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top