shared assembly, gac and setup project

  • Thread starter Aurimas Norkevicius
  • Start date
A

Aurimas Norkevicius

I have two web projects and a class library in the same solution. Both web
projects uses class library dll.
How to create a web setup project to install class library into client
computers gac and those two projects to use that copy of dll from gac.

Thank you,

Aurimas
 
D

David Guyer [MS]

You'll need to strong-sign your shared class library. Then in the setup
project, go to the File Editor and right click on the File System on Target
Machine node and select the "Global Assembly Cache" folder. Drag your
Project Output group, or the file from wherever it currently is in the
setup project to the Global Assembly Cache folder.

You don't need to do anything but re-compile your applications to get them
to use the GAC copy. By recompiling, they'll have a "strong name
reference". The .NET Frameworks always checks the GAC first for "strong
name referenced" dependencies, and loads them from there automatically.
 
D

David Guyer [MS]

There's an article on MSDN on this at:

http://support.microsoft.com/default.aspx?scid=kb;en-us;324168

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Newsgroups: microsoft.public.dotnet.languages.csharp
From: (e-mail address removed) (David Guyer [MS])
Organization: Microsoft
Date: Thu, 08 Jan 2004 20:50:47 GMT
Subject: RE: shared assembly, gac and setup project
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

You'll need to strong-sign your shared class library. Then in the setup
project, go to the File Editor and right click on the File System on Target
Machine node and select the "Global Assembly Cache" folder. Drag your
Project Output group, or the file from wherever it currently is in the
setup project to the Global Assembly Cache folder.

You don't need to do anything but re-compile your applications to get them
to use the GAC copy. By recompiling, they'll have a "strong name
reference". The .NET Frameworks always checks the GAC first for "strong
name referenced" dependencies, and loads them from there automatically.


---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Aurimas Norkevicius" <[email protected]>
Subject: shared assembly, gac and setup project
Date: Mon, 5 Jan 2004 12:58:05 +0200
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: adsl-212-59-23-112.takas.lt 212.59.23.112
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGXS01.phx.gbl!TK2MSFTNGXA
0
5.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:209427
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

I have two web projects and a class library in the same solution. Both web
projects uses class library dll.
How to create a web setup project to install class library into client
computers gac and those two projects to use that copy of dll from gac.

Thank you,

Aurimas
 

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