Chris
Chris

Reputation: 28064

Nuget and web.config formatting

As a standard at my company, all code documents use 4 spaces instead of tabs, and all tabs are replaced with 4 spaces as necessary. This all works fine and dandy. However, recently I discovered that any time Nuget performs an update to my web.config, the entire file is rewritten with 2 spaces in stead of 4 for each level of indent. This is really annoying, as it causes our VCS to think the entire file has changed when only a few lines actually have. Is there a way to prevent this?

Upvotes: 12

Views: 2160

Answers (2)

Taersious
Taersious

Reputation: 779

Nuget has closed the issue without regard for impact on development concerns.

If you want your web.config to use something other than the default 2 spaces for each level of indentation, you can always go to

Tools > Options > Text Editor > XML > Tabs

and change the settings there.

HTH.

Upvotes: 2

Arnold Zokas
Arnold Zokas

Reputation: 8560

Not aware of any solutions to this. You should probably raise this on NuGet discussions: http://nuget.codeplex.com/discussions

Upvotes: 2

Related Questions