XML Files in Framework Installation path.

Hi,

While playing around, I found that Each of the Microsoft .Net assembly in the Installation path of .Net Framework(...\Microsoft.NET\Framework\v2.0.50727) has an XML file associated, in the same path.

(e.g) System.XML.dll has System.XML.xml

May I know the purpose of the XML file who will be using this XML file, is it the CLR

Regards,

Benin.




Answer this question

XML Files in Framework Installation path.

  • eshl

    No CLR will not use this file .This file use to generate help file . Whenever you are adding comments on your class and methods then this comments will be part of this file .You can get this things from this example

    /// <summary>

    /// To create Records in tables.

    /// </summary>

    Testmethod()

    {

    }

    Now this comments will be part of {assembly}.xml file . This file can be generated by specifying name in XMLDocumentation File properties in Project properties .(refer 2003 VS.NET)



  • dvidal

    Thanks...

  • vbjunkie

    Thanks.

    but who is using this XML file why do microsoft depoly this file as a part of the .Net Framework



  • QuantumMischief

    To use the generated .xml file with IntelliSense .That's why XML file name is same as assembly name .

  • kkthkg

    up to my knowledge intelligence would be provided through the information available in the assembly metadata. Then why do we need the XML file for intelligence

  • gabit7

    NO this is not the case

    To use the generated .xml file for use with the IntelliSense feature, let the file name of the .xml file be the same as the assembly you want to support and then make sure the .xml file is in the same directory as the assembly. Thus, when the assembly is referenced in the Visual Studio project, the .xml file is found as well.

    Let say you created a assembly called Test.dll and referenced in some client project . If the client project has test.xml file in same directory where test.dll is there , then only they can view comments using intellisense. (Note: if the name of xml file is not as dll name then it won't work).

    If the .xml is not found then you won't be able to view comments . You can test with small application . I tested it and it is working fine for me .



  • XML Files in Framework Installation path.