Closed JakobFerdinand closed 3 years ago
This may be related to #11
Oh thank you! Following you discussion to microsoft/CsWin32#7 guided me to the solution.
It´t the same problem with the temp
project files during build and I have to add the following property in my project:
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
Glad that this resolved your issue! I decided to pin #11 so that it is easier to discover in the future.
I also updated the README with a reference to the issue and with the solution for WPF users. Thanks @JakobFerdinand for raising the issue, that reminded me that I should update the README with this info.
When using the library in a WPF environment it´s not possible to add a reference to the included types. I found that problem with my own library and was hoping, that you solved it somehow but I can recreate the issue with your project.
I created a sample project to recreate the issue. The branch nullable shows the problem with your library.
Its a simple console application that also includes a WPF
User Control
.When compiling the code that build error accours:
If you delete the usercontrol the error is gone.