How to share dll cross applications on deployment

S

Smart

Hey,
I am trying to create a couple of cab files for different projects,
those projects share with a lot of common dlls. I tried to deploy
those common dlls to device window and window/system directory. But
when I run my application, it gives error: could not find those
references. I don't want to make some many duplicated copies of dlls.
How can I do that.

Thanks
 
S

Smart

Put them in the GAC (Google will help you find out how).

--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded Worldwww.OpenNETCF.com

thanks, I will give it try.
 
S

Smart

thanks, I will give it try.

Hey, I tried to create a device cab project, I want to specify all dll
go to window directory, and exe goes to application directory. I
create a window folder in cab project and put all dlls in the folder.
However all dlls still go to application directory with exe. How can I
set all dlls go to window directory?

Thanks
 
S

Smart

On Aug 20, 2:20 pm, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
Put them in the GAC (Google will help you find out how).
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded Worldwww.OpenNETCF.com

Hey,
I am trying to create a couple of cab files for different projects,
those projects share with a lot of common dlls. I tried to deploy
those common dlls to device window and window/system directory. But
when I run my application, it gives error: could not find those
references. I don't want to make some many duplicated copies of dlls.
How can I do that.
Thanks
thanks, I will give it try.

Hey, I tried to create a device cab project, I want to specify all dll
go to window directory, and exe goes to application directory. I
create a window folder in cab project and put all dlls in the folder.
However all dlls still go to application directory with exe. How can I
set all dlls go to window directory?

Thanks

And I also try to create a Gac folder in my cab project and add all
dlls in this folder. It supposed to copy all dlls into window
directory, right? It does not work for me. Also I thought .GAC file
will be copied to device. I could not find where my gac file goes
either.

Thanks
 
S

Smart

On Aug 20, 2:20 pm, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
Put them in the GAC (Google will help you find out how).
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded Worldwww.OpenNETCF.com

Hey,
I am trying to create a couple of cab files for different projects,
those projects share with a lot of common dlls. I tried to deploy
those common dlls to device window and window/system directory. But
when I run my application, it gives error: could not find those
references. I don't want to make some many duplicated copies of dlls.
How can I do that.
Thanks
thanks, I will give it try.
Hey, I tried to create a device cab project, I want to specify all dll
go to window directory, and exe goes to application directory. I
create a window folder in cab project and put all dlls in the folder.
However all dlls still go to application directory with exe. How can I
set all dlls go to window directory?

And I also try to create a Gac folder in my cab project and add all
dlls in this folder. It supposed to copy all dlls into window
directory, right? It does not work for me. Also I thought .GAC file
will be copied to device. I could not find where my gac file goes
either.

Thanks

I figured out by someone post on other forum. Because GAC file is
Unicode file, which device does not like. So I create manually a GAC
file and deploy into window directory. everything works. Thanks
 
P

Peter Foot [MVP]

That's true - there is a description of the issue here:-
http://peterfoot.net/BugInGACInstallationFromVS2005DeviceCABProjects.aspx

It's also covered in the Setup and Deployment chapter in our book (There's a
link on that page)

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

Smart said:
On Aug 21, 6:39 am, Smart <[email protected]> wrote:
On Aug 20, 2:20 pm, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
Put them in the GAC (Google will help you find out how).

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded Worldwww.OpenNETCF.com
Hey,
I am trying to create a couple of cab files for different
projects,
those projects share with a lot of common dlls. I tried to deploy
those common dlls to device window and window/system directory.
But
when I run my application, it gives error: could not find those
references. I don't want to make some many duplicated copies of
dlls.
How can I do that.

thanks, I will give it try.
Hey, I tried to create a device cab project, I want to specify all dll
go to window directory, and exe goes to application directory. I
create a window folder in cab project and put all dlls in the folder.
However all dlls still go to application directory with exe. How can I
set all dlls go to window directory?

And I also try to create a Gac folder in my cab project and add all
dlls in this folder. It supposed to copy all dlls into window
directory, right? It does not work for me. Also I thought .GAC file
will be copied to device. I could not find where my gac file goes
either.

Thanks

I figured out by someone post on other forum. Because GAC file is
Unicode file, which device does not like. So I create manually a GAC
file and deploy into window directory. everything works. Thanks
 

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