![]() Gacutil -i C:\SampleProject\SampleAssembly.dll NET framwork 4.0 then look in C:\WINDOWS\Microsoft.NET\assembly, else look in C:\Windows\Assembly. This command installs SampleAssembly.dll into the GAC. To install an assembly using gacutil, use the following command. There are 2 ways to install an assembly into GAC. To install an assembly into the GAC, the assembly must be strongly named, otherwise you get an error stating - Failure adding assembly to the cache: Attempt to install an assembly without a strong name. The following are the paths for the 2 GAC'sġ. One for DotNet 2.0 to 3.5 assemblies and the other for. XCopy deployment is simply copying files from one location to another. This is because in XCopy deployment, we only copy the application files to the target machine and not the GAC contents. ![]() You shouldn't add an assembly into the GAC, if you wish to deploy your application to another machine using XCopy deployment. It is recommended to install an assembly into GAC, only when required and shared by applications, otherwise they should be kept private. Assemblies in the GAC can be shared by all applications running on that machine, without having to copy the assembly locally. ![]() GAC stands for Global Assembly Cache and contains strong named assemblies.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |