Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paket generating package version outside of dependency constraint #2976

Open
pshrosbree opened this issue Jan 10, 2018 · 11 comments
Open

Paket generating package version outside of dependency constraint #2976

pshrosbree opened this issue Jan 10, 2018 · 11 comments

Comments

@pshrosbree
Copy link

pshrosbree commented Jan 10, 2018

Description

When executing msbuild /t:Restore I get the the following error:

C:\src\appcenter.petshr\analytics-eventhubreader\src\svc\EventHubReader.Watchdog\EventHubReader.Watchdog.csproj : error NU1608: Detected package version outside of dependency constraint: Microsoft.Data.Services.Client 5.8.2 requires Microsoft.Data.OData (= 5.8.2) but version Microsoft.Data.OData 5.8.3 was resolved. [C:\src\appcenter.petshr\analytics-eventhubreader\analytics-eventhubreader.sln]

But Paket seems to resolving Microsoft.Data.Services.Client 5.8.3

λ  .\.paket\paket.exe why Microsoft.Data.Services.Client --details
Paket version 5.129.2
NuGet Microsoft.Data.Services.Client - 5.8.3 is a transitive dependency.
It is part of following dependency chains:

-> WindowsAzure.Storage - 8.7
  -> Microsoft.Data.Services.Client - 5.8.3 - (>= 5.8.2) (|| (== net461) (&& (== netstandard2.0) (>= net45)))
λ  .\.paket\paket.exe why Microsoft.Data.OData --details
Paket version 5.129.2
NuGet Microsoft.Data.OData - 5.8.3 is a transitive dependency.
It is part of following dependency chains:

-> WindowsAzure.Storage - 8.7
  -> Microsoft.Data.OData - 5.8.3 - (>= 5.8.2)

-> WindowsAzure.Storage - 8.7
  -> Microsoft.Data.Services.Client - 5.8.3
    -> Microsoft.Data.OData - 5.8.3 - (5.8.3)

Nothing I can see is resolving Microsoft.Data.OData 5.8.2.

What is going on here?

paket.dependencies contains this:

framework: net461, netstandard2.0

source https://api.nuget.org/v3/index.json
source https://mseng.pkgs.visualstudio.com/_packaging/Analytics/nuget/v3/index.json

nuget AMQPNetLite
nuget App.Metrics.Extensions.Reporting.InfluxDB
nuget App.Metrics.Formatters.InfluxDB
nuget Autofac.Extensions.DependencyInjection
nuget Autofac.ServiceFabric
nuget AutoFixture.AutoNSubstitute
nuget AutoFixture.Xunit2
nuget Bond.Compiler.CSharp
clitool dotnet-xunit
nuget FluentAssertions
nuget Humanizer.Core
nuget JetBrains.Annotations
nuget LanguageExt.Core
nuget MathNet.Numerics.Signed
nuget Microsoft.Azure.KeyVault
nuget Microsoft.Azure.Management.Compute
nuget Microsoft.Azure.Management.Dns >= 2.0.0-preview
nuget Microsoft.Azure.Management.EventHub
nuget Microsoft.Azure.Management.ResourceManager >= 1.6.0-preview
nuget Microsoft.Azure.Management.Scheduler
nuget Microsoft.Azure.Management.ServiceBus
nuget Microsoft.Azure.Management.ServiceFabric >= 1.0.1-preview
nuget Microsoft.Azure.Management.Sql >= 1.10.0-preview
nuget Microsoft.Azure.Management.Storage >= 7.1.0-preview
nuget Microsoft.Azure.Management.StreamAnalytics
nuget Microsoft.Azure.Management.TrafficManager >= 2.3.0-preview
nuget Microsoft.Azure.Management.WebSites >= 1.7.1-preview
nuget Microsoft.Azure.ServiceBus
nuget Microsoft.Cloud.InstrumentationFramework == 3.0.6.43-preview
nuget Microsoft.Hadoop.Avro2
nuget Microsoft.IdentityModel.Clients.ActiveDirectory
nuget Microsoft.IO.RecyclableMemoryStream
nuget Microsoft.NET.Test.Sdk
nuget Microsoft.Reactive.Testing
nuget Microsoft.VisualStudio.Azure.Fabric.MSBuild 1.6.3 version_in_path: true
nuget Nerdbank.GitVersioning
nuget Polly
nuget Serilog.Extensions.Logging
nuget Serilog.Sinks.Seq
nuget System.Interactive.Async.Providers
nuget System.Interactive.Providers
nuget System.Reactive.Providers
nuget System.Threading.Tasks.Dataflow
nuget WindowsAzure.Storage
nuget xunit
nuget xunit.runner.visualstudio version_in_path: true

Repro steps

Please provide the steps required to reproduce the problem

  1. Step A

  2. Step B

If possible then please create a git repository with a repro sample or attach a zip to the issue.

Expected behavior

Please provide a description of the behavior you expect.

Actual behavior

Please provide a description of the actual behavior you observe.

Known workarounds

Please provide a description of any known workarounds.

@pshrosbree pshrosbree changed the title Pakket generating package version outside of dependency constraint Paket generating package version outside of dependency constraint Jan 10, 2018
@forki
Copy link
Member

forki commented Jan 11, 2018 via email

@pshrosbree
Copy link
Author

pshrosbree commented Jan 12, 2018

@forki I have attached a repro that output the following from msbuild /t:Restore:

"C:\src\appcenter.petshr\analytics-eventhubreader\analytics-eventhubreader.sln" (Restore target) (1) ->
(Restore target) ->
  C:\src\appcenter.petshr\analytics-eventhubreader\src\svc\EventHubReader\EventHubReader.csproj : error NU1608: Detected package version outside of dependency constraint: Microsoft.Data.Services.Client 5.8.2 requires Microsoft.Data.OData (= 5.8.2) but version Microsoft.Data.OData 5.8.3 was resolved. [C:\src\appcenter.petshr\analytics-eventhubreader\analytics-eventhubrea
der.sln]
  C:\src\appcenter.petshr\analytics-eventhubreader\src\svc\EventHubReader.Watchdog\EventHubReader.Watchdog.csproj : error NU1608: Detected package version outside of dependency constraint: Microsoft.Data.Services.Client 5.8.2 requires Microsoft.Data.OData (= 5.8.2) but version Microsoft.Data.OData 5.8.3 was resolved. [C:\src\appcenter.petshr\analytics-eventhubreader\ana
lytics-eventhubreader.sln]
  C:\src\appcenter.petshr\analytics-eventhubreader\src\svc\EventHubReader.Factory\EventHubReader.Factory.csproj : error NU1608: Detected package version outside of dependency constraint: Microsoft.Data.Services.Client 5.8.2 requires Microsoft.Data.OData (= 5.8.2) but version Microsoft.Data.OData 5.8.3 was resolved. [C:\src\appcenter.petshr\analytics-eventhubreader\analy
tics-eventhubreader.sln]

Note, that this contains a .sfproj, which I edited to include Paket.Restore.targets, but you still need to download packages before you execute restore, otherwise the restore on the .sfproj fails.

analytics-eventhubreader.zip

@forki
Copy link
Member

forki commented Jan 12, 2018

this thing is HUUUUGE - It will take a long time for me to analyze that!?
Can you please try to find a minimal repro?

@pshrosbree
Copy link
Author

Fair enough. I'll trim it, but it may have to wait until end of day.

@pshrosbree
Copy link
Author

@forki I have attached a smaller repro

analytics-eventhubreader.zip

@forki
Copy link
Member

forki commented Jan 18, 2018

wow I have seriously no idea where nuget is drawing Microsoft.Data.Services.Client 5.8.2 from

@forki
Copy link
Member

forki commented Jan 18, 2018

BUT: if you add Microsoft.Data.Services.Client to paket.references in EventHubReader.Factory and AppCenter.EventHubs it works as workaround

@forki
Copy link
Member

forki commented Jan 18, 2018

I think this is actually a bug in dotnet cli - but need to investigate further

@pshrosbree
Copy link
Author

Thanks @forki . I have been using that workaround. I'd be interested to know if you find anything.

@forki
Copy link
Member

forki commented Jan 18, 2018 via email

@forki
Copy link
Member

forki commented Feb 14, 2018

@pshrosbree I finally found time to report it: NuGet/Home#6563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants