Reputation: 8351
I have created some basic Nuget packages to add database specific items to our projects. Part of the package adds a connection string to the app/web.config file.
I've read thru the nuget package creation documentation but have not been able to figure out how to set up the Transforms to only add the connection string, or other app settings, if it doesn't already exist.
Any suggestions?
Upvotes: 0
Views: 167
Reputation: 8351
The key was doing the transforms in app.config.install.xdt files not in the app.config.transform files.
Upvotes: 1