{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/2180","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2180/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/2180/events","html_url":"https://github.com/dotnet/roslyn/issues/2180","id":70135301,"number":2180,"title":"Add support for marking analyzers with supported project flavors","user":{"login":"mavasani","id":10605811,"avatar_url":"https://avatars.githubusercontent.com/u/10605811?v=3","gravatar_id":"","url":"https://api.github.com/users/mavasani","html_url":"https://github.com/mavasani","followers_url":"https://api.github.com/users/mavasani/followers","following_url":"https://api.github.com/users/mavasani/following{/other_user}","gists_url":"https://api.github.com/users/mavasani/gists{/gist_id}","starred_url":"https://api.github.com/users/mavasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavasani/subscriptions","organizations_url":"https://api.github.com/users/mavasani/orgs","repos_url":"https://api.github.com/users/mavasani/repos","events_url":"https://api.github.com/users/mavasani/events{/privacy}","received_events_url":"https://api.github.com/users/mavasani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Analyzers","name":"Area-Analyzers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Enhancement","name":"Enhancement","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Performance","name":"Performance","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-04-22T14:08:03Z","updated_at":"2015-04-23T20:39:00Z","closed_at":null,"body":"DiagnosticAnalyzerAttribute takes arguments for supported languages for which to enable the owning DiagnosticAnalyzer. This allows IDE to selectively load an analyzer assembly only if it has a supported analyzer for current project's language.\r\n\r\nThis works fine. However, we should add extra functionality to allow marking supported project flavors for analyzers. This will enable writing analyzers target specific project flavors for the supported languages. For example, then one can then write a shared project VSIX analyzer, which is only loaded for shared projects."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/95712952","html_url":"https://github.com/dotnet/roslyn/issues/2180#issuecomment-95712952","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/2180","id":95712952,"user":{"login":"mavasani","id":10605811,"avatar_url":"https://avatars.githubusercontent.com/u/10605811?v=3","gravatar_id":"","url":"https://api.github.com/users/mavasani","html_url":"https://github.com/mavasani","followers_url":"https://api.github.com/users/mavasani/followers","following_url":"https://api.github.com/users/mavasani/following{/other_user}","gists_url":"https://api.github.com/users/mavasani/gists{/gist_id}","starred_url":"https://api.github.com/users/mavasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavasani/subscriptions","organizations_url":"https://api.github.com/users/mavasani/orgs","repos_url":"https://api.github.com/users/mavasani/repos","events_url":"https://api.github.com/users/mavasani/events{/privacy}","received_events_url":"https://api.github.com/users/mavasani/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T20:39:00Z","updated_at":"2015-04-23T20:39:00Z","body":"Agreed, but the current requirement of filtering based on flavors is when the analyzer executes in IDE host, and is needed for all analyzers, regardless of whether they are host specific or agnostic. So the mechanism we provide should not tie with whether analyzer is DiagnosticAnalyzer or DocumentDiagnosticAnalyzer."}}