11 March 2007

PPUtil: A Utility for Publisher Policy Generation

The conventional method of creating publisher policy (PP) assemblies becomes cumbersome when dealing with many assemblies, and many earlier versions of assemblies1.

PPUtil is a configuration-based utility for generating PP for many assemblies/versions. This tool was authored using .NET 2.0, however, the resultant PP assemblies can be used with .NET 1.0/1.1-compiled assemblies.

Download

This work is licensed under a Creative Commons Attribution 3.0 License.

Usage

PPUtil configurationFile outputDirectory

Common Usage Scenarios 

  • Redirect a specific earlier version of an assembly to a later version;
  • Redirect a range of earlier versions of an assembly to a later version.
In both scenarios, resolution of the redirection for the earlier assembly versions is limited to major/minor version combinations i.e. build and revision numbers are not considered. This is due to the design of the publisher policy mechanism itself. 

Configuration Examples

Redirect a specific earlier version of an assembly to a later version

Use the oldVersion attribute of the bindingRedirect element to specify the specific earlier version to redirect from. The major/minor component of the oldVersion will typically correspond to the oldMajorMinorVersion attribute of the publisherPolicy element.

  <publisherPolicy>
    <assemblies>
      <assembly name="SampleAssembly"
               
publicKeyToken="baa3201a127d8068"
                strongNameKeyPath="SampleKey.snk" >
        <publisherPolicies>
          <publisherPolicy oldMajorMinorVersion="1.0" version="1.0.0.0">
            <bindingRedirect oldVersion="1.0.0.0" newVersion="1.1.0.0" />
          </publisherPolicy>
        </publisherPolicies>
      </assembly>
    </assemblies> 
  </
publisherPolicy>

Redirect a range of earlier versions of an assembly to a later version

Use the oldLowestVersion and oldHighestVersion attributes of the bindingRedirect element to specify the range of earlier versions to redirect from.

  <publisherPolicy>
    <
assemblies>
      <
assembly name="SampleAssembly"
                publicKeyToken
="baa3201a127d8068"
               
strongNameKeyPath="SampleKey.snk" >
       
<
publisherPolicies>
          <
publisherPolicy oldMajorMinorVersion="2.0" version="2.0.0.0">
           
<
bindingRedirect oldLowestVersion="2.0.0.0"
                             oldHighestVersion="2.1.0.9"
                            
newVersion="2.2.0.0" />
         
</
publisherPolicy>
        </
publisherPolicies>
      </
assembly>
    </
assemblies>
 
</
publisherPolicy>

Tips

  • The provided configuration file must include a configuration section declaration for the publisherPolicy configuration section, as follows. The utility will also detect the absence of this declaration and prompt the user accordingly.
<configuration>
  <
configSections>
    <
section name="publisherPolicy" type="PublisherPolicyTool.Configuration.PublisherPolicyConfigurationSection, PPUtil" />
 
</
configSections>
  ...

</
configuration>
  • The PP assembly itself is versioned. When there are multiple versions of a PP assembly available, the version with the highest number is used. In .NET 1.0/1.1 a bug exists in the assembly loader whereby when determining the PP assembly with the highest number, the version numbers are sorted in alphabetic order, rather than numeric order.
  • The same strong name key used to sign the assembly the PP applies to must be used to sign the PP assembly;
  • When GACing a PP assembly, the generated PP configuration file must reside in the same folder as the PP assembly;
  • To diagnose binding issues, the binding resolution can be traced using fuslogw or output to disk by modifying registry values;
Acknowledgments

The idea of using the managed assembly builder APIs for PP generation was derived from Omers publisher policy generation sample.

Footnotes

1: Generating PP involves specifying the old version (major and minor version number resolution) of an assembly that the binding policy within the PP assembly will be applied to. The old version corresponds to an earlier version of an assembly that is referenced by dependent assemblies.

Filed under: , ,
 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Omer van Kloeten said:

Way to go! I'm also glad three year old posts of mine still help people :D

11 March 07 at 2:12 PM
# mayoteoft said:

Only for you daily news, events and tips about *** and *** contortionist http://***.goodnano-av.com/

14 October 09 at 5:45 PM
# wallmart said:

You are very interesting to write. Can you recommend any similar sites similar to yours?

20 October 09 at 10:41 PM
# macafee said:

Your message raises contradictions in my head

21 October 09 at 12:14 PM
# duffCeallodap said:

Best reviews of the day: Lexicon, Arabic lexicon, 2 dictionary lexicon quotation shakespeare vol and Greek english lexicon http://electronics.goodnano-av.com/

30 October 09 at 12:01 PM
# erypeBektrike said:

As about Fantasy, Draft fantasy nfl, Advance fantasy final tactic, Final fantasy 3 walkthrough http://fantasy.goodnano-av.com/

04 November 09 at 7:05 AM
# affiliate websites said:

Maybe some people have thoughts what are real benefits of  buying  ready made affiliate websites?  today I'm  was thinking to purchase one? Can some people suggest any great website to read any more reviews or thoughts which site can give you large income? For example this site

[url=http://www.home-businessreviews.com/Turnkey-Affiliate-Websites.html]affiliate websites[/url]  -  owner claims that he had incredible great success using these turnkey affiliate websites. He claims that he makes profits thousands of money each month with these sites. Waiting for some reply.

This is website I 'm talking

http://www.home-businessreviews.com/Turnkey-Affiliate-Websites.html

06 November 09 at 4:06 AM
# EmelmRempoozy said:

Hello, I now became a part of this community here and I would like to be a member of it. Just love the environment here. Good job by the admin and each member here.

I like the quality of posts posted by memebers and plan I can do that for you all too. Just to start off, I came across a great site called

[url=http://www.home-businessreviews.com]online home business opportunity[/url] that reviews some great best home business opportunity. Anyway website owner make's more than 500$+/day. He found some very great internet home business opportunity.

Because I found that these home business programs worked for me I decided to post it here so you also can make some extra money in your free time. Owner of this website also discovered really simple way earn some extra money just taking [url=http://www.home-businessreviews.com/Surveys-For-Money.html]surveys for money[/url]. Anyway if you need to earn some extra money feel free to check out this website. Hope you guys enjoy it.

OK, look forward to great conversation and hanging out here often.

www.home-businessreviews.com

30 November 09 at 8:50 PM
# preaptery said:

Get incredible online web traffic using amazing xrumer service blast available. We can post your custom message to thousands of forums around the web, get insane amount of backlinks incredible online web traffic in shortest time.

[url=http://xrumerservice.weebly.com]xrumer service[/url]  

http://xrumerservice.weebly.com

02 December 09 at 5:33 AM
# burebruisse said:

Hi, I just became a member of this community here and I would like to be a member of it. Just like the environment here. Great job by the admin and every member here.

I appreciate the quality of posts provided by everyone and expect I can do that for you all too. Just to start off, I found a cool website called

[url=http://www.home-businessreviews.com]home based business reviews[/url] that reviews some good make money home business opportunities. Anyway website owner make's more than 500$+/day. He found some very cool home based business programs.

Because I found that these home based business worked for me I decided to post it here so you also can make some extra bucks in your free time. Owner of this site also discovered really simple opportunity get some extra money just taking [url=http://www.home-businessreviews.com/Surveys-For-Money.html]surveys for money[/url]. Anyway if you need to make some extra cash feel free to check out this website. Hope you guys like it.

OK, look forward to great conversation and hanging out here often.

www.home-businessreviews.com

05 December 09 at 7:26 AM
# Clultesserb said:

Ok, this is kind of weird but I just ran across this YouTube video: [url=http://www.youtube.com/watch?v=-IPxssMRzAA]Kesha Tik Tok[/url]

It's a chick that calls herself Ke$ha (Yes that's Kesha with a dollar sign lol) But she's got this music video called Tick Tock and the lyrics are funny. It's kind of catchy actually. At one point she mentions something like "I brush my teeth with a bottle of Jack…" maybe shes an alcoholic. Either way watch it and let me know how you like it. Like it or hate it?

…And is it weird that I got it stuck in my head? :-)

06 December 09 at 6:55 AM
# dumespeerce said:

I'd like to ask whether anyone may have looked at this [url=http://ezinearticles.com/?Blog-Success-Review&id=3385117]blog success review[/url]? people have said good things about the place, but it doesn't seem to be that well known?

The person who did the report is also offering a [url=http://ezinearticles.com/?Blog-Success-Review&id=3385117]blog success bonus[/url] that seems pretty good. Can anyone here tell me if it's worth the money?

It would be great make money online from writing a blog, as it seems like the right thing to do considering my talents:)

07 December 09 at 5:28 PM
# phifelpmulp said:

Does anyone heard anything about recruiting for this company [url=http://recruitingbusiness.com]recruiting[/url] I have been looking other companies that offer homebased positions. If anyone has input about this please help....

Perhaps someone can post me back asap to help me make decision. Thank you

10 December 09 at 9:10 AM
# boudgigue said:

Thanks for this info. Additional discussions similar to this topic can be found at the [url=http://www.worldslargestforum.com/forum]World's Largest Forum[/url].

10 December 09 at 3:31 PM
# tramodol said:

Unbelievable, but your post opened in me new ideas

18 December 09 at 2:33 PM
# pawTeriSari said:

Hello everyone Are you obsessed to Farmville? I’ve discovered this incredible site that has all the latest hints, tips, tricks and cheats here:

[url=http://www.ultimatefarmville.com]Farmville Cheats[/url] I was finding it hard on Farmville and couldn’t understand how all my neighbors were doing so much better than me, but then I discovered this site and since then I’ve become a way more valuable farmer. The site has some Farmville cheats that I haven’t found anywhere else and has a incredible store where you can get the latest bots for Farmville. I’ve also noticed they have started competitions where you can win the bots and stuff and it is completely free to enter. If you are hooked to Farmville like me then you need to visit this site [url=http://www.ultimatefarmville.com]Farmville Fansite[/url]

21 December 09 at 12:42 PM
# bad credit loans said:

Hi!!! mattonsoftware.com is one of the most excellent innovative websites of its kind. I enjoy reading it every day. All the best.

30 December 09 at 9:46 AM
# IamFoxxy said:

Hello

Recenty I've found a book - [b]Youtube Money System[/b] by Johnny Karrax

[QUOTE]

How To Make $180 A Day With YouTube Step By Step System

Discover How A Youtube Noob Overcame His Fear And Went On To Making $180-$300 Per Day With Just 2 Hours of Work Everyday.

If You Have A Computer And An Internet Connection Then You Have Every Right To Be Earning AT LEAST $300/Day And This Report Is Going To Show You How Can You Claim Your Right Without Ever Creating A Single Video.......No Technical Knowledge Or Prior Experience Is Required.

To BENEFIT From This Method You Don't Need To Have:

Any technical knowledge Or prior experience of internet marketing.

A website of your own.

Your own product.

A mailing list.

Joint venture partners.

Any Expensive keyword search tool.

Any monetary investment(You just need to devote a few hours every day).

Even your own videos(Though you can create them if you like and I have included several FREE resources which you can use to create your own videos with a few clicks).[/QUOTE]

etc.

Can anybody see the package (The book and needed software) - http://hotfile.com/dl/24342724/5dccb24/Youtube_money_system.zip.html , and tell me what EXACTLY to do, because I can't handle this :(

20 January 10 at 11:21 AM
# ugg for sale said:

ugg for sale                     http://www.uggbootsforsale.net

ugg boots for sale           http://www.uggsoutletstores.net

uggs outlet                     http://www.uggs-outlet.org

24 February 10 at 11:33 PM
# AleVaserman said:

You can make from 3000$-5000$ a Month with this program! $30 for each refferal!

You will earn money from multiple streams: people search engine, ClickBank, HD Publishing, Google AdSense, HostGator, My Life and GDI (Global Domain International).

Visit site: [url=http://bit.ly/aLNyID]acme-people-search.com[/url]

07 March 10 at 2:11 PM
# StoopleMile said:

Rent a car companies http://all-car-rental.com/texas/Dallas/U-Save%20Auto%20Rental/75238/

Car rental.

12 April 10 at 12:52 AM
# Hataempatek said:

Insurance companies http://insuranceinstates.com/wisconsin/Milwaukee/State%20Farm%20Insurance%3A%20Wauwatosa/53226/

Insurance in the US.

20 April 10 at 8:16 AM
# Geceeaseple said:

Cash loans companies http://cash-loans-us.com/tennessee/Knoxville/Knoxville%20TC%20Enterprises%20Cash%20Advance,%20LLC/37902/

Cash loans in the US cities. Get money today!

28 April 10 at 10:23 PM
# ziona said:

hi, i'm <a href='http://bettyliving.com/'>betty</a>, thanks for your sharing

24 May 10 at 11:00 PM
# zz said:

im [url=http://bettyliving.com/]here[/url], thanks for your sharing

24 May 10 at 11:01 PM
# 2010 fashion trends said:

a title="2010 fashion trends" href="http://www.fashionjour.com">2010 fashion trends</a>

<a title="website whois" href="http://www.websitewhois.org">website whois</a>

<a title="free british blogs" href="http://problogs.co.uk">free british blogs</a>

27 May 10 at 2:42 AM
# http://www.services4wedding.com/ said:

53.7% of People Complain that they Can not Afford Genuine http://www.bagsok.com You Have to See 9 Facts of http://www.services4wedding.com/

18 July 10 at 8:46 PM

Leave a Comment

Comment Policy: No HTML allowed. URIs and line breaks are converted automatically. Your e–mail address will not show up on any public page.

(required) 
(optional)
(required) 
(required)
captcha Image