{"action":"created","issue":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/782","labels_url":"https://api.github.com/repos/fsprojects/Paket/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/fsprojects/Paket/issues/782/comments","events_url":"https://api.github.com/repos/fsprojects/Paket/issues/782/events","html_url":"https://github.com/fsprojects/Paket/issues/782","id":68884911,"number":782,"title":"How can I force wrong targetFramework?","user":{"login":"Thorium","id":229355,"avatar_url":"https://avatars.githubusercontent.com/u/229355?v=3","gravatar_id":"","url":"https://api.github.com/users/Thorium","html_url":"https://github.com/Thorium","followers_url":"https://api.github.com/users/Thorium/followers","following_url":"https://api.github.com/users/Thorium/following{/other_user}","gists_url":"https://api.github.com/users/Thorium/gists{/gist_id}","starred_url":"https://api.github.com/users/Thorium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thorium/subscriptions","organizations_url":"https://api.github.com/users/Thorium/orgs","repos_url":"https://api.github.com/users/Thorium/repos","events_url":"https://api.github.com/users/Thorium/events{/privacy}","received_events_url":"https://api.github.com/users/Thorium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-16T09:35:34Z","updated_at":"2015-04-16T10:27:54Z","closed_at":null,"body":"If someone uses e.g. .NET 4.5.1 assembly to unit test Silverlight source code (yes, I know it sounds terrible, but it is possible), how could Paket be used to force wrong target framework for some reference? Now it creates this to csproj-files:\r\n\r\n    <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>\r\n    <!-- ...cut...  -->\r\n    <When Condition=\"$(TargetFrameworkIdentifier) == 'Silverlight'\">\r\n      <ItemGroup>\r\n        <Reference Include=\"Microsoft.Practices.Unity.Silverlight\">\r\n          <HintPath>..\\..\\..\\..\\packages\\Unity\\lib\\SL30\\Microsoft.Practices.Unity.Silverlight.dll</HintPath>\r\n          <Private>True</Private>\r\n          <Paket>True</Paket>\r\n        </Reference>\r\n      </ItemGroup>\r\n    </When>\r\n\r\n...and the build fails because some Microsoft Unity-IoC -reference is not found. There is no corresponding .NET dll that would work. I can manually fix this by not referencing the dll through Paket, but what would be the correct solution? So that \"paket install\" wouldn't break the build?\r\n"},"comment":{"url":"https://api.github.com/repos/fsprojects/Paket/issues/comments/93702783","html_url":"https://github.com/fsprojects/Paket/issues/782#issuecomment-93702783","issue_url":"https://api.github.com/repos/fsprojects/Paket/issues/782","id":93702783,"user":{"login":"forki","id":57396,"avatar_url":"https://avatars.githubusercontent.com/u/57396?v=3","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T10:27:54Z","updated_at":"2015-04-16T10:27:54Z","body":"So you want to reference the silverlight dll even in .NET 4.x?\r\n\r\nMhm. I think you need to manipulate manually and set the paket tag to false. This should tell paket to not mess with your changes "}}