jmrog / vscode-nuget-package-manager

An extension for Visual Studio Code that lets you easily add or remove .NET Core 1.1+ package references to/from your project's .csproj file using Code's Command Palette.
MIT License
34 stars 17 forks source link

Reformatted file conflicts with Visual Studio #29

Closed wparad closed 6 years ago

wparad commented 6 years ago

It seems that at least Visual Studio will automatically remove the line: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> added to the top of the file.

This is a problem for teams working crossplatform, it would it a great improvement to stick to the csproj standard. This is the best reference that I've found. Along with some other sparse documentation.

jmrog commented 6 years ago

Thanks for this report. As it's a bug of sorts, rather than a feature request, I'll try to get to it ASAP.

wparad commented 6 years ago

For clarification, it seems that there are some changes to line ending too, not sure if that is an OS thing, or a library thing. Let me know if you are interested in any more details here.

jmrog commented 6 years ago

The latest commit/release should resolve issues related to adding and/or removing the XML declaration line (<?xml version="1.0" encoding="UTF-8" standalone="yes"?>) to/from files. I haven't had time yet to consider issues related to line endings, so I'll open that as a separate issue.