You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build and run the WinUI project. It builds and runs.
Build the WPF project. It fails to build.
Expected behavior
The WPF project should also build and run.
Actual behavior
As long as I do not have the using directive in my WPF C# code, nor any code using those definitions, the C# projection file does get generated under obj\Debug\net6.0-windows\Generated Files\CsWinRT. However as soon as I enter the using directive and rebuild, this file is no longer there.
Version Info
CsWinRT 2.0.7
net6.0-windows
The text was updated successfully, but these errors were encountered:
Looking at cswinrt.rsp (which is a file that contains the command line arguments), I can observe that as long as my C# code does not contain using winrtcomponent_cpp;, the rsp file contains
Describe the bug
I would like to use CsWinRT in WPF the same way I use it in a WinUI project, but it doesn't build.
To Reproduce
See my minimal repro at https://github.com/mmarczell-graphisoft/winrtbug
Expected behavior
The WPF project should also build and run.
Actual behavior
As long as I do not have the using directive in my WPF C# code, nor any code using those definitions, the C# projection file does get generated under
obj\Debug\net6.0-windows\Generated Files\CsWinRT
. However as soon as I enter the using directive and rebuild, this file is no longer there.Version Info
CsWinRT 2.0.7
net6.0-windows
The text was updated successfully, but these errors were encountered: