So my computer died and I decided to just load the code from the resources file. I think my code and yours was pretty much the same. But I get this mess of red and VS won't accept any keywords. I know it was installed right and I could load other files just fine, just not yours for some reason.
I initially came here to post asking how to fix this, but somehow having VS22 active when I went online seemed to have fixed it. The last few days nothing would work, then as I start writing my letter on GitHub, all of the red disappears like magic.
So you might want to make a note if someone in the future complains about this problem, or maybe even note in the next version that if VS doesn't seem to like their program, or your code from the master resources, maybe just going online with the program open in studio might fix it.
Thank you so much for pointing this out! We're working on the 5th edition now (targeting November 2023, which is when the next version of C# will probably be released). I'll leave this issue open as a reminder.
So my computer died and I decided to just load the code from the resources file. I think my code and yours was pretty much the same. But I get this mess of red and VS won't accept any keywords. I know it was installed right and I could load other files just fine, just not yours for some reason.
I initially came here to post asking how to fix this, but somehow having VS22 active when I went online seemed to have fixed it. The last few days nothing would work, then as I start writing my letter on GitHub, all of the red disappears like magic.
So you might want to make a note if someone in the future complains about this problem, or maybe even note in the next version that if VS doesn't seem to like their program, or your code from the master resources, maybe just going online with the program open in studio might fix it.