Embedded Resource of xml file

  • Thread starter Thread starter Mullin Yu
  • Start date Start date
M

Mullin Yu

am i right that if i set the Advanced Build property of the xml file to be
"Embedded Resource"?

do i mean that i don't need to copy the xml file when deployment?

the following is my coding:
Stream xmlStream =
Assembly.GetExecutingAssembly().GetManifestResourceStream("SynESDForm.SynESD
Form.xml");

XmlDocument xmlDoc = new XmlDocument();
//xmlDoc.Load("SynESDForm.xml");
xmlDoc.Load(xmlStream);
 
indeed, i just want to deploy the application with all the resource to a
directory.

if my Build setting is to c:\build, i want my application and all the
resources automaticlly be deployed/copied to that folder.

now, just only the application

thanks!
 
then, i can't change the content of the xml file, right?

this isn't what i want as the xml file is a config file that users can
change the setting.

how can i deploy it with my project during the build? i use the command
script to compile and deploy the application, but the resource files had not
been deployed

devenv -build abc.sln

thanks!

PocketNerd said:
If you set the Build Action to Embedded Resource, the XML file will
actually be embedded into the assemby, not copied to your build folder.
 
Back
Top