Prevent NuGet from changing web.config?

I updated some nuget packages in my web project / solution. However, this caused an update to my web.config file and I am sure that there are no changes. Instead, nuget went and changed all my carriage returns \ white space.

How can I prevent this? Web.config needs to be formatted for human readability so that the deployment team can easily edit and modify values.

Thanks!

+4
source share
1 answer

Nuget modifies the web.config file only if the package requires it. In formatting, there was an open problem with getting reset in such scripts, which, in my opinion, were fixed. Here's a link -

http://nuget.codeplex.com/workitem/1511 .

A similar issue is also discussed in the next section on formatting nuget and web.config.

+2
source

Source: https://habr.com/ru/post/1433622/


All Articles