c# - XDT Transforms - Transforming the transform -


i creating nuget package part of result of installing package modify web.release.config.

i have no problem inserting elements file web.release.config.install.xdt, need keep xdt:transform , xdt:locator attributes on elements inserting because these transforms need run when application built deployment.

so instance when installing nuget package see:

<add key="serilog:using" value="serilog.sinks.seq" xdt:transform="insertifmissing" xdt:locator="match(key)" /> 

show in web.release.config including xdt:transform , xdt:locator attributes.

is possible this?

i don't believe trying supported either msbuild or slowcheetah. nuget package owners dont know enough customers implementation set values environment specific configs. additionally transform tools not written nuget in mind built serve different need. sorry bad news.

you may able use init.ps1 powershell script done (nuget run script first time package installed in solution) less clean.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -