سؤال

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