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 / .NET SDK / February 2004

Tip: Looking for answers? Try searching our database.

Can I distribute gacutil.exe?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Setec Astronomy - 26 Jan 2004 20:42 GMT
Hy,
I would like to know if I can distribute gacutil.exe with my commercial
softwares.

Thanks.
Somchai U. - 27 Jan 2004 09:03 GMT
I think gacutil.exe is included with .NET framework (in
windows\microsoft.net\framework\<version> directory), so you do not need to
redistribute it alone. However, in normal installation of .NET framework,
the PATH does not point to this directory. So you may have problem running
this utility.

Somchai

> Hy,
> I would like to know if I can distribute gacutil.exe with my commercial
> softwares.
>
> Thanks.
Setec Astronomy - 27 Jan 2004 10:49 GMT
> I think gacutil.exe is included with .NET framework (in
> windows\microsoft.net\framework\<version> directory), so you do not
> need to redistribute it alone. However, in normal installation of
> .NET framework, the PATH does not point to this directory. So you may
> have problem running this utility.

Sorry but gacutil.exe is a part of the .NET framework SDK, not a part
of the redist package.
Phil Wilson - 27 Jan 2004 14:42 GMT
It's not been very consistent. It was not part of the 1.0 framework redist,
but it showed up if you installed 1.0 framework SP2, but it's not in 1.1 so
it looks like it's really not intended to be part of the redist.

However the question isn't about where it is, but whether it is legal to
ship it - I assume the poster wants to use it to install assemblies in the
GAC and therefore it needs to be in the deployment package.
Signature

Phil Wilson
[MVP Windows Installer]

>
> > I think gacutil.exe is included with .NET framework (in
[quoted text clipped - 5 lines]
> Sorry but gacutil.exe is a part of the .NET framework SDK, not a part
> of the redist package.
Setec Astronomy - 27 Jan 2004 14:48 GMT
> However the question isn't about where it is, but whether it is legal
> to ship it - I assume the poster wants to use it to install
> assemblies in the GAC and therefore it needs to be in the deployment
> package.  --

Exactly, can I lagally deploy it?

Signature

I am what I am, I do what I can
Non trovi qualche cosa? http://url.repository.biz/go/1J

Gaurav Khanna [C# MVP] - 28 Jan 2004 07:35 GMT
Hi!

Why would you want to distribute gacutil.exe? Do you wish to deploy your
assemblies at runtime in the GAC?

If so, you could use the GacInstall method of the Publish class in
System.EnterpriseServices.Internal namespace.

Does that help?

Signature

Regards,
Kumar Gaurav Khanna
-----------------------------------------------------------------
Microsoft MVP - C#/.NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
Bangalore .NET Users' Group
http://groups.msn.com/bdotnet/

>
> > However the question isn't about where it is, but whether it is legal
[quoted text clipped - 3 lines]
>
> Exactly, can I lagally deploy it?
Setec Astronomy - 28 Jan 2004 08:43 GMT
> Why would you want to distribute gacutil.exe? Do you wish to deploy
> your assemblies at runtime in the GAC?

Yes.

> If so, you could use the GacInstall method of the Publish class in
> System.EnterpriseServices.Internal namespace.
>
> Does that help?

Excellent! I will use it instead of gacutil.

Thanks.
Setec Astronomy - 28 Jan 2004 15:02 GMT
> > If so, you could use the GacInstall method of the Publish class in
> > System.EnterpriseServices.Internal namespace.
> ...
>
> Excellent! I will use it instead of gacutil.

For completeness:

Add reference to System.EnterpriseServices

using System.EnterpriseServices.Internal;

// ...

String path = Directory.GetCurrentDirectory() + "\\";
Publish p = new Publish();
p.GacInstall(path + "server.dll");

Signature

I am what I am, I do what I can
Non trovi qualche cosa? http://url.repository.biz/go/1J

Jason M. Bower - 02 Feb 2004 19:07 GMT
Gacutil.exe ships as part of the .NET Framework SDK. Unfortunately this
tool is not redistributable. Microsoft recomends creating an installation
package that installs your assemblies to the GAC. The .NET Framework SDK
EULA provides specific imformation on what SDK components are
redistributable.

The .NET Framework SDK can be downloaded from
http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4070-
9f41-a333c6b9181d&DisplayLang=en.

Thank you,

Jason [MS-SDK]

--------------------
>From: "Phil Wilson" <pdjwilson@nospam.cox.net>
>References: <YYeRb.288097$e6.11182589@twister2.libero.it>
<ORu19RL5DHA.2056@TK2MSFTNGP10.phx.gbl>
<hnrRb.289327$e6.11230939@twister2.libero.it>
>Subject: Re: Can I distribute gacutil.exe?
>Date: Tue, 27 Jan 2004 06:42:11 -0800
[quoted text clipped - 7 lines]
>NNTP-Posting-Host: ip68-96-84-20.oc.oc.cox.net 68.96.84.20
>Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP10.phx.gbl
>Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.sdk:8607
>X-Tomcat-NG: microsoft.public.dotnet.framework.sdk
[quoted text clipped - 15 lines]
>> Sorry but gacutil.exe is a part of the .NET framework SDK, not a part
>> of the redist package.
Torulf Goteman - 03 Feb 2004 23:41 GMT
Hi i installed the sdk in order to get gacutil. But when i tried to
execute it  i've got: this program could not start because MCVCR70.dll
is missing. Why is that? Shouldn't it come with the sdk package ?

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



©2009 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.