{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn-analyzers/issues/1906","repository_url":"https://api.github.com/repos/dotnet/roslyn-analyzers","labels_url":"https://api.github.com/repos/dotnet/roslyn-analyzers/issues/1906/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn-analyzers/issues/1906/comments","events_url":"https://api.github.com/repos/dotnet/roslyn-analyzers/issues/1906/events","html_url":"https://github.com/dotnet/roslyn-analyzers/issues/1906","id":385456896,"node_id":"MDU6SXNzdWUzODU0NTY4OTY=","number":1906,"title":"CA1823 with perpetual timer","user":{"login":"adraut","id":6654075,"node_id":"MDQ6VXNlcjY2NTQwNzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6654075?v=4","gravatar_id":"","url":"https://api.github.com/users/adraut","html_url":"https://github.com/adraut","followers_url":"https://api.github.com/users/adraut/followers","following_url":"https://api.github.com/users/adraut/following{/other_user}","gists_url":"https://api.github.com/users/adraut/gists{/gist_id}","starred_url":"https://api.github.com/users/adraut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adraut/subscriptions","organizations_url":"https://api.github.com/users/adraut/orgs","repos_url":"https://api.github.com/users/adraut/repos","events_url":"https://api.github.com/users/adraut/events{/privacy}","received_events_url":"https://api.github.com/users/adraut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-28T21:06:50Z","updated_at":"2018-11-28T21:10:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Analyzer package\r\nMicrosoft.CodeQuality.Analyzers\r\n\r\n#### Package Version\r\n2.6.2\r\nVisual Studio 15.9.0\r\n\r\n#### Diagnostic ID\r\nCA1823\r\n\r\n#### Repro steps\r\n```\r\nPublic Class VbSharedTimer\r\nPrivate Shared ReadOnly CleanUpTimer as New System.Threading.Timer(AddressOf CleanUp, Nothing, 1000, 1000)\r\n\r\nPrivate Shared Sub CleanUp(state as Object)\r\n  System.Threading.Thread.Sleep(1)\r\nEnd Sub\r\nEnd Class\r\n```\r\n1. Build\r\n\r\n#### Expected behavior\r\nDiagnostic is not reported during build.\r\n\r\n#### Actual behavior\r\n`warning CA1823: Unused field 'CleanUpTimer'`\r\n\r\n\r\nThis one is a bit odd in that the diagnostic warning is reported in the build log, but is not displayed in the Error List when the view is set to `Build + IntelliSense`.  It does display when the view is set to `Build`.  "},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn-analyzers/issues/comments/442605767","html_url":"https://github.com/dotnet/roslyn-analyzers/issues/1906#issuecomment-442605767","issue_url":"https://api.github.com/repos/dotnet/roslyn-analyzers/issues/1906","id":442605767,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjYwNTc2Nw==","user":{"login":"adraut","id":6654075,"node_id":"MDQ6VXNlcjY2NTQwNzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6654075?v=4","gravatar_id":"","url":"https://api.github.com/users/adraut","html_url":"https://github.com/adraut","followers_url":"https://api.github.com/users/adraut/followers","following_url":"https://api.github.com/users/adraut/following{/other_user}","gists_url":"https://api.github.com/users/adraut/gists{/gist_id}","starred_url":"https://api.github.com/users/adraut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adraut/subscriptions","organizations_url":"https://api.github.com/users/adraut/orgs","repos_url":"https://api.github.com/users/adraut/repos","events_url":"https://api.github.com/users/adraut/events{/privacy}","received_events_url":"https://api.github.com/users/adraut/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T21:10:24Z","updated_at":"2018-11-28T21:10:24Z","author_association":"CONTRIBUTOR","body":"Even more odd.  I closed the solution and re-opened it.  The warning no longer occurs.  I had done multiple rebuilds prior to closing and the warning was consistently reported from the compiler, but isn't now."}}
{"actor":{"display_login":"adraut"}}