I try to install the package in a portable project but get the error :
Impossible to install the package « RestSharp 105.2.3 ».
You try to install the package in a project « .NETPortable,Version=v4.5,Profile=Profile111 »
Related
When I tried installing Microsoft.AspNetCore.AppRef in my webapplication in .net core 3.1.
However, I get this error instead:
Package 'Microsoft.AspNetCore.App.Ref 3.1.3' has a package type 'DotnetPlatform' that is not supported by project 'xxxxxx'.
NU1213 The package Microsoft.AspNetCore.App.Ref 3.1.3 has a package type DotnetPlatform that is incompatible with this project.
Any ideas how to fix?
Acording to the package description on nuget:
This package is an internal implementation of the .NET Core SDK and is not meant to be used as a normal PackageReference.
I need use AuthenticationHeaderValue for getting token
var token = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes($"{username}:{password}")));
so I have to install System.Net.Http package but when I install it via package manager console it give that error
what should I do?
what is AuthenticationHeaderValue alternative?
Could not install package 'System.Net.Http 4.0.0'. 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.
Install System.Net.http version which is compatible to your .Net Framework
Using NuGet Package Manager, I get this error message:
Could not install package 'Microsoft.Toolkit.Uwp.UI.Controls 3.0.0'.
You are trying to install this package into a project that targets 'native,Version=v0.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. 0
The app is a Blank App (C++/winRT). Visual Studio 15.8.0 Preview 4.0.(10.0.17134.0, 10.0.17704.0)
Despite it's name, the Windows Community Toolkit is only intended for C# developers.
Trying to build a project with a reference to a package that should be compatible with .net core 1.1 but when nuget is restoring packages (VS.NET 2017 or the command line) I an see an error message
"One or more of the packages are incompatible with netcoreapp1.1"
The package name is
Microsoft.AspNetCore.DataProtection.AzureStorage
It says it is compatible with .NET Standard v1.5
And the error relates to dependencies of the package:
Microsoft.Data.Edm
Microsoft.Data.Services.Client
Microsoft.Data.OData
Microsoft.Data.Spatial
The csproj file has a package fallback setting:
<PackageTargetFallback>
$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;
</PackageTargetFallback>
Not sure what the problem is
thanks
Michael
I want to include Plus.v1 namespace in my mvc application. I am unable to find any package on nuget to download the dll's.
www.nuget.org has been experiencing some problems, especially related to search. Please check back later and sorry for the inconveniences.
Run the following command in the Package Manager Console: Install-Package Google.Apis.Plus.v1
To access PMC (Package Manager Console) go to "Tools -> Nuget Package Manager -> Package Manager Console"