I was working on the "TraceSource Class" example provided by Microsoft at https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.tracesource?view=net-6.0
When I create a standard .NET applicaion, the project works fine, however, when I create a .net Core application, the sample does not work! It compiles but crashes at some point.
I was thinking the reason is about how these types of projects treat the config files. Because I think the standrad .NET considered the config files, but .NET Core did not automatically applied the configurations.
I would be thankful if anyone can help me with this issue.
I tried
and
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.tracesource?view=net-6.0