【问题标题】:Can i change the default satellite assmbly folder structure?我可以更改默认的卫星程序集文件夹结构吗?
【发布时间】:2012-05-04 17:01:24
【问题描述】:
【问题讨论】:
标签:
.net
wpf
assemblies
cultureinfo
【解决方案1】:
是的。但是,您必须有一个 .config 文件。
例如,我们有一个 file.exe,在 File.exe.config 中我们有以下内容:
<?xml version="1.0"?>
<configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Resources;"/>
</assemblyBinding>
</runtime>
</configuration>
现在您必须确保此 file.exe.config 已安装并且与 .exe 文件位于同一目录中。
【讨论】:
-
谢谢,这正是我需要的,我们已经在使用 但我尝试通过添加 元素而不是向 privatePath 属性添加路径这就是为什么它不起作用,愚蠢的我