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

ImageTransformation - dependency issues #284

Closed
petrsvihlik opened this issue Oct 14, 2021 · 17 comments
Closed

ImageTransformation - dependency issues #284

petrsvihlik opened this issue Oct 14, 2021 · 17 comments
Assignees
Milestone

Comments

@petrsvihlik
Copy link
Contributor

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

  • reference both the latest version of the:
    • Kentico.Kontent.AspNetCore
    • Kentico.Kontent.Delivery
  • try to use ImageUrlBuilder or ImageFormat

Stuff to fix

@MiroKentico
Copy link
Contributor

Hi @petrsvihlik,

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

Have a nice day
Mirek

@Simply007
Copy link
Contributor

Simply007 commented Oct 18, 2021

Steps to fix are OK - thx @petrsvihlik:

  • Rename ~/Kentico.Kontent.ImageTransformation folder to ~/Kentico.Kontent.Urls and release new minor version
  • Upgrade https://github.com/Kentico/kontent-aspnetcore with newly released version 0.12.0 - you can release beta first to test the output

@petrsvihlik
Copy link
Contributor Author

gladly

@Sevitas
Copy link
Contributor

Sevitas commented Oct 21, 2021

What do you think about the fix @petrsvihlik PR?

@Simply007 Simply007 added this to the v16 milestone Nov 4, 2021
@petrsvihlik
Copy link
Contributor Author

I guess this one is blocked by #292 right?

@Simply007
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor

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
Copy link
Contributor Author

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

@Simply007
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor Author

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

@Simply007
Copy link
Contributor

Simply007 commented Nov 12, 2021

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

  • 16.0.0-beta2 - Kentico.Kontent.Delivery
  • 0.12.0-beta1 0.12.0-beta2 - Kentico.Kontent.AspNetCore

@Simply007 Simply007 removed the blocked label Nov 12, 2021
@petrsvihlik
Copy link
Contributor Author

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

@Simply007
Copy link
Contributor

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
Copy link
Contributor Author

petrsvihlik commented Nov 12, 2021

thank you!

this is another blocker and I would strongly advise against it - #300 (comment)

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: #249

@Simply007
Copy link
Contributor

OK, closing this issue - because the root cause was fixed, and let's continue discussion about a namespace unification in #300 (comment)

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

Successfully merging a pull request may close this issue.

4 participants