New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Bcl.Async nags about missing "The type 'AnnouncementClient' is required here and is unavailable." #1117

Closed
albertjan opened this Issue Oct 7, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@albertjan
Member

albertjan commented Oct 7, 2015

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...

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Oct 7, 2015

Member

net40 means .NET 4.0 and above. at least if there is no other net folder.

Try with Nuget - it will install the same dlls.

Member

forki commented Oct 7, 2015

net40 means .NET 4.0 and above. at least if there is no other net folder.

Try with Nuget - it will install the same dlls.

@albertjan

This comment has been minimized.

Show comment
Hide comment
@albertjan

albertjan Oct 7, 2015

Member

Alright I believe you. 😄 I have to manually remove this ref from the project to get it to build.

Member

albertjan commented Oct 7, 2015

Alright I believe you. 😄 I have to manually remove this ref from the project to get it to build.

@albertjan albertjan closed this Oct 7, 2015

@eiriktsarpalis

This comment has been minimized.

Show comment
Hide comment
@eiriktsarpalis

eiriktsarpalis May 19, 2016

Member

I've recently started getting the same error message actually. For example this project currently builds as expected, but it will fail as soon as I paket update.

Member

eiriktsarpalis commented May 19, 2016

I've recently started getting the same error message actually. For example this project currently builds as expected, but it will fail as soon as I paket update.

@eiriktsarpalis

This comment has been minimized.

Show comment
Hide comment
@eiriktsarpalis

eiriktsarpalis May 19, 2016

Member

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="1.0.2.15130" />
      </group>
    </dependencies>

which however is resolved to the following paket.lock:

 AWSSDK.Core (3.1.5.3)
      Microsoft.Net.Http (>= 2.2.29) - framework: >= net45, portable-net45+win8+wp8+wpa81
      PCLCrypto (>= 1.0.2.15130) - framework: >= net45, portable-net45+win8+wp8+wpa81
      PCLStorage (>= 1.0.2) - framework: >= net45, portable-net45+win8+wp8+wpa81
Member

eiriktsarpalis commented May 19, 2016

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="1.0.2.15130" />
      </group>
    </dependencies>

which however is resolved to the following paket.lock:

 AWSSDK.Core (3.1.5.3)
      Microsoft.Net.Http (>= 2.2.29) - framework: >= net45, portable-net45+win8+wp8+wpa81
      PCLCrypto (>= 1.0.2.15130) - framework: >= net45, portable-net45+win8+wp8+wpa81
      PCLStorage (>= 1.0.2) - framework: >= net45, portable-net45+win8+wp8+wpa81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment