简体   繁体   中英

Package xml file with silverlight xap output

I have a Silverlght library project that produces a dll output. This project utilises a xml file for parsing etc.
There is a second project that references the Dll project to get the built dll files and package into a xap.
However, when I run my silverlight web application project, it gives me an error that there is no xyz.xml file found
What properties of the.xml file do I need to change so tha it goes with the dll in the xap file?

EDIT

Setting the Build action to Embedded Resource gives the timing.xml as a separate file in the bin/Debug folder when looked in Windows Explorer.
Setting the Build action to Resource does not give timing.xml as a separate file in the bin.Debug folder, but only a single dll . I don't know if it gets packaged with the.dll file in this way but it is still not in the.xap file that is prepared after that.

The project that produces dll is referenced by another project that produces xap.

If you set build action of the.xml file to Content , the file will be included in the application package without embedding it in the project assembly. Resource build action will embed the file in the project assembly.

Resource Files .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM