VS 2005: Sharing key along all projects in the the same solution

S

Steve B.

Hello,

With VS 2003, I used to add a .snk file in the solution items, and for each
projects, I added the AssemblyKeyFile attribute in assemblyinfo.cs pointing
to that key file (..\..\..\mykey.snk).

With VS 2005, the project property page does not allow using relative path.
Moreover, if I browse for the key file, the file is duplicated. If I keep
the "old" syntax (using the attribute in assemblyinfo.cs), the compiler
throw a warning.

Is there any "official" way to share the same key file across all projects
in the same solution ?

Thanks,
Steve
 
N

NuTcAsE

Is there any "official" way to share the same key file across all projects
in the same solution ?

Whenever you use browse for the key file in the project property pages
it will ALWAYS copy the key file. Alternatively you can try editing the
AssemblyInfo.cs/vb file under the Properties node and manually add the
path to the key file there.
 

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

Top