Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Microsoft.Bcl.Async nags about missing "The type 'AnnouncementClient' is required here and is unavailable." #1117
The project is built to .net 4.6 so it should not do anything. At least I was under the impression it shouldn't do anything.
But to my suprise this ended up in my project file:
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6')"> <ItemGroup> <Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop"> <HintPath>..\..\packages\Microsoft.Bcl.Async\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath> <Private>True</Private> <Paket>True</Paket> </Reference> yadda yadda yadda </itemGroup> </when>
why does this reference get added to the project for 4.6 when the package is obviously meant for .net4.
I don't know if this is a paket issue, but I thought I'd ask here anyway.
ps. I'm so fed up with these Bcl packages...
For the record, and reproducing our private discussion with @forki, the problem more likely has to do with a bug in paket when resolving the dependency graph for AWSSDK.Core, which has the following dependency tree
<dependencies> <group targetFramework=".NETFramework4.5" /> <group targetFramework=".NETPortable0.0-net45+netcore45+wpa81+wp8+MonoAndroid10+xamarinios10+MonoTouch10"> <dependency id="Microsoft.Net.Http" version="2.2.29" /> <dependency id="PCLStorage" version="1.0.2" /> <dependency id="PCLCrypto" version="18.104.22.16830" /> </group> </dependencies>
which however is resolved to the following paket.lock: