Skip to content

Commit

Permalink
Version 5.2.0 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Jun 8, 2023
1 parent 09e30c9 commit 2d57aed
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
1 change: 1 addition & 0 deletions NLog.Windows.Forms.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
build.ps1 = build.ps1
README.md = README.md
EndProjectSection
EndProject
Global
Expand Down
18 changes: 10 additions & 8 deletions NLog.Windows.Forms/NLog.Windows.Forms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@
<RepositoryType>git</RepositoryType>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<PackageReleaseNotes>
- Updated to NLog 5.0.5 (@snakefoot)
- Replaced net5.0-windows with net6.0-windows (@304NotModified)
- Fix crash SelectionLength + support links on all platforms (@304NotModified)
- Changed to typed Layout-properties (@Fr33dan)
- Updated to NLog v5.2 (@snakefoot)
- Added LogManager.Setup() extension method RegisterWindowsForms() (@snakefoot)

Remember to register NLog.Windows.Forms in NLog.config

&lt;extensions&gt;
&lt;add assembly="NLog.Windows.Forms" /&gt;
&lt;/extensions&gt;
</PackageReleaseNotes>
&lt;extensions&gt;
&lt;add assembly="NLog.Windows.Forms" /&gt;
&lt;/extensions&gt;

Alternative register from code without reflection of assembly-types:

NLog.LogManager.Setup().RegisterWindowsForms();
</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ Install the [NLog.Windows.Forms](https://www.nuget.org/packages/NLog.Windows.For
</extensions>
```

To register from code without reflection of assembly-types:
```csharp
NLog.LogManager.Setup().RegisterWindowsForms();
```

## License
BSD
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 5.0.0.{build}
version: 5.2.0.{build}
image: Visual Studio 2022
clone_folder: c:\projects\nlog
configuration: Release
Expand All @@ -21,6 +21,6 @@ artifacts:
deploy:
- provider: NuGet
api_key:
secure: 5tuxbM+Ujp0ZtaDCGYET23qKr6bJWo/Vzxlf7uTbspaf8R1R7sIe1JqSDHZoK1gV
secure: e+0IpLU3V1eXUsWCRjKGuyyeuLQYfFpv6BAoIihFQryuYZsOWVvxUBvQOC0dOL2n
on:
branch: master
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# creates NuGet package at \artifacts
dotnet --version

$versionPrefix = "5.0.0" # Also update version for minor versions in appveyor.yml
$versionPrefix = "5.2.0" # Also update version for minor versions in appveyor.yml
$versionSuffix = ""
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
Expand Down

0 comments on commit 2d57aed

Please sign in to comment.