{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/779","repository_url":"https://api.github.com/repos/dotnet/roslyn-project-system","labels_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/779/comments","events_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/779/events","html_url":"https://github.com/dotnet/roslyn-project-system/issues/779","id":190547069,"number":779,"title":"Hand-edited project file does not preserve whitespace or comments","user":{"login":"gulbanana","id":1612285,"avatar_url":"https://avatars.githubusercontent.com/u/1612285?v=3","gravatar_id":"","url":"https://api.github.com/users/gulbanana","html_url":"https://github.com/gulbanana","followers_url":"https://api.github.com/users/gulbanana/followers","following_url":"https://api.github.com/users/gulbanana/following{/other_user}","gists_url":"https://api.github.com/users/gulbanana/gists{/gist_id}","starred_url":"https://api.github.com/users/gulbanana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulbanana/subscriptions","organizations_url":"https://api.github.com/users/gulbanana/orgs","repos_url":"https://api.github.com/users/gulbanana/repos","events_url":"https://api.github.com/users/gulbanana/events{/privacy}","received_events_url":"https://api.github.com/users/gulbanana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-20T08:53:02Z","updated_at":"2016-11-21T01:38:27Z","closed_at":"2016-11-20T18:15:48Z","body":"If we're going to work directly on .csproj files like we did on project.json the experience needs to be better than it currently is. I can make a project file pretty readable by organising items and properties into groups, separating them, and then adding line/block comments.. but all of this is lost next time Visual Studio updates the file. It's particularly annoying to reopen the file and find that it went from this...\r\n```\r\n  <ItemGroup>\r\n    <!-- Source globs -->\r\n    <Compile Include=\"**\\*.cs\" />\r\n\r\n    <!-- Extra files -->\r\n    <None Include=\"typings\\react-dom.d.ts\" />\r\n    <None Include=\"typings\\react.d.ts\" />\r\n  </ItemGroup>\r\n```\r\n...to this:\r\n```\r\n  <ItemGroup>\r\n    <Compile Include=\"**\\*.cs\" />\r\n  </ItemGroup>\r\n  <ItemGroup>\r\n    <None Include=\"typings\\react-dom.d.ts\" />\r\n    <None Include=\"typings\\react.d.ts\" />\r\n  </ItemGroup>\r\n```\r\n\r\nObviously it also creates a bunch of source control churn. Can this be fixed? Something like Roslyn does, where it preserves 'trivia' in the AST, would be ideal."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/comments/261823409","html_url":"https://github.com/dotnet/roslyn-project-system/issues/779#issuecomment-261823409","issue_url":"https://api.github.com/repos/dotnet/roslyn-project-system/issues/779","id":261823409,"user":{"login":"gulbanana","id":1612285,"avatar_url":"https://avatars.githubusercontent.com/u/1612285?v=3","gravatar_id":"","url":"https://api.github.com/users/gulbanana","html_url":"https://github.com/gulbanana","followers_url":"https://api.github.com/users/gulbanana/followers","following_url":"https://api.github.com/users/gulbanana/following{/other_user}","gists_url":"https://api.github.com/users/gulbanana/gists{/gist_id}","starred_url":"https://api.github.com/users/gulbanana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gulbanana/subscriptions","organizations_url":"https://api.github.com/users/gulbanana/orgs","repos_url":"https://api.github.com/users/gulbanana/repos","events_url":"https://api.github.com/users/gulbanana/events{/privacy}","received_events_url":"https://api.github.com/users/gulbanana/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T01:38:27Z","updated_at":"2016-11-21T01:38:27Z","body":"ah, nice to see it's in progress "}}
{"actor":{"display_login":"gulbanana"}}