Link to home
Start Free TrialLog in
Avatar of specialist4u
specialist4u

asked on

how to register a .net dll on a system where visual studios is not installed

I created a project of type class library (.net C#), then i registered my assembly in Visual Studios Command Prompt using following commands:

regasm /tlb:membershipcards.tlb membershipcards.dll
gacutil /i membershipcards.dll

it is working fine, but what i will do to register my dll on a system where Visual Studios is not installed.
I tried regsvr32 but it is not working , it is asking entry point.
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

1. GacUtil is a part of the .net-framework (you can find it C:\WINDOWS\Microsoft.NET\Framework\<version> (where <version stands for the .net version you are using)
Go to that directory with a command prompt and execute "gacutil /i membershipcards.dll"
2. You can create an msi-file
ASKER CERTIFIED SOLUTION
Avatar of gearboxpc
gearboxpc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of specialist4u
specialist4u

ASKER

i executed the following command on windows command prompt

C:\Program Files\Microsoft Retail Management System\Store Operations\AddIns>gacutil /i membershipcards.dll


result :

'gacutil' is not recognized as operable program or batch file.

You need to go to the directory where gacUtil is installed !

So you need to do
C:\WINDOWS\Microsoft.NET\Framework\<version>  > gacutil /i C:\Program Files\Microsoft Retail Management System\Store Operations\AddIns\membershipcards.dll
where and how to execute RegAsm.exe command , i mean windows command prompt is not recongnising it, but it is present in framework 2.0 folder
thanks to all. actually there is no gacutil command in framework 2.0.  we just have to drag drop our assembly to Assembly folder in system32 after running regasm command
That is correct, I explained that Gacutil.exe is not included in the .NET Framework redistributable.  Please assign points to who deserves.