-
Hi, I couldn't find any discussion of the In PR 2229, along with a lot of code style changes, a "SixLabors.ImageSharp.props" file was added to the nuget package. If I understand this correctly, this file will add "implicit using (global using)"s for three ImageSharp namespaces to any project that directly consumes this nuget package. Because this includes types like "SixLabors.ImageSharp.Color", in our project this results in a lot of "CS0104: 'Color' is an ambiguous reference between 'XXX.Color' and 'SixLabors.ImageSharp.Color'". The only way to opt-out of this seems to either not use the nuget package, or to disable Implicit usings in our project completely? I can fix my project by fully qualifying my class names that are ambiguous, but I feel this may not be a positive change? And I am unsure if this is an intended change? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
as a workaround I would think you should theoretically be able to add <ItemGroup>
<Using Remove="SixLabors.ImageSharp" />
<Using Remove="SixLabors.ImageSharp.PixelFormats" />
<Using Remove="SixLabors.ImageSharp.Processing" />
</ItemGroup> |
Beta Was this translation helpful? Give feedback.
-
Yes. This is intentional, yes this is a positive change. If you’re using the library then more often than not |
Beta Was this translation helpful? Give feedback.
as a workaround I would think you should theoretically be able to add