Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2007

Tip: Looking for answers? Try searching our database.

How to share dll cross applications on deployment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Smart - 20 Aug 2007 18:54 GMT
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
Paul G. Tobey [eMVP] - 20 Aug 2007 19:00 GMT
Deploy them to \Windows.  That's always in the path.

Paul T.

> Hey,
> I am trying to create a couple of cab files for different projects,
[quoted text clipped - 5 lines]
>
> Thanks
<ctacke/> - 20 Aug 2007 19:20 GMT
Put them in the GAC (Google will help you find out how).

Signature

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

> Hey,
> I am trying to create a couple of cab files for different projects,
[quoted text clipped - 5 lines]
>
> Thanks
Smart - 21 Aug 2007 11:39 GMT
> Put them in the GAC (Google will help you find out how).
>
[quoted text clipped - 13 lines]
>
> > Thanks

thanks, I will give it try.
Smart - 21 Aug 2007 20:06 GMT
> > Put them in the GAC (Google will help you find out how).
>
[quoted text clipped - 19 lines]
>
> 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
<ctacke/> - 21 Aug 2007 20:24 GMT
See this:

http://msdn2.microsoft.com/en-us/library/aa446504.aspx

Signature

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

>> > Put them in the GAC (Google will help you find out how).
>>
[quoted text clipped - 27 lines]
>
> Thanks
Smart - 21 Aug 2007 20:28 GMT
> > > Put them in the GAC (Google will help you find out how).
>
[quoted text clipped - 27 lines]
>
> 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
Smart - 21 Aug 2007 22:47 GMT
> > > > Put them in the GAC (Google will help you find out how).
>
[quoted text clipped - 35 lines]
>
> 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
Peter Foot [MVP] - 22 Aug 2007 16:18 GMT
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

Signature

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

>> > > > Put them in the GAC (Google will help you find out how).
>>
[quoted text clipped - 42 lines]
> Unicode file, which device does not like. So I create manually a GAC
> file and deploy into window directory. everything works. Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.