Small issue about Visual Studio graying out things
Hello, I have this code, since I updated visual studio it marks the methods which are not marked with a greish look? I don't like it, and those methods are actually used when events or commands are triggered, anyone knows how to fix?

30 Replies
Greyish means unused
Most of the time - Unless some extension is in the picture
thats all my class but my code is used when those events and commands are triggered
it wasnt like this before updating vs
Did you try restarting VS?
yes
Try to disable all the extensions.
I don't use VS so I'm not sure what had changed. But at least in JetBrains Rider greyed out code usually means unused.
now i broke vs entirely...

i dont have any custom extensions, i ll add them back i hope it ll be back okay
Try to repair VS
Install might've corrupted
now my serverside is gone? wtf microsoft...

i will
repairing worked ty
nah it didnt...
it s again
do i have alternatives for vs its annoying me
JetBrains Rider
It became free for non-commercial use now.
Rider is standard and is xplat. It is what I and many others here use.
However it used to be only paid. But you need to pay for commercial use
And VSCode but it sucks in my opinion, it's not an IDE and requires a lot of manual work
Also Rider makes a lot of coding suggestions
i want to use it for my gta server which i ll probably monetize... is that alright?
Is that allowed?
yes thats what i m asking
I mean in general by Rockstar ToS
FiveM / RageMP technically breaks the rules by modifying the game files
Earning money off of it on the other hand .. That sounds illegal.
well a lot of servers are doing it so..
Doesn't matter if a lot of them do it.
i m asking if its okay to do this with my project on jetbrains rider
Legally speaking, you cannot earn any money whatsoever off of the projects you've made with it
hmm sounds like i shouldnt with vs community neither, right?
If you do, you must buy the commercial license which is around $15 / month or $200 / yr
VS Community allows commercial use for any entity with a revenue under $1M / yr
(or $100K) I don't remember
how do they check that
JetBrains Rider doesn't have that license. It's free non-commercial or paid commercial use
No idea, I'm sure they have their tricks
recently i found out that ms sued a small company here in my city because they were using pirated Windows in their entire administrative department
spying on our code? 😦
no. finding out something is using ms technology ins't hard at all
the hard is to make sure what is using it is making more than $1m/yr
They cannot decompile the code, that'd probably be theft. And you could probably sue them back.
But in this case .. You'd get absolutely toasted in court if you earned money off of someone else's IP
but sincerely
if your company is making $1m/yr, you could afford at least one subscription of the visual studio professional
Visual studio detecting code being used isn't perfect. It's usually pretty good but unless you have a direct reference from something considered an entry point it's not in use. Rider will have the same issue.