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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top