473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Signing assemblies ???

Dear all,

I have different asseblies that I would like to sign in order to place them
in the GAC.
For that I first create a keypair at the same place as my solution file with :

sn -k lang.snk

Then in my assemblyInfo file I place following line:
<Assembly: AssemblyKeyFileAttribute("lang.snk")>

I read from MSDN that the key is searched first from the same directory as
the solution and after from the output file.

BAsed on that if I complie my solution, I get an error message saying that
the file lang.snk cannot be find

The only way to make it compile was to specify the complete path fro the key.

How can I specify the relative path instead ?

thnaks for your help
Serge

Sep 1 '05 #1
1 1241
AFAIK the path is calculated from the output directory. Try using
...\..\lang.snk

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:FF**********************************@microsof t.com...
Dear all,

I have different asseblies that I would like to sign in order to place
them
in the GAC.
For that I first create a keypair at the same place as my solution file
with :

sn -k lang.snk

Then in my assemblyInfo file I place following line:
<Assembly: AssemblyKeyFileAttribute("lang.snk")>

I read from MSDN that the key is searched first from the same directory as
the solution and after from the output file.

BAsed on that if I complie my solution, I get an error message saying that
the file lang.snk cannot be find

The only way to make it compile was to specify the complete path fro the
key.

How can I specify the relative path instead ?

thnaks for your help
Serge

Sep 2 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ayende Rahien | last post by:
I'm trying to build my application with a strong name, but I get this errors: error CS1577: Assembly generation failed -- Referenced assembly 'AxInterop.SHDocVw' does not have a strong name ...
6
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment...
3
by: Joel Leong | last post by:
I wish to know the industrial practices for signing assemblies with key files. I genereted a key file to sign my assemblies. Should I sign all my assemblies with a single key files or I shall...
6
by: MoriCristian | last post by:
Just a question. If i have an app with a dll version 1.5 and I replace it with version 1.6 everithing works fine. If i change the strong name however the app crash, but this is fine. My curiosity...
2
by: Henrik Skak Pedersen | last post by:
Hello, I have a class which is beeing serialized/deserialized using the BinaryFormatter class. That has been working with no problems until I signed all my assemblies. Now I get a...
1
by: Jason Richmeier | last post by:
I have encountered an error while attempting to sign an assembly. I have become quite frustrated since I seem to be going in circles and making no progress. Hopefully someone will have the magic...
0
by: Raffi Basmajian | last post by:
I am trying to understand the difference between signing ClickOnce manifests and signing shared assemblies. My company is building .Net 2005 WinForm applications for internal company use only....
0
by: Krish | last post by:
In .Net we can do digital signing of files. Visual studio provides easy means of doign this. I also know that there is Authenticode signing which gives one more level of security as it gives...
0
by: =?Utf-8?B?d29taW4=?= | last post by:
Hello, I have a software that I sign with a trusted certificate from Verisign (both the assemblies and the MSI packages) following Microsoft recomendations. In most of the cases I install the...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.