question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot pin NETStandard.Library = 1.6.0

See original GitHub issue

Description

Similar to #2289, I seeming cannot install packages when I pin NETStandard.Library 1.6.0. This is required by AWS Lambda, but most recent Microsoft.* packages require version 1.6.1. I keep getting the Paket may still find a valid resolution, but this might take a while message but I never waited long enough for it to finish.

Here’s my intended dependencies file.

source https://www.nuget.org/api/v2/

nuget xunit >= 2.3 prerelease
nuget FakeItEasy
nuget FluentAssertions
nuget Microsoft.NET.Test.Sdk
nuget xunit.extensibility.execution >= 2.3 prerelease
nuget xunit.runner.visualstudio >= 2.3 prerelease
nuget Microsoft.AspNetCore.Mvc.Core
nuget Amazon.Lambda.Core
nuget Amazon.Lambda.Serialization.Json
nuget Amazon.Lambda.APIGatewayEvents
nuget Microsoft.AspNetCore.Server.Kestrel
nuget Microsoft.Extensions.Configuration.EnvironmentVariables
nuget Microsoft.Extensions.Configuration.FileExtensions
nuget Microsoft.Extensions.Configuration.Json
nuget Microsoft.Extensions.Logging
nuget Microsoft.Extensions.Options.ConfigurationExtensions
nuget AWSSDK.S3
nuget AWSSDK.Extensions.NETCore.Setup
nuget Amazon.Lambda.Logging.AspNetCore
nuget Amazon.Lambda.AspNetCoreServer
nuget NETStandard.Library 1.6.0

Repro steps

Use the above dependencies file and paket install

Expected behavior

Should resolve older versions of packages which don’t require NETStandard.Library: >= 1.6.1

Actual behavior

It takes very long

Known workarounds

It is seemingly possible to pin all packages and their transitive dependencies but there are loads of them.

I also tried with groups but it keeps telling me that install fails because my project references two version of the NETStandard.Library package.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
matthidcommented, May 1, 2017

After #2307

source https://www.nuget.org/api/v2/

nuget NETStandard.Library <= 1.6.0
nuget Microsoft.AspNetCore.Mvc.Core
Locked version resolution written to C:\PROJ\paket.test\paket.lock
1 minute, 8 seconds - ready.
source https://www.nuget.org/api/v2/

nuget xunit >= 2.3 prerelease
nuget FakeItEasy
nuget FluentAssertions
nuget Microsoft.NET.Test.Sdk
nuget xunit.extensibility.execution >= 2.3 prerelease
nuget xunit.runner.visualstudio >= 2.3 prerelease
nuget Microsoft.AspNetCore.Mvc.Core
nuget Amazon.Lambda.Core
nuget Amazon.Lambda.Serialization.Json
nuget Amazon.Lambda.APIGatewayEvents
nuget Microsoft.AspNetCore.Server.Kestrel
nuget Microsoft.Extensions.Configuration.EnvironmentVariables
nuget Microsoft.Extensions.Configuration.FileExtensions
nuget Microsoft.Extensions.Configuration.Json
nuget Microsoft.Extensions.Logging
nuget Microsoft.Extensions.Options.ConfigurationExtensions
nuget AWSSDK.S3
nuget AWSSDK.Extensions.NETCore.Setup
nuget Amazon.Lambda.Logging.AspNetCore
nuget Amazon.Lambda.AspNetCoreServer
nuget NETStandard.Library 1.6.0
Locked version resolution written to C:\PROJ\paket.test\paket.lock
1 minute, 39 seconds - ready.

With the min workaround

strategy: min
lowest_matching: true
Locked version resolution written to C:\PROJ\paket.test\paket.lock
1 minute, 49 seconds - ready.

So that one is actually slower now 😛

0reactions
matthidcommented, Apr 30, 2017

Just to note https://github.com/fsprojects/Paket/issues/2294#issuecomment-298084016 from @cloudRoutine is just a workaround for now. IMHO the resolver should be smart enough to be able to find something with default settings as well…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding NETStandard.Library as a dependency in ...
In general 1.6.0 was related at the same time as .NET Core 1.0 and so targets nuget packages from that time and 1.6.1...
Read more >
Unable to find package NETStandard.Library
Your package source in visual studio is on the Microsoft Visual Studio Offline Packages. You should Go to Package Manager Settings (Tools > ......
Read more >
.Net Standard project does not show available NuGet ...
Net Standard library project in the same solution shows: ... Profiler === Version: 1.6.0 Location: /Applications/Xamarin ...
Read more >
NETStandard.Library 1.6.0
This includes all of the APIs in the NETStandard.Platform package plus additional ... dotnet add package NETStandard.Library --version 1.6.0.
Read more >
NET Standard
However, if you want to share code between .NET Framework and any other .NET implementation, such as .NET Core, your library should target...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found