{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/2698","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/2698/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/2698/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/2698/events","html_url":"https://github.com/aspnet/dnx/issues/2698","id":106367913,"number":2698,"title":"dnu restore fails when restoring a project reference","user":{"login":"Mpdreamz","id":245275,"avatar_url":"https://avatars.githubusercontent.com/u/245275?v=3","gravatar_id":"","url":"https://api.github.com/users/Mpdreamz","html_url":"https://github.com/Mpdreamz","followers_url":"https://api.github.com/users/Mpdreamz/followers","following_url":"https://api.github.com/users/Mpdreamz/following{/other_user}","gists_url":"https://api.github.com/users/Mpdreamz/gists{/gist_id}","starred_url":"https://api.github.com/users/Mpdreamz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mpdreamz/subscriptions","organizations_url":"https://api.github.com/users/Mpdreamz/orgs","repos_url":"https://api.github.com/users/Mpdreamz/repos","events_url":"https://api.github.com/users/Mpdreamz/events{/privacy}","received_events_url":"https://api.github.com/users/Mpdreamz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-14T15:33:24Z","updated_at":"2015-09-14T17:17:17Z","closed_at":null,"body":"> System.ArgumentException: Can not add property System.Runtime to Newtonsoft.Json.Linq.JObject. \r\n> Property with the same name already exists on object.\r\n>   at Newtonsoft.Json.Linq.JObject.ValidateToken(JToken o, JToken existing)\r\n>  at Newtonsoft.Json.Linq.JContainer.InsertItem(Int32 index, JToken item, Boolean skipParentCheck)\r\n>   at Newtonsoft.Json.Linq.JObject.InsertItem(Int32 index, JToken item, Boolean skipParentCheck)\r\n>   at Newtonsoft.Json.Linq.JContainer.AddInternal(Int32 index, Object content, Boolean skipParentCheck)\r\n>   at Newtonsoft.Json.Linq.JContainer.Add(Object content)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.WriteObject[TItem](IEnumerable`1 items, Func`2 writeItem)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.WriteTargetLibrary(LockFileTargetLibrary library)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.WriteObject[TItem](IEnumerable`1 items, Func`2 writeItem)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.WriteTarget(LockFileTarget target)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.WriteObject[TItem](IEnumerable`1 items, Func`2 writeItem)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.WriteLockFile(LockFile lockFile)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.Write(Stream stream, LockFile lockFile)\r\n>   at Microsoft.Dnx.Tooling.LockFileFormat.Write(String filePath, LockFile lockFile)\r\n>   at Microsoft.Dnx.Tooling.RestoreCommand.WriteLockFile(LockFile previousLockFile, String > projectLockFilePath, Project project, List`1 graphItems, PackageRepository repository, IProjectResolver > projectResolver, IEnumerable`1 contexts)\r\n>   at Microsoft.Dnx.Tooling.RestoreCommand.<RestoreForProject>d__69.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.Dnx.Tooling.RestoreCommand.<>c__DisplayClass68_0.<<Execute>b__2>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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)\r\n>   at Microsoft.Dnx.Tooling.RestoreCommand.<Execute>d__68.MoveNext()\r\n>----------\r\n>Restore failed\r\n>Can not add property System.Runtime to Newtonsoft.Json.Linq.JObject. Property with the same name >already exists on\r\n>object.\r\n\r\nThis happens as soon as I add this project reference here: \r\n\r\nhttps://github.com/elastic/elasticsearch-net/blob/vnext/dnx-support/src/Nest/project.json#L21\r\n\r\nWhich is this project: https://github.com/elastic/elasticsearch-net/blob/vnext/dnx-support/src/Elasticsearch.Net/project.json\r\n\r\n> dnu --- version\r\n\r\n```\r\nMicrosoft .NET Development Utility\r\n Version:      1.0.0-beta8-15613\r\n Type:         CLR\r\n Architecture: x86\r\n OS Name:      Windows\r\n OS Version:   6.2.9200.0\r\n Runtime Id:   win8-x86\r\n```\r\n\r\n> dnvm list\r\n\r\n```\r\nActive Version           Runtime Architecture Location                        Alias\r\n------ -------           ------- ------------ --------                        -----\r\n       1.0.0-beta4       clr     x64          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta4       clr     x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta4       coreclr x64          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta4       coreclr x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta4-11566 clr     x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta5       clr     x64          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta5       clr     x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta5       coreclr x64          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta5       coreclr x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta6       clr     x64          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta6       clr     x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta6       coreclr x64          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta6       coreclr x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta7       clr     x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n       1.0.0-beta7       coreclr x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n  *    1.0.0-beta8-15613 clr     x86          C:\\Users\\mpdreamz\\.dnx\\runtimes default\r\n       1.0.0-beta8-15613 coreclr x86          C:\\Users\\mpdreamz\\.dnx\\runtimes\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/140148711","html_url":"https://github.com/aspnet/dnx/issues/2698#issuecomment-140148711","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/2698","id":140148711,"user":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T17:17:17Z","updated_at":"2015-09-14T17:17:17Z","body":"Thanks for the report. We'll investigate."}}