{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/12044","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/12044/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/12044/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/12044/events","html_url":"https://github.com/dotnet/roslyn/issues/12044","id":160601651,"number":12044,"title":"IDE0007\tuse 'var' instead of explicit type triggers on g.i.cs files","user":{"login":"jmarolf","id":9797472,"avatar_url":"https://avatars.githubusercontent.com/u/9797472?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarolf","html_url":"https://github.com/jmarolf","followers_url":"https://api.github.com/users/jmarolf/followers","following_url":"https://api.github.com/users/jmarolf/following{/other_user}","gists_url":"https://api.github.com/users/jmarolf/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarolf/subscriptions","organizations_url":"https://api.github.com/users/jmarolf/orgs","repos_url":"https://api.github.com/users/jmarolf/repos","events_url":"https://api.github.com/users/jmarolf/events{/privacy}","received_events_url":"https://api.github.com/users/jmarolf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-16T08:08:18Z","updated_at":"2016-06-16T08:08:18Z","closed_at":null,"body":"**Version Used**: 2.0.0.2016061503\r\n\r\n**Steps to Reproduce**:\r\n\r\n1.  Create new WPF project\r\n2.  Set \"Prefer 'var'\" for all 'var' preferences to a warning\r\n\r\n![image](https://cloud.githubusercontent.com/assets/9797472/16109564/6aa354e2-335e-11e6-83ef-13061de125c1.png)\r\n\r\n\r\n**Expected Behavior**:\r\nIDE0007\tonly triggers for user code files.\r\n\r\n**Actual Behavior**:\r\nWarning triggers on all g.i.cs files as the generated code does not use var\r\n\r\n```C#\r\nSystem.Uri resourceLocater = new System.Uri(\"/SampleWPFApp;component/app.xaml\", System.UriKind.Relative);\r\n```"}}
{"actor":{"display_login":"jmarolf"}}