![]() Now if the same Project1 assemblies is to be used in 10 different Project of Same/Different solutions, then the reference of the Project1 assemblies needs to be added to the new projects. ![]() When we add the refernece of Project1 in the Project2 then what actually happens is that the Project1 assemblies will be copied to the bin folder of the Project2. There are two project in one solution, Project1 and Project2 Why an Assembly needs to be added inside GAC? Here System assembly will be automatically installed into GAC when we install the. We can see that System assembly is in the references folder of the Console Application project we have created. ![]() System Assembly is present inside the GAC In the above code WriteLine is a method present in the Console class,Ĭonsole is a class present in the System assembly, So that these assemblies can be used by all the applications running in a system.Įxample of an application using an assembly from GACĬonsider a console application with code as follows GAC is a folder in windows, containing all the public assemblies in a machine, Definition : GAC stands for Global assembly cache and it contains all the public assemblies.
0 Comments
Leave a Reply. |