Question

I've created a nuget package that needs to add some configuration to an existing xml file on installation.

The xml file is located deep in the folder structure like: /app/config/site1/settings.xml

Is it possible to use XDT to transform this file and add some configuration?

Was it helpful?

Solution

yes, NuGet XDT transformation feature does support the use of solution folders and can also transform general XMLs.

Just place the settings.xml.install.xdt and settings.xml.uninstall.xdt files in the same folder structure (as your target folder structure), under the Content folder of your package.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top