Click here to Skip to main content
15,881,172 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Saving a TextBox with Its Format Pin
J4amieC12-Oct-04 1:25
J4amieC12-Oct-04 1:25 
QuestionHow to make C# application run on win2000 and WinMe and Win98? Pin
momer11-Oct-04 1:24
momer11-Oct-04 1:24 
AnswerRe: How to make C# application run on win2000 and WinMe and Win98? Pin
Vasudevan Deepak Kumar13-Oct-04 2:02
Vasudevan Deepak Kumar13-Oct-04 2:02 
QuestionHowTo copy a folder with all permissions? Pin
akum10-Oct-04 22:40
akum10-Oct-04 22:40 
GeneralError: usbtest(Cs).exe----cannt find DLL Pin
momer10-Oct-04 19:23
momer10-Oct-04 19:23 
GeneralRe: Error: usbtest(Cs).exe----cannt find DLL Pin
J4amieC11-Oct-04 0:51
J4amieC11-Oct-04 0:51 
GeneralException in SafeNativeMethods Pin
Mikke_x10-Oct-04 19:18
Mikke_x10-Oct-04 19:18 
Generalreferencing assemblies in the GAC (global assembly cache) Pin
rajrao10-Oct-04 10:38
rajrao10-Oct-04 10:38 
the Visual Studie dev environment will not list the contents of the GAC in the add references dialog.

If you are developing dlls that you wish to distribute and have others reference then there are some steps that you need to perform.

If the assembly is shared (installed to the GAC) then you need to install a copy of it in another directory. This is what happens when you install the .net Framework. (reason follows later)

For Visual Studio to automatically show your DLLs in the add references dialog, add the following registry key.

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\.NETFrameWork\AssemblyFolders\SomeName

change its default value to the directory path where you installed your dlls.
(C:\Program Files\MyCustomDLLs\bin)

Now the reason for having to make a copy of the GAC'ed assemblies: If you had to reference them without making a copy, you would have an unweildly path to put into the registry. Also think about the scenario where you would have multiple dlls that you put in the GAC and need to have people reference the, a seperate key for each one of them as they reside in seperate folders.

Note: when one references a shared assembly (one that is in the GAC), from the location where a copy was installed, you will find that the "Copy Local" property for that dll will be set to false. This is what should happen. (In some circumstances, like some MS Sql app dlls, the copy local property gets set to true - can lead to some very bad behaviour).

Hope this helps.

Spent a lot of time trying to get all this info.

refenced: Applied Microsoft .NET framework programming (Jeffery Richter) a very very good book
GeneralMicrosoft Installer does not remove assemblies from the GAC - Global Assembly Cache Pin
rajrao10-Oct-04 9:52
rajrao10-Oct-04 9:52 
GeneralRemoting to unmanaged 3ds Max plugin Pin
DonCroco9-Oct-04 1:53
DonCroco9-Oct-04 1:53 
QuestionHow to compare two files' content in C#? Pin
momer8-Oct-04 17:20
momer8-Oct-04 17:20 
AnswerRe: How to compare two files' content in C#? Pin
J4amieC11-Oct-04 0:56
J4amieC11-Oct-04 0:56 
AnswerRe: How to compare two files' content in C#? Pin
Aryo Handono21-Oct-04 2:59
professionalAryo Handono21-Oct-04 2:59 
Questionhow to owner-draw mainMenu? Pin
mickelliot8-Oct-04 14:42
mickelliot8-Oct-04 14:42 
QuestionHow to use Regular Expression to split a String Pin
Dan Dusek8-Oct-04 14:03
Dan Dusek8-Oct-04 14:03 
AnswerRe: How to use Regular Expression to split a String Pin
Tomas Petricek9-Oct-04 14:51
Tomas Petricek9-Oct-04 14:51 
GeneralBIZTALK 2004 -- Configuration Issue Pin
DotNetLearner8-Oct-04 4:42
DotNetLearner8-Oct-04 4:42 
GeneralWeb Access Failed Error Pin
Hadi Fakhreddine7-Oct-04 20:43
Hadi Fakhreddine7-Oct-04 20:43 
GeneralDynamic Image on Crystal Report Pin
HyVong7-Oct-04 12:37
HyVong7-Oct-04 12:37 
QuestionTTfonts,Label,Drawtext Anomaly? Pin
rlphillips7-Oct-04 5:40
rlphillips7-Oct-04 5:40 
GeneralNgen outlook Com addin dll Pin
Isaac Varghese7-Oct-04 0:19
Isaac Varghese7-Oct-04 0:19 
QuestionHow to conjoin C# code with VC++6.0 code? Pin
momer6-Oct-04 19:40
momer6-Oct-04 19:40 
AnswerRe: How to conjoin C# code with VC++6.0 code? Pin
Nnamdi Onyeyiri7-Oct-04 23:20
Nnamdi Onyeyiri7-Oct-04 23:20 
GeneralRe: Nnamdi Onyeyiri Pin
momer10-Oct-04 15:46
momer10-Oct-04 15:46 
GeneralRe: Nnamdi Onyeyiri Pin
Nnamdi Onyeyiri11-Oct-04 2:23
Nnamdi Onyeyiri11-Oct-04 2:23 

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.