发行政策重定向不工作 [英] Publisher policy redirection not working

查看:179
本文介绍了发行政策重定向不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习组件使用发行者策略文件的重定向。做了以下内容:

I am learning the redirection of assembly using publisher policy file. Did the following:

  • 我有一个名为依赖这是一个有符号之一,有它在GAC中注册的DLL。

  • I have a DLL called Dependency which is a signed one and had it registered in the GAC.

报名时,程序集的版本是1.0.0.1。

While registering, the assembly version is 1.0.0.1.

我开发了一个测试客户端(消费者),并提到了相同的版本和建造它,并运行它一次。

I developed a test client (Consumer) and referred the same version and built it and ran it once.

改变了的AssemblyVersion为1.0.0.2的依赖DLL

Changed the AssemblyVersion to 1.0.0.2 for Dependency DLL

创建,如下图所示。

  • 在注册新版本GAC
  • 用于Al.exe工具喜欢生成策略程序集,如下所示:

  • Registered the new version in GAC
  • Used Al.EXE like to generate the policy assembly as shown below:

D:\测试>人/link:policy.config /out:policy.1.0.Dependency.dll /keyfile:....\keyfile.snk /平台:86

D:\Test> al /link:policy.config /out:policy.1.0.Dependency.dll /keyfile:....\keyfile.snk /platform:x86

我只在这两个消费和依赖

I made sure that I am using X86 config only in both the Consumer and Dependency

请帮助我,指导我,我缺少的是什么。先感谢您。

Please help me by guiding me what I am missing. Thank you in advance.

推荐答案

我得到这个解决后,我改变了文化信息,以中性。我有它的en-US :( 发现这个时候,当地的app.config重定向不工作要么。

I got this solved after I changed the culture info to neutral. I had it as en-US :( Found this when the local app.config redirection was not working either.

这篇关于发行政策重定向不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆