VS 2022 The type or namespace name 'Windows' could not be found #885
-
I saw the previous discussion that was having this issue when just trying to get started and as far as I can tell I'm matching the recommended solution, but I'm still getting the error "The type or namespace name 'Windows' could not be found".
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Have you created a NativeMethods.txt file with |
Beta Was this translation helpful? Give feedback.
-
Wow that fixed it. That's pretty interesting to me how the presence or lack of this text file can affect the compilation. I guess I have some learning to do about the source generation workflow. Thank you for answering my dumb question! |
Beta Was this translation helpful? Give feedback.
Have you created a NativeMethods.txt file with
CreateFile
in it?