Skip to content

Commit 2d57aed

Browse files
authored
Version 5.2.0 (#142)
1 parent 09e30c9 commit 2d57aed

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

NLog.Windows.Forms.sln

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2121
ProjectSection(SolutionItems) = preProject
2222
appveyor.yml = appveyor.yml
2323
build.ps1 = build.ps1
24+
README.md = README.md
2425
EndProjectSection
2526
EndProject
2627
Global

NLog.Windows.Forms/NLog.Windows.Forms.csproj

+10-8
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@
2525
<RepositoryType>git</RepositoryType>
2626
<AssemblyVersion>5.0.0.0</AssemblyVersion>
2727
<PackageReleaseNotes>
28-
- Updated to NLog 5.0.5 (@snakefoot)
29-
- Replaced net5.0-windows with net6.0-windows (@304NotModified)
30-
- Fix crash SelectionLength + support links on all platforms (@304NotModified)
31-
- Changed to typed Layout-properties (@Fr33dan)
28+
- Updated to NLog v5.2 (@snakefoot)
29+
- Added LogManager.Setup() extension method RegisterWindowsForms() (@snakefoot)
3230

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

35-
&lt;extensions&gt;
36-
&lt;add assembly="NLog.Windows.Forms" /&gt;
37-
&lt;/extensions&gt;
38-
</PackageReleaseNotes>
33+
&lt;extensions&gt;
34+
&lt;add assembly="NLog.Windows.Forms" /&gt;
35+
&lt;/extensions&gt;
36+
37+
Alternative register from code without reflection of assembly-types:
38+
39+
NLog.LogManager.Setup().RegisterWindowsForms();
40+
</PackageReleaseNotes>
3941
</PropertyGroup>
4042

4143
<ItemGroup>

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ Install the [NLog.Windows.Forms](https://www.nuget.org/packages/NLog.Windows.For
2525
</extensions>
2626
```
2727

28+
To register from code without reflection of assembly-types:
29+
```csharp
30+
NLog.LogManager.Setup().RegisterWindowsForms();
31+
```
32+
2833
## License
2934
BSD

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 5.0.0.{build}
1+
version: 5.2.0.{build}
22
image: Visual Studio 2022
33
clone_folder: c:\projects\nlog
44
configuration: Release
@@ -21,6 +21,6 @@ artifacts:
2121
deploy:
2222
- provider: NuGet
2323
api_key:
24-
secure: 5tuxbM+Ujp0ZtaDCGYET23qKr6bJWo/Vzxlf7uTbspaf8R1R7sIe1JqSDHZoK1gV
24+
secure: e+0IpLU3V1eXUsWCRjKGuyyeuLQYfFpv6BAoIihFQryuYZsOWVvxUBvQOC0dOL2n
2525
on:
2626
branch: master

build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# creates NuGet package at \artifacts
33
dotnet --version
44

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

0 commit comments

Comments
 (0)