{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/691","labels_url":"https://api.github.com/repos/aspnet/Home/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/691/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/691/events","html_url":"https://github.com/aspnet/Home/issues/691","id":90081903,"number":691,"title":"Restore failed when project.json has commented out sections","user":{"login":"mkosieradzki","id":10385115,"avatar_url":"https://avatars.githubusercontent.com/u/10385115?v=3","gravatar_id":"","url":"https://api.github.com/users/mkosieradzki","html_url":"https://github.com/mkosieradzki","followers_url":"https://api.github.com/users/mkosieradzki/followers","following_url":"https://api.github.com/users/mkosieradzki/following{/other_user}","gists_url":"https://api.github.com/users/mkosieradzki/gists{/gist_id}","starred_url":"https://api.github.com/users/mkosieradzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkosieradzki/subscriptions","organizations_url":"https://api.github.com/users/mkosieradzki/orgs","repos_url":"https://api.github.com/users/mkosieradzki/repos","events_url":"https://api.github.com/users/mkosieradzki/events{/privacy}","received_events_url":"https://api.github.com/users/mkosieradzki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T12:11:40Z","updated_at":"2015-06-22T14:41:19Z","closed_at":"2015-06-22T14:41:19Z","body":"In general project.json can contain comments and works correctly. But in some cases when opening solution in Visual Studio 2015 RC there is following error:\r\n\r\nIMO: comments in project.json should be allowed or disallowed - not something between :). (In this specific case I use // - style comments.\r\n\r\nRestore failed\r\nIllegal character '/' (Unicode hexadecimal 002F).\r\nMicrosoft .NET Development Utility CLR-x86-1.0.0-beta5-12087\r\nRestoring packages for [MyPath]\\project.json\r\n----------\r\n[MyPath]\\project.json(19,5): Error: Microsoft.Framework.Runtime.FileFormatException: Illegal character '/' (Unicode hexadecimal 002F). ---> Microsoft.Framework.Runtime.Json.JsonDeserializerException: Illegal character '/' (Unicode hexadecimal 002F).\r\n   at Microsoft.Framework.Runtime.Json.JsonBuffer.Read()\r\n   at Microsoft.Framework.Runtime.Json.JsonDeserializer.DeserializeObject(JsonToken head, JsonBuffer buffer)\r\n   at Microsoft.Framework.Runtime.Json.JsonDeserializer.DeserializeInternal(JsonToken next, JsonBuffer buffer)\r\n   at Microsoft.Framework.Runtime.Json.JsonDeserializer.DeserializeObject(JsonToken head, JsonBuffer buffer)\r\n   at Microsoft.Framework.Runtime.Json.JsonDeserializer.DeserializeInternal(JsonToken next, JsonBuffer buffer)\r\n   at Microsoft.Framework.Runtime.Json.JsonDeserializer.Deserialize(TextReader reader)\r\n   at Microsoft.Framework.Runtime.Project.GetProjectFromStream(Stream stream, String projectName, String projectPath, ICollection`1 diagnostics)\r\n   at Microsoft.Framework.Runtime.Project.TryGetProject(String path, Project& project, ICollection`1 diagnostics)\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Framework.Runtime.Project.TryGetProject(String path, Project& project, ICollection`1 diagnostics)\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__77.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<>c__DisplayClass76_0.<<Execute>b__1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Framework.PackageManager.RestoreCommand.<Execute>d__76.MoveNext()"}}