Replies: 1 comment
-
It is documented. The readme introduces it and if you use it as it guides you, then a decent JSON editor (including VS) will use the
CsWin32 is implemented as a roslyn Source Generator and has no say in how the generated files are included in the project. This is a feature of the C# compiler and its integration with VS and msbuild. If this isn't working for you, my guess is there's something not configured right in your setup somehow or you're hitting a bug. If you can include a build log (with |
Beta Was this translation helpful? Give feedback.
-
Actual behavior
The generated files are not included in the project and are therefore unusable to the application code.
Expected behavior
Like any other generator I expect the generated output to automatically be included as code in the project.
Additionally, I'd expect to be able to set the full namespace of the generated content. (It seems quite limited at the moment and always ends up including a nested 'PInvoke' namesapce I don't want.
Repro steps
NativeMethods.txt
content:NativeMethods.json
content (if present):[NOTE NativeMethods.json is, at present an undocumented thing... WHat is it? Better docs would help a lOT, one GIF doesn't tell a clear story]
Context
0.1.560-beta
]net5.0-windows10.0.19041.0
]Beta Was this translation helpful? Give feedback.
All reactions