{"action":"opened","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/1095","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/1095/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/1095/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/1095/events","html_url":"https://github.com/fsprojects/Paket/issues/1095","id":108688836,"number":1095,"title":"KeyNotFoundException when project is net4.0-client","user":{"login":"Stift","id":1169723,"avatar_url":"https://avatars.githubusercontent.com/u/1169723?v=3","gravatar_id":"","url":"https://api.github.com/users/Stift","html_url":"https://github.com/Stift","followers_url":"https://api.github.com/users/Stift/followers","following_url":"https://api.github.com/users/Stift/following{/other_user}","gists_url":"https://api.github.com/users/Stift/gists{/gist_id}","starred_url":"https://api.github.com/users/Stift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stift/subscriptions","organizations_url":"https://api.github.com/users/Stift/orgs","repos_url":"https://api.github.com/users/Stift/repos","events_url":"https://api.github.com/users/Stift/events{/privacy}","received_events_url":"https://api.github.com/users/Stift/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-28T15:55:10Z","updated_at":"2015-09-28T15:55:10Z","closed_at":null,"body":"We have a project that has in its csproj file the following settings\r\n`<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>\r\n<TargetFrameworkProfile>Client</TargetFrameworkProfile>`\r\n\r\n`paket install --verbose` fails with the following exception and stacktrace\r\n```\r\nPaket failed with:\r\n        Exception of type 'System.Collections.Generic.KeyNotFoundException' was thrown.\r\nStackTrace:\r\n     at Microsoft.FSharp.Collections.ListModule.Pick[T,TResult](FSharpFunc`2 chooser, FSharpList`1 list)\r\n   at Paket.BindingRedirects.applyBindingRedirects(FSharpFunc`2 bindingRedirects, String configFilePath)\r\n   at Paket.BindingRedirects.applyBindingRedirectsToFolder@148-3.Invoke(String configFilePath)\r\n   at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc`2 action, IEnumerable`1 source)\r\n   at Paket.InstallProcess.InstallIntoProjects(InstallerOptions options, DependenciesFile dependenciesFile, LockFile lockFile, FSharpList`1 projects)\r\n   at <StartupCode$Paket-Core>.$PublicAPI.Install@148.Invoke(Unit unitVar0)\r\n   at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc`2 action)\r\n   at Paket.Program.handler@295-10.Invoke(ParseResults`1 results)\r\n   at Paket.Program.processWithValidation[T](FSharpFunc`2 validateF, FSharpFunc`2 commandF, Command command, String[] args)\r\n   at Paket.Program.processCommand@66-1.Invoke(Command command, String[] args)\r\n   at Paket.Program.main()\r\n```\r\nI was able to break this issue down to https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/FrameworkHandling.fs#l360 where is no PortableProfile with a 'Client' definition.\r\nI hope I provided the right information to solve this issue, else I'm open for questions."}}