Re: Replacing single attribute in a web.config via a transformation

Feb 11, 2011 at 4:08 PM
moreover, is there a way to apply a "standard" .config transformation like VS2010 already does for web projects? (using the xdt:Locator, xdt:Transform, etc.)

/kzu

--
Daniel Cazzulino | Developer Lead | MS MVP | Clarius Consulting | +1 425.329.3471


On Fri, Feb 11, 2011 at 13:05, Daniel Cazzulino <kzu@clariusconsulting.net> wrote:
there is an existing node in web.config, like:

<issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

I need to change that via a web.config.transform to:

<issuerNameRegistry type="Microsoft.IdentityModel.Swt.SwtIssuerNameRegistry">

problem is that there's no other attribute that I can use to hint nuget to perform the match, and therefore I end up with two such elements in the config :(

Any ideas how to overcome it?

/kzu

--
Daniel Cazzulino | Developer Lead | MS MVP | Clarius Consulting | +1 425.329.3471

Coordinator
Feb 11, 2011 at 4:36 PM

No, but we have a bug logged to support such transforms in the future.

http://nuget.codeplex.com/workitem/232