jedipi / NLog.Targets.MicrosoftTeams

A NLog target that writes to Microsoft Teams Channel via O365 Webhook Connector.
https://jedipi.github.io/NLog.Targets.MicrosoftTeams/
MIT License
12 stars 5 forks source link

NLog 5.0 Breaking changes #6

Closed gpratt5 closed 2 years ago

gpratt5 commented 2 years ago

This target fails when NLog initializes it, can't find the target of MicrosoftTeams

snakefoot commented 2 years ago

Maybe caused by this breaking change: NLog Extensions assemblies will not load automatically

Have you tried using:

<nlog>
  <extensions>
    <add assembly="NLog.Targets.MicrosoftTeams" /> 
  </extensions>
</nlog>

Or the new NLog 5.0 style (Including extension-assembly in type-alias):

<target xsi:type="MicrosoftTeams, NLog.Targets.MicrosoftTeams" 
         name="msTeams" 
jedipi commented 2 years ago

@snakefoot is correct. both solutions works.

gpratt5 commented 2 years ago

Closed with solution provided.