✅ I'm on windows and a warning is occurring saying I need to be on windows.
I'm just learning how to code so don't be to harsh.
6 Replies
It's not telling you you need to be on Windows
It tells you, that this particular piece of code will work only on Windows
So if you wanted to build your application for Linux or MacOS, it won't work there
oh...
ok
Thanks for the help!
Anytime 👌
I might need a lot more later on lol
So here's why it happens
you target net7 or net6 or something
which are cross-platform on their own
BUT you may think your code is x-plat too
and it's not, because you used code available only on Windows
to get rid of the wanrings you can explicitly target net7-windows
that way nobody's dellusioned that the code may work on other platform
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.