{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/4831","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/4831/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/4831/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/4831/events","html_url":"https://github.com/dotnet/roslyn/issues/4831","id":103526057,"number":4831,"title":"An instance of analyzer cannot be created","user":{"login":"bkoelman","id":10324372,"avatar_url":"https://avatars.githubusercontent.com/u/10324372?v=3","gravatar_id":"","url":"https://api.github.com/users/bkoelman","html_url":"https://github.com/bkoelman","followers_url":"https://api.github.com/users/bkoelman/followers","following_url":"https://api.github.com/users/bkoelman/following{/other_user}","gists_url":"https://api.github.com/users/bkoelman/gists{/gist_id}","starred_url":"https://api.github.com/users/bkoelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkoelman/subscriptions","organizations_url":"https://api.github.com/users/bkoelman/orgs","repos_url":"https://api.github.com/users/bkoelman/repos","events_url":"https://api.github.com/users/bkoelman/events{/privacy}","received_events_url":"https://api.github.com/users/bkoelman/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/Question","name":"Question","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Verification%20Not%20Required","name":"Verification Not Required","color":"006400"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":11,"created_at":"2015-08-27T14:42:23Z","updated_at":"2015-12-15T18:36:35Z","closed_at":"2015-08-31T15:39:44Z","body":"After installing [my analyzer](https://www.nuget.org/packages/ResharperCodeContractNullability/1.0.1) (published nuget package) in a VS2015 RTM default Console Application, it works, but displays these two warnings after a solution rebuild:\r\n\r\n```\r\nAn instance of analyzer CodeContractNullability.CodeContractItemNullabilityAnalyzer cannot be created from d:\\Bart\\Documents\\Visual Studio 2015\\Projects\\ConsoleVersionTester\\packages\\ResharperCodeContractNullability.1.0.1\\analyzers\\dotnet\\cs\\CodeContractNullability.dll : Could not load file or assembly 'System.Collections.Immutable, Version=1.1.37.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified..\r\n\r\nAn instance of analyzer CodeContractNullability.CodeContractNullabilityAnalyzer cannot be created from d:\\Bart\\Documents\\Visual Studio 2015\\Projects\\ConsoleVersionTester\\packages\\ResharperCodeContractNullability.1.0.1\\analyzers\\dotnet\\cs\\CodeContractNullability.dll : Could not load file or assembly 'System.Collections.Immutable, Version=1.1.37.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified..\r\n```\r\n\r\nThe [published vsix version](https://visualstudiogallery.msdn.microsoft.com/97bdc5f4-f209-4441-a313-2c6e92631eaf) does not produce these warnings.\r\n\r\nAny idea what is causing this?\r\n\r\nTo repro, install the nuget package at https://www.nuget.org/packages/ResharperCodeContractNullability/1.0.1 in a new console application and rebuild.\r\n\r\n![instance-warnings](https://cloud.githubusercontent.com/assets/10324372/9523447/5795bbd0-4cda-11e5-9119-f04b01639598.png)"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/164850668","html_url":"https://github.com/dotnet/roslyn/issues/4831#issuecomment-164850668","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/4831","id":164850668,"user":{"login":"ProductiveRage","id":742348,"avatar_url":"https://avatars.githubusercontent.com/u/742348?v=3","gravatar_id":"","url":"https://api.github.com/users/ProductiveRage","html_url":"https://github.com/ProductiveRage","followers_url":"https://api.github.com/users/ProductiveRage/followers","following_url":"https://api.github.com/users/ProductiveRage/following{/other_user}","gists_url":"https://api.github.com/users/ProductiveRage/gists{/gist_id}","starred_url":"https://api.github.com/users/ProductiveRage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProductiveRage/subscriptions","organizations_url":"https://api.github.com/users/ProductiveRage/orgs","repos_url":"https://api.github.com/users/ProductiveRage/repos","events_url":"https://api.github.com/users/ProductiveRage/events{/privacy}","received_events_url":"https://api.github.com/users/ProductiveRage/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T18:36:35Z","updated_at":"2015-12-15T18:36:35Z","body":"I *think* I follow, but I'm just going to make absolutely sure.. :)\r\n\r\nI need to drop the Immutable collections library down a version so that people who are developing *using* my analyser can do so if they only have the older version of that library on their computer. However, I don't need to drop the Microsoft.CodeAnalysis.Analyzers library's version for while I'm developing the analyser itself because that library is not referenced by the analyser - so someone on VS2015RTM could use my analyser just fine (but they might have problems cloning my analyser repo and working on *that*).\r\n\r\nWhile I don't want to limit who can use the analyser that I will distribute, I don't mind if I limit who can actually *develop* that analyser.\r\n\r\nCorrect me if I've got anything wrong there but I think I've got you. And I think I'm going to bump the ersion of Microsoft.CodeAnalysis.Analyzers back up to 1.1.0 to get rid of that annoying warning.\r\n\r\nThanks again!"}}