Visual Studio treating resources.resx as a c# file.
Visual Studio treating resources.resx as a c# file.
So I was trying to add an image to resources. I rebuild, and suddenly over 370 errors.
I have no clue what happened. Please tell me what I did wrong.
5 Replies
can you check in the properties of the file that build action is resource?
also is the project versioned? the reason why the file is treated differently should be visible in a diff
There was none
i just deleted the project and rebuilt it from scratch 👍
best solution
This is why you should use version control
if anything happens you can just go back to previous commit
or you can check what went wrong and/or discard the recent changes
yeah ik
i have it set up on my other projects, but this is a joke one for a friend
In what way?