kontent-ai / delivery-sdk-net

Kontent.ai Delivery .NET SDK
https://www.nuget.org/packages/Kontent.Ai.Delivery
MIT License
32 stars 42 forks source link

ImageTransformation - dependency issues #284

Closed petrsvihlik closed 3 years ago

petrsvihlik commented 3 years ago

Brief bug description

getting these errors

error CS0433: The type 'ImageUrlBuilder' exists in both 'Kentico.Kontent.ImageTransformation, Version=14.2.1.0, Culture=neutral, PublicKeyToken=null' and 'Kentico.Kontent.Urls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Repro steps

Stuff to fix

MiroKentico commented 3 years ago

Hi @petrsvihlik,

thanks for this report :-) We will discuss this with @Simply007.

Have a nice day Mirek

Simply007 commented 3 years ago

Steps to fix are OK - thx @petrsvihlik:

petrsvihlik commented 3 years ago

gladly

Sevitas commented 3 years ago

What do you think about the fix @petrsvihlik PR?

petrsvihlik commented 3 years ago

I guess this one is blocked by #292 right?

Simply007 commented 3 years ago

I guess this one is blocked by #292 right?

We have found a workaround for the releases (#294). But we wanted to walk through all namespaces and fix potential problems and include them into the new major version - #287.

Co currently it is being blocked by #287.

petrsvihlik commented 3 years ago

right...but I guess that should be pretty easy, right? I think even VS can adjust all namespaces in the whole solution with a single click and then you can just check the git changes to verify. or is there something more tricky?

Simply007 commented 3 years ago

right...but I guess that should be pretty easy, right? I think even VS can adjust all namespaces in the whole solution with a single click and then you can just check the git changes to verify. or is there something more tricky?

Yeap, it was just not at the top of our backlog. Do you have any estimate, you would like to have it fixed?

petrsvihlik commented 3 years ago

naah..I was just wondering. I might draft the PR myself if it'd help ya

Simply007 commented 3 years ago

naah..I was just wondering. I might draft the PR myself if it'd help ya

Thanks. I guess we are fine. We will finish the walkthrough and release another beta (as well as https://github.com/Kentico/kontent-aspnetcore) so that you can test it.

Simply007 commented 3 years ago

I guess @petrsvihlik, you are going to use the new version targeting .NET 6 right?

I have released 16.0.0-beta2 with unified namespaces, but I would release beta 3 targeting .NET 6 as well and then use this beta3 in the newly released version of Kentico.Kontent.AspNetCore - 0.12.0-beta1.

What do you think?

petrsvihlik commented 3 years ago

agreed and yes, I'm going to target net6. thx

Simply007 commented 3 years ago

Alright - following combination should work for .NET 6 without collision:

petrsvihlik commented 3 years ago

Kentico.Kontent.AspNetCore is not published https://www.nuget.org/packages/Kentico.Kontent.AspNetCore/

Simply007 commented 3 years ago

Kentico.Kontent.AspNetCore is not published https://www.nuget.org/packages/Kentico.Kontent.AspNetCore/

My bad - https://github.com/Kentico/kontent-aspnetcore/actions/runs/1453234533 -> releasing v 0.12.0-beta2

petrsvihlik commented 3 years ago

thank you!

this is another blocker and I would strongly advise against it - https://github.com/Kentico/kontent-delivery-sdk-net/pull/300#issuecomment-967316053

and if you insist on it (don't 😉), please release a new codegen :)

btw - if you really want to do some refactoring, this is a much better choice: https://github.com/Kentico/kontent-delivery-sdk-net/issues/249

Simply007 commented 3 years ago

OK, closing this issue - because the root cause was fixed, and let's continue discussion about a namespace unification in https://github.com/Kentico/kontent-delivery-sdk-net/pull/300#issuecomment-967316053