.net 6 WebApi Microsoft.Extensions.Logging.LogLevel is now available in any context?

Viewed 19

In .net 6 'Microsoft.Extensions.Logging.LogLevel' is now avalialble in all classes without adding 'using' with namespace in file?

I have my own class LogLevel and I didn't have any problems in .net 5 or after migrated to .net 6. Now I have new app in .net 6 and I have error:

Severity Code Description Project File Line Suppression State Error CS0104 'LogLevel' is an ambiguous reference between 'Common.LogLevel' and 'Microsoft.Extensions.Logging.LogLevel'

0 Answers
Related