{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Performance/issues/118","repository_url":"https://api.github.com/repos/aspnet/Performance","labels_url":"https://api.github.com/repos/aspnet/Performance/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Performance/issues/118/comments","events_url":"https://api.github.com/repos/aspnet/Performance/issues/118/events","html_url":"https://github.com/aspnet/Performance/issues/118","id":145817716,"number":118,"title":"Newtonsoft.Json version conflict at runtime","user":{"login":"DavidObando","id":950290,"avatar_url":"https://avatars.githubusercontent.com/u/950290?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidObando","html_url":"https://github.com/DavidObando","followers_url":"https://api.github.com/users/DavidObando/followers","following_url":"https://api.github.com/users/DavidObando/following{/other_user}","gists_url":"https://api.github.com/users/DavidObando/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidObando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidObando/subscriptions","organizations_url":"https://api.github.com/users/DavidObando/orgs","repos_url":"https://api.github.com/users/DavidObando/repos","events_url":"https://api.github.com/users/DavidObando/events{/privacy}","received_events_url":"https://api.github.com/users/DavidObando/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"DavidObando","id":950290,"avatar_url":"https://avatars.githubusercontent.com/u/950290?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidObando","html_url":"https://github.com/DavidObando","followers_url":"https://api.github.com/users/DavidObando/followers","following_url":"https://api.github.com/users/DavidObando/following{/other_user}","gists_url":"https://api.github.com/users/DavidObando/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidObando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidObando/subscriptions","organizations_url":"https://api.github.com/users/DavidObando/orgs","repos_url":"https://api.github.com/users/DavidObando/repos","events_url":"https://api.github.com/users/DavidObando/events{/privacy}","received_events_url":"https://api.github.com/users/DavidObando/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2016-04-04T22:04:25Z","updated_at":"2016-04-13T18:51:29Z","closed_at":null,"body":"Project test/TestApp.Test is throwing at runtime due to Microsoft.Extensions.DependencyModel requiring Newtonsoft.Json version 7.0.1, while the project is using version 8.x. Issue dotnet/cli#1233 tracks the version change required for these tests to work again.\r\n\r\n```\r\n    MvcBenchmarks.InMemory.LocalizedViewsTest.LocalizedViews_TagHelpers [FAIL]\r\n      System.IO.FileNotFoundException : Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.\r\n      Stack Trace:\r\n           at Microsoft.Extensions.DependencyModel.DependencyContextJsonReader.Read(Stream stream)\r\n           at Microsoft.Extensions.DependencyModel.DependencyContextLoader.LoadAssemblyContext(Assembly assembly)\r\n           at Microsoft.Extensions.DependencyModel.DependencyContextLoader.Load(Assembly assembly)\r\n           at Microsoft.AspNetCore.Mvc.Razor.Internal.DependencyContextRazorViewEngineOptionsSetup.ConfigureRazor(RazorViewEngineOptions options, IHostingEnvironment hostingEnvironment)\r\n           at Microsoft.Extensions.Options.OptionsCache`1.CreateOptions()\r\n           at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)\r\n           at Microsoft.Extensions.Options.OptionsCache`1.get_Value()\r\n           at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorViewEngineFileProviderAccessor..ctor(IOptions`1 optionsAccessor)\r\n```\r\n\r\nWhen I force the executing project to load Newtonsoft.Json version 7.0.1, I get a different exception:\r\n```\r\n      ---- System.IO.FileNotFoundException : Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.\r\n      Stack Trace:\r\n           at MvcBenchmarks.InMemory.BasicApiTest..ctor()\r\n        ----- Inner Stack Trace -----\r\n           at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)\r\n           at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()\r\n           at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()\r\n        D:\\GitHub\\aspnet\\Performance\\testapp\\BasicApi\\Startup.cs(27,0): at BasicApi.Startup..ctor(IHostingEnvironment hosting, IApplicationEnvironment applicationEnvironment)\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/Performance/issues/comments/209592730","html_url":"https://github.com/aspnet/Performance/issues/118#issuecomment-209592730","issue_url":"https://api.github.com/repos/aspnet/Performance/issues/118","id":209592730,"user":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T18:51:29Z","updated_at":"2016-04-13T18:51:29Z","body":"You have RC2 and RC3 packages in the first example. MS.Extensions.DependencyModel is RC2, but everything else is RC3. Can't mix those."}}