Is it possible to install Signalr with vs2010 - visual-studio-2010

I am trying to install SignalR in my vs2010 project and I get the following error -
Could not install package 'Microsoft.Owin.Security 2.0.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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.
How can I install SignalR on vs2010 ??

You need to install 1.x
>Install-Package Microsoft.AspNet.SignalR -Version 1.1.3
2.x requires 4.5 of the framework

Here is the solution you are looking for,
http://rionscode.wordpress.com/2013/04/06/getting-signalr-ready-in-visual-studio-2010/

v1.2.2 is the last version of SignalR for the Visual Studio 2010 with .Net Framework 4.0
PM> Install-Package Microsoft.AspNet.SignalR -Version 1.2.2

Related

Failed to install ClosedXML dependency

I need to install ClosedXML dependency to build a C# project with .net framework 4.7.2 but when trying to install I always get the same error: "Cannot resolve dependency 'SixLabors.Fonts'. Sources used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'"
I have tried everything to install from the nuget package manager
What version are you trying to install? I think you should install SixLabors.Fonts first and then install ClosedXML, as the newer versions of ClosedXML depend on it.
I faced the same proplem when trying to install ClosedXML today. ClosedXML depends on the SixLabors.Fonts library which is only available in beta at the moment.
To find the library with the NuGet Browser, make sure to check the "Include prerelease" box. You should then be able to find it listed below. After installing SixLabors.Fonts, you should be able to install ClosedXml without any further issues.

Visual Studio won't accept UWP version for Nugget package?

This is driving me nuts!
I'm trying to install Microsoft.Build. Using Nugget Manager I can successfully install Microsoft.Build.Framework but not Microsoft.Build. I've upgraded to the latest version 1903 (build 18362), but still get the error:
Severity Code Description Project File Line Suppression State
Error NU1202 Package Microsoft.Build 16.5.0 is not compatible with uap10.0.18362 (UAP,Version=v10.0.18362) / win10-x64. Package Microsoft.Build 16.5.0 supports:
- net472 (.NETFramework,Version=v4.7.2)
- netcoreapp2.1 (.NETCoreApp,Version=v2.1)
But the framework requirements for both are the same? Anyone seen this or have some idea what the problem is?
thanks
The reason for your issue is that: Microsoft.Build Nugget package does not support UWP project. So you can't install the Nuget package in UWP projects.

The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found

I am using Visual Studio 2019 Version 16.3.7. I assume it is the latest update.
When I try to compile a basic .NET Core 2.2 console application:
...I get the following error:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
- The following frameworks were found:
1.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
3.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The .NET Core frameworks can be found at:
- https://aka.ms/dotnet-download .
My understanding is that .NET Core 3.0 is backward compatible. Why Visual Studio installer installed all versions of .NET Core except 2.2?
How do I solve this problem?
For whatever reason, .NET Core 2.2 is not installed by the ".NET Core cross-platform development" workload.
Open up the Visual Studio installer then go to the "Individual components" tab and you can install it from there:
In my case was missing x86 .NET Core 2.2.x Platform SDK (Visual Studio .NET 16.4 + .NET Core 3.1 SDK ; xUnit Test Project).
You can try this:
Exist directory 2.2.x in: C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App ?
When no, try Download latest 2.2.x SDK for x86 platform from this URL: https://dotnet.microsoft.com/download/dotnet-core/2.2
Install and try ...
For more info about installed SDK and Runtime you can use command: dotnet --info
For those trying to deploy a file to a non-developer machine and you see this error, use the Project -> Publish option with a Folder Profile and update the settings to be "Deployment mode: Self-contained". Then "Publish" it.
This will embed the runtime into the .exe, making it much larger, but also simple to "just work" on a client machine.
You can install x86 .NET Core 2.2.x Platform SDK as #Martin said.
If you do not need x86 version like me, you can also set
<PlatformTarget>AnyCPU</PlatformTarget>
to
<PlatformTarget>x64</PlatformTarget>
in both main project and test project 's .csproj file
to avoid this problem.
Two options are to run the Visual Studio Update application to see if any missing requirements will be installed for you or to install the net core 2.2 SDK manually from https://dotnet.microsoft.com/download/dotnet-core/2.2 (or https://aka.ms/dotnet-download as mentioned in the error message).
.NET Core 2.2.0 is not supported anymore.
Waiting for the .NET 5

Markdown nuget installation failed

I get this error when I try to install markdown.
Installing 'Markdown 2.2.1'.
Successfully installed 'Markdown 2.2.1'.
Adding 'Markdown 2.2.1' to SimpleCMS.
Uninstalling 'Markdown 2.2.1'.
Successfully uninstalled 'Markdown 2.2.1'.
Install failed. Rolling back...
Could not install package 'Markdown 2.2.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', 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'm using Microsoft Visual Studio 2013 and I'm on Windows 10. I tried updating the Nuget Package Manager but to no avail.
Markdown 2.2.1 depends on .Net Framework version 4.5.1
The error suggests you're trying to install it in a project targeting .Net framework 4.5
Two options:
Install Markdown 2.1.0
Update the target .Net framework for your application. This would generally be frowned upon, if you're writing a commercial application. Fine if it's just yours.
From the package manager console, you can do:
Install-Package Markdown -Version 2.1.0

Npgsql nuget installation failed

I have .NET 4.6.1 and 4.5.1 and VS 2013
I am installing Npgsql 3.2.0 (PostgreSQL .NET provider).
It fails:
Attempting to resolve dependency 'NETStandard.Library (≥ 1.6.1)'.
'NETStandard.Library' already has a dependency defined for 'Microsoft.NETCore.Platforms'.
Any ideas?
Thanks!
The culprit is likely VS2013, or rather your version of nuget. Can you make sure you have the latest version of the nuget extension and retry?
This was resolved by installing the latest NuGet Package Manager, the latest version is 2.12.0.817
https://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca
Note that: Don't forget to restart VisualStudio.

Resources