S
Steve Richter
I am embedding an xml file in my class library assembly.
In solution explorer I right click a folder, add , new item, xml file.
then on the xml file I right click, properties, build action =
embedded resource.
build the class library, run the following code to access the XML as a
stream:
Stream cmdsStream =
Assembly.GetExecutingAssembly().GetManifestResourceStream(
"AutoCoder.Ftp.FtpCommands.xml");
get back null. as in the resource stream is not found.
so I go back to the class library project, rebuild all, and use
ObjectBrowser to display the contents of the assembly. I dont see the
xml embedded resource file. Looking everywhere, starting from the
namespace of the folder I placed the file in.
Did I embed the file incorrectly?
thanks,
-Steve
In solution explorer I right click a folder, add , new item, xml file.
then on the xml file I right click, properties, build action =
embedded resource.
build the class library, run the following code to access the XML as a
stream:
Stream cmdsStream =
Assembly.GetExecutingAssembly().GetManifestResourceStream(
"AutoCoder.Ftp.FtpCommands.xml");
get back null. as in the resource stream is not found.
so I go back to the class library project, rebuild all, and use
ObjectBrowser to display the contents of the assembly. I dont see the
xml embedded resource file. Looking everywhere, starting from the
namespace of the folder I placed the file in.
Did I embed the file incorrectly?
thanks,
-Steve