Accessing files using Build Action: Content

旧街凉风 提交于 2019-12-10 13:37:43

问题


The way I've previously accessed content files is by setting them to "Copy always/if newer", then loading the file directly.

However, browsing the web, it seems there's another way to load it - That it's automatically included in the .exe/.dll. However, I've been unable to find out what the method is, to access said included content.


回答1:


It is Embedded Resource. This will cause it to be streamed into your assembly.

Here is Microsoft's walk thru: http://support.microsoft.com/kb/319292



来源:https://stackoverflow.com/questions/10949504/accessing-files-using-build-action-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!