Closed SeanSnyders closed 4 years ago
Strange since both both "net45" + "netstandard2.0" should work just fine for "net471".
Have you tried upgrading to latest version of VS2017 / VS2019 ?
If you have a solution that will fix your nuget-issue, then please tell.
Updated to latest Visual Studio 2019:
But still getting this:
Could not install package 'LibLog 5.0.6'.
You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2',
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.
Don't know much about Visual Studio for Mac. Maybe ask Microsoft/Xamarin for help why this nuget-package doesn't work in their program. Maybe they can give a hint.
Hmm VS for Mac is not VS2019 but that shouldn't matter.
I get errors on installing my library libX due to LibLog 5.0.6 not supporting these frameworks and is a dependency of my library libX.
Assuming your libx
is a nuget package it should NOT bring a dependency on LibLog. LibLog is installed as a developmentDependency
https://github.com/damianh/LibLog/blob/master/src/LibLog/LibLog.nuspec#L12 and should look like this in your libx's csproj: https://github.com/NuGet/Home/wiki/DevelopmentDependency-support-for-PackageReference#example and https://github.com/blehnen/DotNetWorkQueue/blob/94845a3b34c4bc4518478075efc16286b01eb5e3/Source/DotNetWorkQueue/DotNetWorkQueue.csproj#L57-L60 If it doesn't look like this, you probably manually added the package reference instead of doing dotnet package add
.
Am pretty certain I identified the issus and I know plenty of people are using LibLog with issues with upstream libs and dependencies. Closing - unless it turns out to be something else.
I have a library, call it
libX
that isnetstandard2.0
compliant and uses LigLob 5.0.6. This librarylibX
needs to be used in a project that targets .net framework 4.6.2 or 4.7.1. I get errors on installing my librarylibX
due to LibLog 5.0.6 not supporting these frameworks and is a dependency of my librarylibX
. Below is an example of the error I get from NuGet for 4.7.1 project: