Hello,
Issue: Reading a xml file embedded into a resource of a class library
Developing platform: C#
Issue description:
- When the dll is imported in the windows form application, i want to load the xml file that is in the resources of the dll and get the contents of the xml file.
- Gives me argument null exception whenever i try to do:
System.IO.StreamReader xml_stream = new StreamReader( Assembly.GetExecutingAssembly().GetManifestResourceStream( "DGV.Resources.Communications.xml") );
- Communications.xml is the xml file and DGV is the namespace and Resources is the resource folder created in which the Communications.xml file is.
Please tell me the solution for as i am getting no solution on internet.