开发者

Referencing XML file in a referenced project?

开发者 https://www.devze.com 2022-12-18 01:17 出处:网络
I have a utility project that has an \"XML\" folder with two XML files in it, this project开发者_如何转开发 is then referenced by an ASP.net web project. I was wondering do you have to set some sort o

I have a utility project that has an "XML" folder with two XML files in it, this project开发者_如何转开发 is then referenced by an ASP.net web project. I was wondering do you have to set some sort of build option to place the folder in the BIN of the website, or is there another approach to referencing these two files from the web project?

Thanks


Select one of the XML file in the solution explorer, then in the properties list you should see a property called "Copy to Output Directory", set this to "Always Copy".

Do this for both files.
That should then bring the files into the referencing projects bin folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消