{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/project-system/issues/1741","repository_url":"https://api.github.com/repos/dotnet/project-system","labels_url":"https://api.github.com/repos/dotnet/project-system/issues/1741/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/project-system/issues/1741/comments","events_url":"https://api.github.com/repos/dotnet/project-system/issues/1741/events","html_url":"https://github.com/dotnet/project-system/issues/1741","id":213949808,"node_id":"MDU6SXNzdWUyMTM5NDk4MDg=","number":1741,"title":"VS 2017 shows red squiggly on UseSqlSever when method is resolved","user":{"login":"Rick-Anderson","id":3605364,"node_id":"MDQ6VXNlcjM2MDUzNjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3605364?v=4","gravatar_id":"","url":"https://api.github.com/users/Rick-Anderson","html_url":"https://github.com/Rick-Anderson","followers_url":"https://api.github.com/users/Rick-Anderson/followers","following_url":"https://api.github.com/users/Rick-Anderson/following{/other_user}","gists_url":"https://api.github.com/users/Rick-Anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/Rick-Anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rick-Anderson/subscriptions","organizations_url":"https://api.github.com/users/Rick-Anderson/orgs","repos_url":"https://api.github.com/users/Rick-Anderson/repos","events_url":"https://api.github.com/users/Rick-Anderson/events{/privacy}","received_events_url":"https://api.github.com/users/Rick-Anderson/received_events","type":"User","site_admin":false},"labels":[{"id":375518165,"node_id":"MDU6TGFiZWwzNzU1MTgxNjU=","url":"https://api.github.com/repos/dotnet/project-system/labels/Bug","name":"Bug","color":"e52727","default":false},{"id":393439737,"node_id":"MDU6TGFiZWwzOTM0Mzk3Mzc=","url":"https://api.github.com/repos/dotnet/project-system/labels/Feature-Language-Service","name":"Feature-Language-Service","color":"5319e7","default":false},{"id":511187260,"node_id":"MDU6TGFiZWw1MTExODcyNjA=","url":"https://api.github.com/repos/dotnet/project-system/labels/Urgency-Soon","name":"Urgency-Soon","color":"c4531b","default":false}],"state":"closed","locked":false,"assignee":{"login":"davkean","id":1103906,"node_id":"MDQ6VXNlcjExMDM5MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1103906?v=4","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"assignees":[{"login":"davkean","id":1103906,"node_id":"MDQ6VXNlcjExMDM5MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1103906?v=4","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/project-system/milestones/7","html_url":"https://github.com/dotnet/project-system/milestone/7","labels_url":"https://api.github.com/repos/dotnet/project-system/milestones/7/labels","id":1831456,"node_id":"MDk6TWlsZXN0b25lMTgzMTQ1Ng==","number":7,"title":"15.3","description":"","creator":{"login":"srivatsn","id":20570,"node_id":"MDQ6VXNlcjIwNTcw","avatar_url":"https://avatars3.githubusercontent.com/u/20570?v=4","gravatar_id":"","url":"https://api.github.com/users/srivatsn","html_url":"https://github.com/srivatsn","followers_url":"https://api.github.com/users/srivatsn/followers","following_url":"https://api.github.com/users/srivatsn/following{/other_user}","gists_url":"https://api.github.com/users/srivatsn/gists{/gist_id}","starred_url":"https://api.github.com/users/srivatsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srivatsn/subscriptions","organizations_url":"https://api.github.com/users/srivatsn/orgs","repos_url":"https://api.github.com/users/srivatsn/repos","events_url":"https://api.github.com/users/srivatsn/events{/privacy}","received_events_url":"https://api.github.com/users/srivatsn/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":288,"state":"closed","created_at":"2016-06-16T05:30:59Z","updated_at":"2018-05-22T11:09:31Z","due_on":null,"closed_at":"2017-10-02T17:19:57Z"},"comments":5,"created_at":"2017-03-14T02:14:36Z","updated_at":"2018-09-01T13:08:08Z","closed_at":"2017-06-11T17:41:25Z","author_association":"NONE","body":"To reproduce:\r\n1. Create new ASP.NET Core web app with all defaults.\r\n2. Add Movie class\r\n\r\n```\r\npublic class Movie\r\n    {\r\n        public int ID { get; set; }\r\n        public string Title { get; set; }\r\n        public DateTime ReleaseDate { get; set; }\r\n        public string Genre { get; set; }\r\n        public decimal Price { get; set; }\r\n    }  \r\n```\r\n\r\n3.Scaffold\r\n4. Build/run - it works fine.\r\n5. Open _Startup.cs_ and UseSqlSever is underlined with red squiggly.  It shows the error:\r\n'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer' and no extension method 'UseSqlServer' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?)"},"comment":{"url":"https://api.github.com/repos/dotnet/project-system/issues/comments/417858542","html_url":"https://github.com/dotnet/project-system/issues/1741#issuecomment-417858542","issue_url":"https://api.github.com/repos/dotnet/project-system/issues/1741","id":417858542,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzg1ODU0Mg==","user":{"login":"shepherdnick","id":2045298,"node_id":"MDQ6VXNlcjIwNDUyOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/2045298?v=4","gravatar_id":"","url":"https://api.github.com/users/shepherdnick","html_url":"https://github.com/shepherdnick","followers_url":"https://api.github.com/users/shepherdnick/followers","following_url":"https://api.github.com/users/shepherdnick/following{/other_user}","gists_url":"https://api.github.com/users/shepherdnick/gists{/gist_id}","starred_url":"https://api.github.com/users/shepherdnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shepherdnick/subscriptions","organizations_url":"https://api.github.com/users/shepherdnick/orgs","repos_url":"https://api.github.com/users/shepherdnick/repos","events_url":"https://api.github.com/users/shepherdnick/events{/privacy}","received_events_url":"https://api.github.com/users/shepherdnick/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T13:08:08Z","updated_at":"2018-09-01T13:08:08Z","author_association":"NONE","body":"Open your console and navigate to the project folder, then run this:\r\n\r\n`dotnet add package Microsoft.EntityFrameworkCore.Sqlite`\r\n\r\nYou'll need to then add a `using Microsoft.EntityFrameworkCore.Sqlite` to the top of your class.\r\n\r\nSee here: [](https://docs.microsoft.com/en-us/ef/core/get-started/netcore/new-db-sqlite)"}}
{"actor":{"display_login":"shepherdnick"}}