473,395 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

shared assembly, gac and setup project

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
Nov 15 '05 #1
2 2727
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" <au*****************@studentas.lt>
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: <Ol**************@TK2MSFTNGP10.phx.gbl>
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!TK2MSFTN GXS01.phx.gbl!TK2MSFTNGXA0
5.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gb lXref: 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


Nov 15 '05 #2
There's an article on MSDN on this at:

http://support.microsoft.com/default...b;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: da****@online.microsoft.com (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 TargetMachine 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" <au*****************@studentas.lt>
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: <Ol**************@TK2MSFTNGP10.phx.gbl>
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!TK2MSFT NGXS01.phx.gbl!TK2MSFTNGXA

05.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.g bl
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


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill | last post by:
I created a shared assemble and dropped it into Windows\assembly. Browsing this directory shows that it is in there and the properties looks as expected. However, when I attempt to add this as a...
1
by: Dan | last post by:
Here's a scenario I'd like to discuss in order to setup my VS.NET IDE properly and be able to prepare a distribution: a) I have a windows forms C# app using 3 shared assemblies I developed to...
2
by: Bob | last post by:
I have a common assembly DLL that's installed into GAC (using msi created by a setup project). It contains classes used by all the applications we have. This works well but when I increase the...
0
by: RadekP | last post by:
Hi Gurus .. I would really appreciate some insights for the problem that bugs me for quite some time. I keep my custom controls in their own shared (private/public key signed) assembly. I need...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
11
by: Just Me | last post by:
I have a solution containing many usercontrol projects. When I wish to reference a usercontrol in another project I can select either the project or the assembly. Does it make a difference which...
5
by: Rich | last post by:
Hello, So I develop a vb.net exe on my (win2k) workstation. I have to deploy it to another workstation (actually several - all win2k). Each receiving workstation will have .Net Framework 1.1...
10
by: =?Utf-8?B?SmFjayBTbWl0aA==?= | last post by:
Hello, I have a solution that contains a C# application that is installed and runs as a service. The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs. ...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.