Questions tagged [publisher-policy]
15 questions
8
votes
1 answer
Why does my application always uses the latest GAC version instead of referenced version?
Context
I have 2 different versions of an assembly installed in GAC, version 1.0 and version 2.0. I made an application that is referencing 1.0 as a specific version.
Issue
When I run my application, it will always load version 2.0 whereas the…

Ucodia
- 7,410
- 11
- 47
- 81
4
votes
3 answers
Which would be the proper way to install one publisher policy in to the GAC using WIX?
Which would be the proper way to install one publisher policy in to the GAC using WIX 3.5?
I tried to do this:

Luis
- 41
- 1
2
votes
0 answers
Build publisher policy assembly as part of an automated build
Has anyone solved the problem of automatically building publisher policy assemblies as part of an automated build? I've trawled the web and there are plenty of people asking about this but no solutions.
Constructing policy assemblies is hugely error…

Tim Long
- 13,508
- 19
- 79
- 147
2
votes
1 answer
Is it possible to remove a Publisher Policy file?
I have a situation where a vendor-supplied assembly reference is messed up. Basically, it is pointing to a version of the assembly that I do not want to use. I used FusionLog to view the assembly binding log and I see these entries:
LOG: Publisher…

Jeffrey Cameron
- 9,975
- 10
- 45
- 77
2
votes
2 answers
How to reference shared assemblies that are still under development (.NET)
I am responsible for developing and maintaining a set of common, framework assemblies that are used to build our product applications. These assemblies are relatively new and in a state of flux as new features are implemented, etc. As a result, it…

SonOfPirate
- 5,642
- 3
- 41
- 97
1
vote
1 answer
.NET Publisher Policy Target Framework
SUMMARY
How do I create a publisher policy assembly that targets the same framework version as the redirected assembly?
TL;DR
I have an Assembly.dll with version 1.x.y.0 and I also have a publisher policy for it named policy.1.0.Assembly.dll which…

Bill Zissimopoulos
- 455
- 7
- 18
1
vote
1 answer
publisher policy in GAC
I want to redirect consumers of dll v1 to dll v2.
I will add a publisher policy in GAC for that.
Must the policy be in GAC?
Does this mean dll v2 itself must also reside in GAC?

Yaron Naveh
- 23,560
- 32
- 103
- 158
1
vote
1 answer
GAC Assembly redirection for several .dlls
I'm trying to redirect a specific .dll, let's call it MyAssembly.dll. This assembly has two versions:
MyAssembly.dll version 1.0.0.0
and
MyAssembly.dll version 1.1.0.0
I want these two assemblies to redirect to its third version: 1.2.0.0.
For…

Sonhja
- 8,230
- 20
- 73
- 131
1
vote
1 answer
Publisher policy redirection not working
I am learning the redirection of assembly using publisher policy file. Did the following:
I have a DLL called Dependency which is a signed one and had it registered in the GAC.
While registering, the assembly version is 1.0.0.1.
I developed a…

Prasanna
- 760
- 2
- 6
- 16
0
votes
1 answer
Slow wpf startup due to publish policy... maybe
I have deployed my .NET assemblies with x-copy for years, without any issue.
From last week, we have a small team that wich has the task of build a setup that includes
.NET assemblies and exe and c++ legacy exe and dll (more tha 200 files).
After…

laertes
- 70
- 7
0
votes
0 answers
Publisher file problems
I have a very similar issue to this post here:
Release not working, referencing FW 2.0 dll into FW 4.0 winform
I have a 3.5 version of an app that is using publisher files in the GAC. When I deploy this to my dev server everything works fine…

user3699667
- 13
- 4
0
votes
1 answer
My policy redirection on GAC is not working
I created a basic project in WinForms on which I have a .exe that loads a really simple library:
The .exe:
public Form1()
{
InitializeComponent();
int a;
int b;
a = 7;
b = 3;
…

Sonhja
- 8,230
- 20
- 73
- 131
0
votes
0 answers
Removing Assembly file version dependency in .NET Project or Backward compatibility of "dll's with older versions
I am stuck with assembly compatibility problems with my project.
1) I have a .NET project, where i specify a assembly version . "Major part.Minor part.Build part.Revision part".
2) For the next build, assembly version is incremented.
3) There are…

Pawan Kumar
- 247
- 6
- 21
0
votes
1 answer
Is it possible to apply a publisher policy to a strongly named, privately published assembly?
I have created a common library at work, but unlike in this question, it is not published to the GAC. Instead, it is privately published to a company-specific installation folder.
EDIT: all the internal apps go into this same folder.
Is it still…

Eric
- 11,392
- 13
- 57
- 100
0
votes
1 answer
Specifying Exact Reference Versions in app.manifest
Whilst implementing the use of ODP.Net in our apps I came across a potential problem with versions so I knocked up a quick test app to see if it would affect us, and it did.
We have clients who have or want our apps on Oracle, but they use…

Steve Pettifer
- 1,975
- 1
- 19
- 34