{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/993","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/993/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/993/events","html_url":"https://github.com/fsprojects/Paket/issues/993","id":101677297,"number":993,"title":"Paket Feature Request - Remove Invalid References On An Install","user":{"login":"cjbhaines","id":3225747,"avatar_url":"https://avatars.githubusercontent.com/u/3225747?v=3","gravatar_id":"","url":"https://api.github.com/users/cjbhaines","html_url":"https://github.com/cjbhaines","followers_url":"https://api.github.com/users/cjbhaines/followers","following_url":"https://api.github.com/users/cjbhaines/following{/other_user}","gists_url":"https://api.github.com/users/cjbhaines/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbhaines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbhaines/subscriptions","organizations_url":"https://api.github.com/users/cjbhaines/orgs","repos_url":"https://api.github.com/users/cjbhaines/repos","events_url":"https://api.github.com/users/cjbhaines/events{/privacy}","received_events_url":"https://api.github.com/users/cjbhaines/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T15:02:15Z","updated_at":"2015-08-18T15:13:05Z","closed_at":null,"body":"I wanted to run an idea past the Paket community. I'm not quite sure how a csproj got into this state, but I have invalid references in my csproj without the normal Paket conditional logic. Perhaps the reference was added by ReSharper by accident after it’s hinted at importing a DLL it found in the package folder. This is quite easy to accidentaly hit if you are alt-entering through imports/references. I was wondering if on an install, Paket could remove any references to the packages folder that do not have conditional statements round them?\r\n \r\n```\r\n   <Reference Include=\"Betgenius.InRunning.DataContracts\">\r\n      <HintPath>..\\..\\..\\packages\\Betgenius.InRunning.DataContracts\\lib\\net40\\Betgenius.InRunning.DataContracts.dll</HintPath>\r\n   </Reference>\r\n   <Reference Include=\"Betgenius.Resulting.Messages, Version=1.0.70.9811, Culture=neutral, processorArchitecture=MSIL\">\r\n      <SpecificVersion>False</SpecificVersion>\r\n      <HintPath>..\\..\\..\\packages\\Betgenius.Resulting.Messages\\lib\\net40\\Betgenius.Resulting.Messages.dll</HintPath>\r\n   </Reference>\r\n```"},"comment":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/comments/132245086","html_url":"https://github.com/fsprojects/Paket/issues/993#issuecomment-132245086","issue_url":"https://api.github.com/repos/fsprojects/Paket/issues/993","id":132245086,"user":{"login":"cjbhaines","id":3225747,"avatar_url":"https://avatars.githubusercontent.com/u/3225747?v=3","gravatar_id":"","url":"https://api.github.com/users/cjbhaines","html_url":"https://github.com/cjbhaines","followers_url":"https://api.github.com/users/cjbhaines/followers","following_url":"https://api.github.com/users/cjbhaines/following{/other_user}","gists_url":"https://api.github.com/users/cjbhaines/gists{/gist_id}","starred_url":"https://api.github.com/users/cjbhaines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjbhaines/subscriptions","organizations_url":"https://api.github.com/users/cjbhaines/orgs","repos_url":"https://api.github.com/users/cjbhaines/repos","events_url":"https://api.github.com/users/cjbhaines/events{/privacy}","received_events_url":"https://api.github.com/users/cjbhaines/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T15:13:05Z","updated_at":"2015-08-18T15:13:05Z","body":"Sounds like a good option to me. I will be forever in your debt if you implement this :-) Do you accept beer deliveries?"}}