What I did now (to try out) make any indirect dependencies use a closing “]
” to limit the version. so now it resolved like this:
D: Package Microsoft.NETCore.App.Ref found in repository <NuGetRepository https://api.nuget.org/v3/index.json>
D: Available Versions of 'Microsoft.NETCore.App.Ref': 3.1.0, 3.0.1, 3.0.0, 3.0.0-rc1-19456-20, 3.0.0-preview9-19423-09, 3.0.0-preview8-28405-07, 3.0.0-preview7-27912-14, 3.0.0-preview6-27804-01, 3.0.0-preview5-27626-15, 3.0.0-preview4-27615-11, 3.0.0-preview3-27503-5.
D: Package Microsoft.NETCore.App.Ref:3.0.1 found in repository <NuGetRepository https://api.nuget.org/v3/index.json>.
D: Checking <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Checking <NuGetRepository https://api.nuget.org/v3/index.json>
D: Package Microsoft.ASPNETCore.App.Ref found in repository <NuGetRepository https://api.nuget.org/v3/index.json>
D: Available Versions of 'Microsoft.ASPNETCore.App.Ref': 3.1.2, 3.1.0, 3.0.1, 3.0.0, 3.0.0-preview5-19227-01, 3.0.0-preview4-19216-03, 3.0.0-preview3-19153-02.
D: Package Microsoft.ASPNETCore.App.Ref:3.0.1 found in repository <NuGetRepository https://api.nuget.org/v3/index.json>.
D: Checking <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Package Carter found in repository <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Available Versions of 'Carter': 3.11.0.
D: Package Carter version [5.1.0] could not be matched in repository <NuGetRepository file:///Users/mh/.nuget/packages/>.
D: Checking <NuGetRepository https://api.nuget.org/v3/index.json>
D: Package Carter found in repository <NuGetRepository https://api.nuget.org/v3/index.json>
D: Available Versions of 'Carter': 5.1.0, 5.0.0, 4.2.0, 4.1.0, 4.0.0, 3.11.0, 3.10.0, 3.9.0, 3.8.0, 3.7.0, 3.6.0, 3.5.0, 0.0.0-alpha.
D: Package Carter:5.1.0 found in repository <NuGetRepository https://api.nuget.org/v3/index.json>.
Adding dependency FluentValidation:8.5.1] from Carter:5.1.0.
D: Checking <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Package FluentValidation found in repository <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Available Versions of 'FluentValidation': 8.1.2.
D: Package FluentValidation version 8.5.1] could not be matched in repository <NuGetRepository file:///Users/mh/.nuget/packages/>.
D: Checking <NuGetRepository https://api.nuget.org/v3/index.json>
D: Package FluentValidation found in repository <NuGetRepository https://api.nuget.org/v3/index.json>
D: Available Versions of 'FluentValidation': 9.0.0-preview3, 9.0.0-preview2, 9.0.0-preview1, 8.6.2, 8.6.1, 8.6.0, 8.5.1, 8.5.0, 8.5.0-preview5, 8.5.0-preview4, 8.5.0-preview3, 8.5.0-preview2, 8.5.0-preview1, 8.4.0, 8.3.0, 8.2.3, 8.2.2, 8.2.1, 8.2.0, 8.1.3, 8.1.2, 8.1.1, 8.1.0, 8.1.0-preview2, 8.1.0-preview1, 8.0.101, 8.0.100, 8.0.0, 8.0.0-rc1, 8.0.0-preview4, 8.0.0-preview3, 8.0.0-preview2, 8.0.0-preview1, 7.6.105, 7.6.104, 7.6.103, 7.6.102, 7.6.101, 7.6.100, 7.6.0, 7.6.0-preview1, 7.5.2, 7.5.1, 7.5.0, 7.4.0, 7.3.4, 7.3.3, 7.3.2, 7.3.1, 7.3.0, 7.3.0-beta3, 7.3.0-beta2, 7.3.0-beta1, 7.2.1, 7.2.0, 7.2.0-beta3, 7.2.0-beta2, 7.2.0-beta1, 7.1.1, 7.1.0, 7.1.0-beta1, 7.0.3, 7.0.2, 7.0.1, 7.0.0, 7.0.0-beta3, 7.0.0-beta2, 7.0.0-beta1, 6.4.1, 6.4.1-beta1, 6.4.0, 6.4.0-rc4, 6.4.0-rc3, 6.4.0-rc2, 6.4.0-rc1, 6.4.0-beta9, 6.4.0-beta8, 6.4.0-beta7, 6.4.0-beta6, 6.4.0-beta5, 6.4.0-beta4, 6.4.0-beta3, 6.4.0-beta2, 6.4.0-beta10, 6.4.0-beta1, 6.3.4-alpha, 6.3.3-alpha, 6.2.1, 6.2.1-beta1, 6.2.0, 6.2.0-beta1, 6.1.0, 6.0.2, 6.0.1, 6.0.0, 5.6.2, 5.6.1, 5.6.0, 5.5.0, 5.4.0, 5.3.0, 5.2.0, 5.1.0, 5.0.0.1, 5.0.0, 4.0.0.1, 4.0.0, 3.4.6, 3.4.0, 3.3.1, 3.3.0, 3.2.0, 3.1.0, 3.0.0.1, 3.0.0, 2.0.0, 1.3.0.
D: Package FluentValidation:8.5.1 found in repository <NuGetRepository https://api.nuget.org/v3/index.json>.
Adding dependency System.ComponentModel.Annotations:4.4.1] from FluentValidation:8.5.1.
D: Checking <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Package System.ComponentModel.Annotations found in repository <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Available Versions of 'System.ComponentModel.Annotations': 4.4.1.
D: Package System.ComponentModel.Annotations:4.4.1 found in repository <NuGetRepository file:///Users/mh/.nuget/packages/>.
Adding dependency Microsoft.Extensions.DependencyModel:3.1.0] from Carter:5.1.0.
D: Checking <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Checking <NuGetRepository https://api.nuget.org/v3/index.json>
D: Package Microsoft.Extensions.DependencyModel found in repository <NuGetRepository https://api.nuget.org/v3/index.json>
D: Available Versions of 'Microsoft.Extensions.DependencyModel': 3.1.2, 3.1.1, 3.1.0, 3.0.3, 3.0.2, 3.0.1, 3.0.0, 3.0.0-preview6-27804-01, 3.0.0-preview5-27626-15, 3.0.0-preview4-27615-11, 3.0.0-preview3-27503-5, 3.0.0-preview-27324-5, 2.1.0, 2.1.0-rc1, 2.1.0-preview2-26406-04, 2.1.0-preview1-26216-03, 2.0.4, 2.0.3, 2.0.0, 2.0.0-preview2-25407-01, 2.0.0-preview1-002111, 1.1.9, 1.1.2, 1.1.1, 1.1.0, 1.1.0-preview1-001100, 1.0.500-preview2-1-003177, 1.0.3, 1.0.1-beta-000933, 1.0.0, 1.0.0-rc2-final, 1.0.0-rc2-002702, 0.0.1-alpha.
D: Package Microsoft.Extensions.DependencyModel:3.1.0 found in repository <NuGetRepository https://api.nuget.org/v3/index.json>.
Adding dependency System.Text.Json:4.7.0] from Microsoft.Extensions.DependencyModel:3.1.0.
D: Checking <NuGetRepository file:///Users/mh/.nuget/packages/>
D: Checking <NuGetRepository https://api.nuget.org/v3/index.json>
D: Package System.Text.Json found in repository <NuGetRepository https://api.nuget.org/v3/index.json>
D: Available Versions of 'System.Text.Json': 4.7.1, 4.7.0, 4.6.0, 2.0.0.11, 2.0.0.10, 2.0.0.9, 2.0.0.8, 2.0.0.7, 2.0.0.6, 2.0.0.5, 2.0.0.4, 2.0.0.3, 2.0.0.2, 2.0.0.1, 2.0.0, 1.9.9.9, 1.9.9.8, 1.9.9.7, 1.9.9.6, 1.9.9.5, 1.9.9.4, 1.9.9.3, 1.9.9.2, 1.9.9.1, 1.9.9, 1.9.8, 1.9.7, 1.9.6, 1.9.5, 1.9.4, 1.9.3, 1.9.2, 1.9.1, 1.9.0, 1.8.0, 1.7.0, 1.6.0, 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, 1.0.0.
D: Package System.Text.Json:4.7.0 found in repository <NuGetRepository https://api.nuget.org/v3/index.json>.
Adding dependency Microsoft.OpenApi:1.1.4] from Carter:5.1.0.
I have no idea if this is the proper fix or will break other stuff, but I’ll out it in a build so you can test it.
If it’s not, I propose introducing a new internal delimiter, say “}
”, which I would encode to be softer than “]
” and mean "don’t use a higher version unless necessary.