解决方法
Resource : Embeds resource into the
assembly (or culture specific
satellite assembly)Content : this leaves resource as
loose file and upon compilation this
resource information is not embedded
to assembly. Instead,it adds custom
attribute to the assembly
(AssemblyAssociatedContentFile) which
records the existence and relative
location of file.
It is also possible
to access the resource file without
adding into the project. However,with
this approach management of resource
file becomes bit difficult. However,
this approach is useful if resource
file is generated dynamically using
some runtime information. In such a
case,resource file will not be
available at compile time so can not
be added to project.
资料来源:Resources in WPF.
原文地址:https://www.jb51.cc/csharp/101113.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。