Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget and web.config formatting

Tags:

nuget

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?

like image 396
Chris Avatar asked Mar 22 '12 18:03

Chris


2 Answers

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.

like image 173
Taersious Avatar answered Nov 15 '22 23:11

Taersious


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

like image 36
Arnold Zokas Avatar answered Nov 16 '22 01:11

Arnold Zokas