C#
C#

help

Root Question Message

gio735
gio7359/9/2022
System.Diagnostics.EventLog [Answered]

For some reason it's not appearing either with name or full name, I'm using .NET6 console app
Klarth
Klarth9/9/2022
Did you add the NuGet package? System.Diagnostics.EventLog
Klarth
Klarth9/9/2022
You may also need to change the target framework to net6.0-windows.
gio735
gio7359/9/2022
I didn't know about that, ty I will try it
gio735
gio7359/9/2022
yes it worked, tysm. VS didn't suggest NuGet package and couldn't find about it in MCS docs either so were a bit confused
Klarth
Klarth9/9/2022
If it's part of the Platform Extensions, you get it via NuGet. Usually it's named the same as the "Assembly" up top.
gio735
gio7359/9/2022
so if its Extension it's always part of NuGet package?
Klarth
Klarth9/9/2022
AFAIK, yes. At least you should suspect it.
gio735
gio7359/9/2022
got it, thank you
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy