Info
| Version: | 6.0.5 | 
| Author(s): | Kim Christensen, Julian Verdurmen | 
| Last Update: | Thursday, October 9, 2025 | 
| .NET Fiddle: | Create the first Fiddle | 
| Project Url: | https://nlog-project.org/ | 
| NuGet Url: | https://www.nuget.org/packages/NLog.Schema | 
Install
Install-Package NLog.Schema
                        dotnet add package NLog.Schema
                        paket add NLog.Schema
                        
                                NLog.Schema Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
                                61 packages depend on this package.
                        
                    Tags
 
                
The nuget-package will try to copy the XSD-file into the project-folder, so one can reference NLog.xsd from NLog.config:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd">
</nlog>
If this nuget-package fails to place the XSD-file into the project-folder then one can download latest here: https://nlog-project.org/schemas/NLog.xsd
Alternative enable the Visual Studio option "Automatically download DTDs and schemas" and specify the complete URL:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd http://www.nlog-project.org/schemas/NLog.xsd">
</nlog>.