- What is gacutil.exe. Where do we store assemblies
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: - What is gacutil.exe. Where do we store assemblies

  1. #1
    Join Date
    Mar 2011
    Posts
    1

    - What is gacutil.exe. Where do we store assemblies

    hi guys

    please help me in this problem that What is gacutil.exe. Where do we store assemblies.

    Thanks & Regards
    Diya

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: - What is gacutil.exe. Where do we store assemblies

    try from a command prompt (substitute G with a free drive letter)
    SUBST G: C:\WINDOWS\ASSEMBLY
    then go to see the new mapped disk via explorer...


    as per your assignment:
    what is GacUtil : http://msdn.microsoft.com/en-us/libr...v=vs.100).aspx

    where do we store assemblies:
    If this was a developer question, I would have answered
    if they are shared: in Gac
    if they are private or local: whereever is your exe or in any below folder.
    But I do belive this question is more on the Probe process of Net:
    from http://msdn.microsoft.com/en-us/library/15hyw9x3.aspx
    If there is no <codeBase> element in the application configuration file, the runtime probes for the assembly using four criteria:

    Application base, which is the root location where the application is being executed.

    Culture, which is the culture attribute of the assembly being referenced.

    Name, which is the name of the referenced assembly.

    The privatePath attribute of the <probing> element, which is the user-defined list of subdirectories under the root location. This location can be specified in the application configuration file and in managed code using the AppendPrivatePath property for an application domain. When specified in managed code, the managed code privatePath is probed first, followed by the path specified in the application configuration file.

    Probing the Application Base and Culture Directories

    The runtime always begins probing in the application's base, which can be either a URL or the application's root directory on a computer. If the referenced assembly is not found in the application base and no culture information is provided, the runtime searches any subdirectories with the assembly name. The directories probed include:

    [application base] / [assembly name].dll

    [application base] / [assembly name] / [assembly name].dll

    If culture information is specified for the referenced assembly, only the following directories are probed:

    [application base] / [culture] / [assembly name].dll

    [application base] / [culture] / [assembly name] / [assembly name].dll

    Probing with the privatePath Attribute

    In addition to the culture subdirectories and the subdirectories named for the referenced assembly, the runtime also probes directories specified using the privatePath attribute of the <probing> element. The directories specified using the privatePath attribute must be subdirectories of the application's root directory. The directories probed vary depending on whether culture information is included in the referenced assembly request.

    The runtime stops probing the first time it finds an assembly that matches the simple assembly name referenced, whether it is a correct match or not. If it is a correct match, that assembly is used. If it is not a correct match, probing stops and binding fails.

    If culture is included, the following directories are probed:

    [application base] / [binpath] / [culture] / [assembly name].dll

    [application base] / [binpath] / [culture] / [assembly name] / [assembly name].dll

    If culture information is not included, the following directories are probed:

    [application base] / [binpath] / [assembly name].dll

    [application base] / [binpath] / [assembly name] / [assembly name].dll
    better you read this:
    http://msdn.microsoft.com/en-us/magazine/cc164080.aspx
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,101

    Re: - What is gacutil.exe. Where do we store assemblies


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center