Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet package installer ignores configsource in web.config file #215

Open
bencurthoys opened this issue Jun 16, 2021 · 0 comments
Open

NuGet package installer ignores configsource in web.config file #215

bencurthoys opened this issue Jun 16, 2021 · 0 comments

Comments

@bencurthoys
Copy link

I use the "configSource" property on parts of my web.config file, so that I can have one master web.config file which is the same for all customers, and then parts which vary between customers (e.g. globalization settings) are isolated into separate files:

image
image

When I install or update Westwind Globalization with NuGet, it edits my web.config (which I accept is normally a helpful thing to do) and adds the resourceProviderFactoryType="Westwind.Globalization.DbSimpleResourceProviderFactory,Westwind.Globalization.Web" setting to the globalization tag so it looks like this:

image

which is not allowed and causes it to throw an error. (There's a similar problem with the DbResourceConfigration section).

The installer should check for the presence of a configSource property, and if it exists, update the targeted config file instead of breaking web.config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant