Click here to Skip to main content
16,005,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: When Public isnt really Public Pin
Judah Gabriel Himango6-Aug-05 15:05
sponsorJudah Gabriel Himango6-Aug-05 15:05 
GeneralRe: When Public isnt really Public Pin
Robert Rohde7-Aug-05 6:00
Robert Rohde7-Aug-05 6:00 
GeneralRe: When Public isnt really Public Pin
Judah Gabriel Himango7-Aug-05 19:09
sponsorJudah Gabriel Himango7-Aug-05 19:09 
GeneralRe: When Public isnt really Public Pin
Luis Alonso Ramos6-Aug-05 15:17
Luis Alonso Ramos6-Aug-05 15:17 
GeneralRe: When Public isnt really Public Pin
MrEyes7-Aug-05 2:07
MrEyes7-Aug-05 2:07 
GeneralRe: When Public isnt really Public Pin
Dario Solera7-Aug-05 5:49
Dario Solera7-Aug-05 5:49 
GeneralRe: When Public isnt really Public Pin
MrEyes7-Aug-05 13:01
MrEyes7-Aug-05 13:01 
GeneralRe: When Public isnt really Public Pin
Dario Solera7-Aug-05 21:29
Dario Solera7-Aug-05 21:29 
The utility name is gacutil.exe, you can find it via-code in %windir%\Microsoft.NET\Framework\v1.1.4322\gacutil.exe

to install an assembly in the GAC use the command

gacutil /i "Assembly Path"
for example gacutil /i "D:\Projects\MyPrj\Release\bin\MyLib.dll"

to remove it

gacutil /u AssemblyName
for example gacutil /u "MyLib.dll"

It isn't complicated.


To improve performances you can install the assembly in the GAC with the ngen.exe (you can find it in the same directory of gacutil) utility. That program translates the assembly in a native image (i.e. an exe or dll file containing only machine-level code).

To di this, use the command:

ngen "Assembly Path"
for example ngen "D:\Projects\MyPrj\Release\bin\MyLib.dll"

to remove it you can use ngen and gacutil both.

the first way is
ngen /delete MyLib.dll

the second one is
gacutil /u MyLib.dll

to run those commands via-code (C#)

System.Diagnostic.Process.Start("Exe Path", "Arguments);

To avoid console is shown, you should learn more about Process class.

I hope I've been helpful.


GeneralRe: When Public isnt really Public Pin
Matt Gerrans7-Aug-05 20:22
Matt Gerrans7-Aug-05 20:22 
GeneralRe: When Public isnt really Public Pin
Dario Solera7-Aug-05 21:41
Dario Solera7-Aug-05 21:41 
GeneralRe: When Public isnt really Public Pin
Matt Gerrans8-Aug-05 16:23
Matt Gerrans8-Aug-05 16:23 
GeneralRe: When Public isnt really Public Pin
Dario Solera8-Aug-05 20:56
Dario Solera8-Aug-05 20:56 
GeneralRe: When Public isnt really Public Pin
Robert Rohde7-Aug-05 5:59
Robert Rohde7-Aug-05 5:59 
GeneralRe: When Public isnt really Public Pin
MrEyes7-Aug-05 13:03
MrEyes7-Aug-05 13:03 
GeneralRe: When Public isnt really Public Pin
Roman Rodov7-Aug-05 19:16
Roman Rodov7-Aug-05 19:16 
GeneralRe: When Public isnt really Public Pin
lmoelleb7-Aug-05 21:08
lmoelleb7-Aug-05 21:08 
QuestionCan a focused textbox accept only real keypress but not "sendkeys"? Pin
bihshan.lin6-Aug-05 5:48
bihshan.lin6-Aug-05 5:48 
AnswerRe: Can a focused textbox accept only real keypress but not "sendkeys"? Pin
Judah Gabriel Himango6-Aug-05 7:10
sponsorJudah Gabriel Himango6-Aug-05 7:10 
GeneralTo loginto a remote Computer from an ASPX page Pin
Sanjay Suhag6-Aug-05 4:36
sussSanjay Suhag6-Aug-05 4:36 
GeneralTabControl problem... Pin
QzRz6-Aug-05 2:46
QzRz6-Aug-05 2:46 
GeneralHiding a window Pin
mamtz6-Aug-05 2:09
mamtz6-Aug-05 2:09 
GeneralRe: Hiding a window Pin
[Marc]6-Aug-05 9:11
[Marc]6-Aug-05 9:11 
GeneralRe: Reports Pin
Anonymous6-Aug-05 0:16
Anonymous6-Aug-05 0:16 
GeneralRe: Reports Pin
Guffa6-Aug-05 0:55
Guffa6-Aug-05 0:55 
QuestionHow to add buttons to DataGridColumn? Pin
amrutajoshi6-Aug-05 0:12
amrutajoshi6-Aug-05 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.