質問

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