CubeKit icon indicating copy to clipboard operation
CubeKit copied to clipboard

Bug: Tooling P/Invoke declarations conflicts with source generations in end-user projects

Open Lamparter opened this issue 9 months ago • 1 comments

Related: https://github.com/Lamparter/Win32/issues/2 Related: https://github.com/microsoft/CsWin32/issues/1312

Description

Image

The PInvoke class from Riverside.Tooling.CsWin32 will conflict with the PInvoke class in the end user project.

Steps to reproduce

  1. Open a project
  2. Add any Cubekit project as a dependency
  3. Use CsWin32 in that project
  4. See an error when using PInvoke

Version

2.0.0-rc3

Lamparter avatar Mar 13 '25 18:03 Lamparter

I think it's possible to customise the namespace that the generations are included in, that's probably what should be done here

Lamparter avatar Mar 14 '25 07:03 Lamparter