SD.Tools.Algorithmia 1.4.0 nuget

Posts   
 
    
Findev
User
Posts: 103
Joined: 08-Dec-2014
# Posted on: 24-Sep-2019 17:08:08   

Hi,

trying to update 1.3.6 to 1.4.0 and getting:


Unable to resolve dependencies. 'SD.Tools.Algorithmia 1.4.0' is not compatible with 'SD.Tools.OrmProfiler.Interceptor.NetFull 2.0.0 constraint: SD.Tools.Algorithmia (>= 1.3.6 && < 1.4.0)'

thank you!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39570
Joined: 17-Aug-2003
# Posted on: 24-Sep-2019 17:48:36   

you updated algorithmia independently of the interceptor?

Or do you use algorithmia in the project as well? As adding the interceptor package will pull the right algorithmia version (it doesn't use 1.4 functionality, which is basically lock synchronization)

So if you remove the algorithmia package and the interceptor package, then add the interceptor package, it should pull the right algorithmia package. If not, let us know.

Frans Bouma | Lead developer LLBLGen Pro
Findev
User
Posts: 103
Joined: 08-Dec-2014
# Posted on: 24-Sep-2019 18:07:04   

Not using it explicitly. I think I had it for years, occasionally updating it. Guess from the era of the previous interceptor...? The 1.4.0 nuget has been hanging as an "update available" for quite some time and I generally tend to keep my packages up to date. Thought maybe it was an oversight.

I'd suspect if I remove the interceptor and algorithmia, then install interceptor it will pull algorithmia 1.3.6, but then algorithmia will be again in the "update available" list or?

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 24-Sep-2019 19:01:23   

Please give it a try, and tell us if you get the update message back.

Findev
User
Posts: 103
Joined: 08-Dec-2014
# Posted on: 24-Sep-2019 20:14:40   

Walaa wrote:

Please give it a try, and tell us if you get the update message back.

Removed interceptor from several projects, then algorithmia, "Saved all" -> Build -> Build failed -> Install interceptor -> Build -> Success -> Refresh nuget view -> algorithmia is in the update view.

To confirm this: VS 2019 -> New console project targeting 4.7.2 -> Nuget: add interceptor (SD.Tools.OrmProfiler.Interceptor.NetFull) 2.0.0 -> 3 are nugets installed, algorithmia being 1.3.6. "Updates" view is suggesting to update it to 1.4.0

Thank you!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39570
Joined: 17-Aug-2003
# Posted on: 25-Sep-2019 09:15:24   

I think the upper limit on 1.4 is the problem, combined with the fact that nuget apparently can't understand that if you indirectly reference assembly A you shouldn't be offered an update as it's not directly referenced by you. This info isn't in the csproj however so all they have is the version of the algorithmia reference.

We'll change the upper limit to 1.99 so the issue should go away. We'll push a new interceptor package later today to fix this.

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39570
Joined: 17-Aug-2003
# Posted on: 25-Sep-2019 09:58:19   

We pushed new updates for the interceptor package (2.0.2) which reference 1.99 as upper limit for algorithmia. This should solve your problem.

Frans Bouma | Lead developer LLBLGen Pro
Findev
User
Posts: 103
Joined: 08-Dec-2014
# Posted on: 25-Sep-2019 11:03:00   

Thank you!