Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.2.0 #142

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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