-
Notifications
You must be signed in to change notification settings - Fork 252
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
Microsoft.Build.Evaluation.Project.Save() clears empty lines from a csproj #5697
Comments
I think this is an msbuild issue as NuGet invokes msbuild API's to read a csproj, add items/itemgroups and then save the csproj file. |
From @rainersigwald on August 1, 2017 23:9 @mishra14 #1036 added a new argument to |
I see. I guess NuGet can take this. I will move this issue out. |
@rainersigwald I dont see - |
Unsure if CLI fixes from NuGet would have a ship vehicle in 15.4... May wait until 15.5. |
…age (#1602) Fixing: NuGet/Home#5697 Adding a bool? preserveFormatting to ProjectRootElement.Open call. This preserves the existing formatting in the csproj file.
Merged: NuGet/NuGet.Client@d420ac3 |
From @mishra14 on August 1, 2017 23:0
Original issue: https://github.com/dotnet/cli/issues/7280
==================================================================
Steps to reproduce
dotnet new a console app
dotnet add package
Expected behavior
whitespace between itemgroups etc is preserved
Actual behavior
All blank lines are removed
Environment data
dotnet --info
output:Copied from original issue: dotnet/msbuild#2376
The text was updated successfully, but these errors were encountered: