Replies: 6 comments 8 replies
-
Yes. What errors do you see? |
Beta Was this translation helpful? Give feedback.
-
@AArnott I installed the package via command line. That goes fine and you can see it in the packages section of the solution. However, when you try to add the using statement it is just red and can't find "Windows.CsWin32". If I type it by hand there is not CsWin32 option available under "Windows". If I download some app that are .Net5 and reference CsWin32 they seem to work just fine. Adding the using statement is as far as I can get. Thanks for you help, |
Beta Was this translation helpful? Give feedback.
-
@AArnott I added a sample repo to show the issue. If you try to install CsWin32 via graphical Nuget you will not find it available for WinUI3 .Net6 apps. You can only install it via command line. After you look at it if you want me to create an issue for it I can. I did not do one initially because I thought it may be on my side. |
Beta Was this translation helpful? Give feedback.
-
Here is a picture showing the package installed and the using not working. |
Beta Was this translation helpful? Give feedback.
-
@AArnott You are correct that was the issue. I am guessing source is being generated behind the scenes as I am learning. It is just odd to go forward even though the using was red. As I first felt it was me and not this library. Thank you for your help on this! |
Beta Was this translation helpful? Give feedback.
-
I just ran into this same issue, Intellisense does not honor the using/namespace. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use CSWin32 in a .Net6 WinUI3 project in VS2022. I installed the v0.1.635-beta without issue. However, When I try to add using Windows.Win32; I am getting errors.
Is CsWin32 supposed to work in my scenario?
Beta Was this translation helpful? Give feedback.
All reactions