{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3658","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3658/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3658/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3658/events","html_url":"https://github.com/aspnet/Mvc/issues/3658","id":119271359,"number":3658,"title":"IServiceCollection does not contain a definition for 'AddMvc'","user":{"login":"brijmailid","id":15912286,"avatar_url":"https://avatars.githubusercontent.com/u/15912286?v=3","gravatar_id":"","url":"https://api.github.com/users/brijmailid","html_url":"https://github.com/brijmailid","followers_url":"https://api.github.com/users/brijmailid/followers","following_url":"https://api.github.com/users/brijmailid/following{/other_user}","gists_url":"https://api.github.com/users/brijmailid/gists{/gist_id}","starred_url":"https://api.github.com/users/brijmailid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brijmailid/subscriptions","organizations_url":"https://api.github.com/users/brijmailid/orgs","repos_url":"https://api.github.com/users/brijmailid/repos","events_url":"https://api.github.com/users/brijmailid/events{/privacy}","received_events_url":"https://api.github.com/users/brijmailid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-28T05:04:20Z","updated_at":"2015-12-03T23:09:17Z","closed_at":"2015-12-01T17:26:58Z","body":"my project is not getting build it shows error - \r\nIServiceCollection does not contain a definition for 'AddMvc', \r\n\r\nMy Project.json file is:\r\n\r\n```json\r\n{\r\n    \"webroot\": \"wwwroot\",\r\n    \"userSecretsId\": \"aspnet5-WebApplication3-153c8f5d-b846-40ea-a6ca-8250c0529bab\",\r\n    \"version\": \"1.0.0-*\",\r\n\r\n    \"dependencies\": {\r\n        \"EntityFramework.SqlServer\": \"7.0.0-beta5\",\r\n         \"EntityFramework.Commands\": \"7.0.0-beta5\",\r\n        \"Microsoft.AspNet.Mvc\": \"6.0.0-rc1-final\",\r\n        \"Microsoft.AspNet.Mvc.TagHelpers\": \"6.0.0-beta5\",\r\n        \"Microsoft.AspNet.Authentication.Cookies\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Authentication.Facebook\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Authentication.Google\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Authentication.MicrosoftAccount\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Authentication.Twitter\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Diagnostics\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Diagnostics.Entity\": \"7.0.0-beta5\",\r\n        \"Microsoft.AspNet.Identity.EntityFramework\": \"3.0.0-beta5\",\r\n        \"Microsoft.AspNet.Server.IIS\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Server.WebListener\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.StaticFiles\": \"1.0.0-beta5\",\r\n        \"Microsoft.AspNet.Tooling.Razor\": \"1.0.0-beta5\",\r\n        \"Microsoft.Framework.Configuration.Abstractions\": \"1.0.0-beta5\",\r\n        \"Microsoft.Framework.Configuration.Json\": \"1.0.0-beta5\",\r\n        \"Microsoft.Framework.Configuration.UserSecrets\": \"1.0.0-beta5\",\r\n        \"Microsoft.Framework.Logging\": \"1.0.0-beta5\",\r\n        \"Microsoft.Framework.Logging.Console\": \"1.0.0-beta5\",\r\n        \"Microsoft.VisualStudio.Web.BrowserLink.Loader\": \"14.0.0-beta5\"\r\n    },\r\n\r\n    \"commands\": {\r\n        \"web\": \"Microsoft.AspNet.Hosting --config hosting.ini\",\r\n        \"ef\": \"EntityFramework.Commands\"\r\n    },\r\n\r\n    \"frameworks\": {\r\n        \"dnx451\": {\r\n            \"dependencies\": {\r\n                \"DreamFactory\": \"1.0.0-*\",\r\n                \"DreamFactoryCRUD.Contracts\": \"1.0.0-*\",\r\n                \"unirest-net\": \"1.0.0-*\"\r\n            },\r\n            \"frameworkAssemblies\": {\r\n                \"System.Web\": \"4.0.0.0\"\r\n            }\r\n        }\r\n    },\r\n\r\n    \"exclude\": [\r\n        \"wwwroot\",\r\n        \"node_modules\",\r\n        \"bower_components\"\r\n    ],\r\n    \"publishExclude\": [\r\n        \"node_modules\",\r\n        \"bower_components\",\r\n        \"**.xproj\",\r\n        \"**.user\",\r\n        \"**.vspscc\"\r\n    ],\r\n    \"scripts\": {\r\n        \"prepublish\": [ \"npm install\", \"bower install\", \"gulp clean\", \"gulp min\" ]\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/161818286","html_url":"https://github.com/aspnet/Mvc/issues/3658#issuecomment-161818286","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/3658","id":161818286,"user":{"login":"rynowak","id":1430011,"avatar_url":"https://avatars.githubusercontent.com/u/1430011?v=3","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T23:09:17Z","updated_at":"2015-12-03T23:09:17Z","body":"The version for `\"Microsoft.AspNet.Mvc\":` should be `\"6.0.0-rc1-final\"`"}}