Answer
Ove
rf
low
Sign In With Discord
C#
help
Join
Root Question Message
gio735
9/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
9/9/2022
Did you add the NuGet package?
System.Diagnostics.EventLog
Klarth
9/9/2022
You may also need to change the target framework to
net6.0-windows
.
gio735
9/9/2022
I didn't know about that, ty I will try it
gio735
9/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
9/9/2022
How I figured it out was looking at it on
https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.eventlog?view=dotnet-plat-ext-6.0
Klarth
9/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
9/9/2022
so if its
Extension
it's always part of NuGet package?
Klarth
9/9/2022
AFAIK, yes. At least you should suspect it.
gio735
9/9/2022
got it, thank you
Contact
Frequently Asked Questions
Join The Discord
Bugs & Feature Requests
Terms & Privacy