Compiling Satellite Assemblies With Strong Names

G

Guest

I am writng a dictionary application for windows ce using vs.net 2003 and
the .net cf .I am using a resource file which i compiled into an assembly. I
think I need to get it into the global assembly cache in order to get pass
the following problem of the mobile application code not being able to find
the resourse file which i referenced. This problem still occurs even though i
added the resource file to the smart application solution and set its build
mode to 'embedded resource'. I think to get pass this error i need to get the
assembly into the gac; and in order to do that i need to give the assembly i
created a strong name...in doing this however,the first step of obtaining a
public key i use the following code in the vs.net command prompt: "sn –k
TestKeyPair.snk" . I do not get any error message but later on in calling the
command: "al /t:lib /embed:dictionary.resources /culture:dictionary
/out:DictionaryApplication1.resources.dll /delay+ /keyfile:publicKey.snk" I
get an error that the TestKeyPair.snk file cannot be found.

Any help will be appreciated.
 
G

Guest

First : Delay signing is not supported by CF.

Second : in your command line, the key file is specified as "PublicKey.snk"
but I've generated "TestKeyPair.snk", is it normal ?

Third : You can also specify the key file directly into the assembly.cs file.

I've wrote an article (in French, my mother tongue) about registering
assemblies (and satelites) into the GAC here :
http://www.codeppc.com/dotnet/gac/gac.htm

I hope this can help you.

Romu
 

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