installing assembly into the GAC

S

skindiver

I am trying to install some assemblies into the GAC on my custom CE device
with CF 2.0.
I have a simple text file (myAssem.gac) that lists my .dlls like:

\windows\myAssemb1.dll
\windows\myAssemb2.dll

These dlls were built with VS 2005 CF 2.0
I have verified the .gac and .dlls files are in the windows directory on
startup but they don't seem to be loading into the GAC as far as I can tell.

I remember this working in my CE 4.2 and CF 1.0 implementation.

The only way I can test is to run my test app that requires one of my .dll
and see if it throws a missing assembly exception, which it does.

Is there an easer way to see if my assembly actually got loaded? It looks
like the cgacutil does not support the /l option like gacutil.

Also, are the assemblies "required" to be signed? Mine are not as I am
using the command line CSC compiler to automate my build and signing would
be a pain. Can I spec the PublicKeyToken=null?
Again, I don't remember signing in 4.2 CF 1.0

Thanks.
 
S

skindiver

I guess signing was not as difficult from the command line as I thought.

Next question, what is the easeest way to get the version number of an
assembly from the GAC?
(Compact Framework) example??
 
D

Daniel Moth

You get the assembly version the same way as you get it for assemblies not
in the gac (Assembly1.GetName().Version). If you are using Load then you
obviously have to specify the full name (pkt, culture etc).

For next *new* question please start new thread (I appreciate that they are
all in the same area but they are separate questions/answer pairs).

Cheers
Daniel
 

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