Bug 18366 - Can't add SignalR Client nuget package to a PCL in Visual Studio.
Summary: Can't add SignalR Client nuget package to a PCL in Visual Studio.
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 1.10.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: vsx
URL:
Depends on:
Blocks:
 
Reported: 2014-03-13 14:40 UTC by Jon Goldberger [MSFT]
Modified: 2016-04-06 11:28 UTC (History)
10 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Jon Goldberger [MSFT] 2014-03-13 14:40:11 UTC
Although I could successfully add The SignalR Client nuget package to a PCL created in Xamarin Studio (Mac) with Profile 49, the same did not work in Visual Studio 2013 on Windows 8.1. Installing the nugget package fails with this error message:

Installing 'Microsoft.AspNet.SignalR.Client 2.0.2'.
Successfully installed 'Microsoft.AspNet.SignalR.Client 2.0.2'.
Adding 'Microsoft.AspNet.SignalR.Client 2.0.2' to PortableClassLibrary1.
Uninstalling 'Microsoft.AspNet.SignalR.Client 2.0.2'.
Successfully uninstalled 'Microsoft.AspNet.SignalR.Client 2.0.2'.
Install failed. Rolling back...
Could not install package 'Microsoft.AspNet.SignalR.Client 2.0.2'. You are trying to install this package into a project that targets 'portable-net45+wp80+MonoAndroid10+MonoTouch10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author

I tried this with many different PCL profiles and all ended with the install failing with the above error.

Version info:
Microsoft Visual Studio Ultimate 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Architecture and Modeling Tools   06181-004-0451031-02209
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2013   06181-004-0451031-02209
Microsoft LightSwitch for Visual Studio 2013

Microsoft Office Developer Tools for Visual Studio 2013 ENU   06181-004-0451031-02209
Microsoft Office Developer Tools for Visual Studio 2013 ENU

Team Explorer for Visual Studio 2013   06181-004-0451031-02209
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06181-004-0451031-02209
Microsoft Visual Basic 2013

Visual C# 2013   06181-004-0451031-02209
Microsoft Visual C# 2013

Visual C++ 2013   06181-004-0451031-02209
Microsoft Visual C++ 2013

Visual F# 2013   06181-004-0451031-02209
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451031-02209
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06181-004-0451031-02209
Windows Phone SDK 8.0 - ENU

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.0.11001.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.0
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Web Developer Tools 2013   2.0.40926.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

NuGet Package Manager   2.7.40911.287
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools   1.0
Windows Azure Mobile Services Tools

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin.Android   4.12.02001 (a1e3982a)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   1.10.47 (3d6a125d)
Visual Studio extension to enable development for Xamarin.iOS
Comment 2 Ram Chandra 2014-03-14 01:45:28 UTC
I have checked this issue and I am able to reproduce this issue.

Steps to reproduce:
1. Create an "Portable Class Library Project" in "Visual Studio 2013".
2. Right click on "References" directory and click on "Manage NuGet Packages..."
3. In online tab, select "Microsoft and .NET"
4  In search " Signal" keyword in search bar, it will show components
5. Install "Microsoft ASP.NET SignalR Core Component"
6. A dialog will popup click on " I Accept".
7. Operation failed error occurred.

Screencast : http://www.screencast.com/t/vIU9dbs9K

I observed that when I try to install the "Microsoft ASP.NET SignalR Core Component" from "nuget manager" it shows an Operation Failed error. The error message is 

Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.0)'.
Attempting to resolve dependency 'Owin (≥ 1.0)'.
Attempting to resolve dependency 'Microsoft.Owin (≥ 2.0.0)'.
Attempting to resolve dependency 'Microsoft.Owin.Security (≥ 2.0.0)'.
Installing 'Newtonsoft.Json 5.0.8'.
Successfully installed 'Newtonsoft.Json 5.0.8'.
Installing 'Owin 1.0'.
Successfully installed 'Owin 1.0'.
Installing 'Microsoft.Owin 2.0.2'.
Successfully installed 'Microsoft.Owin 2.0.2'.
Installing 'Microsoft.Owin.Security 2.0.2'.
Successfully installed 'Microsoft.Owin.Security 2.0.2'.
Installing 'Microsoft.AspNet.SignalR.Core 2.0.2'.
Successfully installed 'Microsoft.AspNet.SignalR.Core 2.0.2'.
Adding 'Newtonsoft.Json 5.0.8' to PortableClassLibrary2.
Uninstalling 'Newtonsoft.Json 5.0.8'.
Successfully uninstalled 'Newtonsoft.Json 5.0.8'.
Install failed. Rolling back...
Could not install package 'Newtonsoft.Json 5.0.8'. You are trying to install this package into a project that targets 'portable-net45+sl50+wp80+win+MonoAndroid10+MonoTouch10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Environment:
Windows OS
VS 2013
Xamarin.iOS : 1.10.47
Comment 3 Lubomir Sokolovsky 2015-03-22 18:43:45 UTC
I can confirm this as well. I get the same errors as above when trying to install the SignalR NuGet both to a Android project and a PCL. I updated Xamarin and Android SDK only yesterday (21st March 2015). The current Xamarin.Android version is 4.20.0.37. This is very odd, because about half a year ago I was able to create a SignalR client in another Android application without any problems, following this tutorial http://visualstudiomagazine.com/Articles/2013/11/01/How-To-Use-SignalR-in-iOS-and-Android-Apps.aspx?Page=2

I would appreciate any news about this topic, since Xamarin and SignalR are crucial parts of my university thesis.
Comment 4 Lubomir Sokolovsky 2015-03-22 19:14:44 UTC
I am sorry, the problem really concerns only the PCL. When adding to an Android Project or Android Class Library, everything is smooth. Please, delete my two comments, as they are irrelevant.
Comment 5 Enzo Heredia 2015-07-02 14:32:44 UTC
still reproducible in build 4.0.0.332
Comment 6 Sunil Kumar 2015-07-16 06:44:44 UTC
I have checked this issue and still not able to add SignalR Client nuget package to a PCL in Visual Studio.

Screencast: http://www.screencast.com/t/mhPTAtKB
Error: https://gist.github.com/sunil360/1f5cca6757981ec6f391

Environment info: 

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.11.666.0 (ebae43a)
Xamarin.Android   5.1.4.16 (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Xamarin.iOS   8.10.2.0 (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Comment 7 Joaquin Jares 2015-10-13 15:49:06 UTC
I have tried with 2.2.0 and this is no longer a repro. Using Microsoft.AspNet.SignalR.Client 2.2.0.
Comment 8 Willem Mali 2016-04-06 11:28:47 UTC
I have also tried this with 2.2.0 of Microsoft.AspNet.SignalR.Client and older versions, and also with Microsoft.AspNet.SignalR.Client.Portable 2.0.1, and both won't install.

Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Community

Visual C# 2015   00322-20000-00000-AA384
Microsoft Visual C# 2015

NuGet Package Manager   3.4.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Xamarin   4.0.1.147 (1cc3a99)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.2.1 (46c3f7e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.4.2.28 (686b410)
Visual Studio extension to enable development for Xamarin.iOS.