Skip to content

Commit a8a2f69

Browse files
authored
Version 5.0.0 (#131)
* Revert move files and change namespaces
1 parent cfd716c commit a8a2f69

15 files changed

+27
-26
lines changed

NLog.Windows.Forms.Tests/RichTextBoxTargetTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
using System.Text;
44
using System.Windows.Forms;
55
using NLog.Config;
6-
using NLog.Targets;
76
using Xunit;
8-
using System.Text.RegularExpressions;
97
using System;
108
using System.Threading.Tasks;
119
using System.Threading;
12-
using NLog.Windows.Forms.Targets;
1310

1411
namespace NLog.Windows.Forms.Tests
1512
{

NLog.Windows.Forms.Tests/ToolStripItemTargetTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Text;
66
using System.Threading.Tasks;
77
using System.Windows.Forms;
8-
using NLog.Windows.Forms.Targets;
98
using Xunit;
109

1110
namespace NLog.Windows.Forms.Tests

NLog.Windows.Forms/Targets/FormControlTarget.cs renamed to NLog.Windows.Forms/FormControlTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using NLog.Layouts;
66
using NLog.Targets;
77

8-
namespace NLog.Windows.Forms.Targets
8+
namespace NLog.Windows.Forms
99
{
1010
/// <summary>
1111
/// Logs text to Windows.Forms.Control.Text property control of specified Name.

NLog.Windows.Forms/Targets/Helpers/FormHelper.cs renamed to NLog.Windows.Forms/FormHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Runtime.InteropServices;
44
using System.Windows.Forms;
55

6-
namespace NLog.Windows.Forms.Targets
6+
namespace NLog.Windows.Forms
77
{
88
/// <summary>
99
/// Form helper methods.

NLog.Windows.Forms/Targets/MessageBoxTarget.cs renamed to NLog.Windows.Forms/MessageBoxTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using NLog.Layouts;
77
using NLog.Targets;
88

9-
namespace NLog.Windows.Forms.Targets
9+
namespace NLog.Windows.Forms
1010
{
1111
/// <summary>
1212
/// Pops up log messages as message boxes.

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,38 @@
2323
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
2424
<RepositoryUrl>https://github.com/NLog/NLog.Windows.Forms.git</RepositoryUrl>
2525
<RepositoryType>git</RepositoryType>
26-
<AssemblyVersion>4.0.0.0</AssemblyVersion>
27-
26+
<AssemblyVersion>5.0.0.0</AssemblyVersion>
2827
<PackageReleaseNotes>
28+
- Updated to NLog 5.0.2 (@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)
32+
33+
Remember to register NLog.Windows.Forms in NLog.config
34+
35+
&lt;extensions&gt;
36+
&lt;add assembly="NLog.Windows.Forms" /&gt;
37+
&lt;/extensions&gt;
2938
</PackageReleaseNotes>
3039
</PropertyGroup>
3140

32-
<ItemGroup>
33-
<None Remove="NLog.Windows.Forms.csproj.DotSettings" />
34-
</ItemGroup>
35-
3641
<ItemGroup>
3742
<PackageReference Include="NLog" Version="5.0.2" />
3843
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
3944
</ItemGroup>
45+
4046
<ItemGroup Condition=" '$(TargetFramework)' == 'net35'">
4147
<Reference Include="System.Windows.Forms" />
4248
<Reference Include="System.Data.DataSetExtensions" />
4349
</ItemGroup>
50+
4451
<ItemGroup>
4552
<EmbeddedResource Include="Resources\NLog.ico" />
53+
<None Include="NLog.snk" />
4654
</ItemGroup>
55+
4756
<ItemGroup>
48-
<None Include="NLog.snk" />
49-
<None Include="N.png" Pack="true" PackagePath="" />
57+
<None Include="N.png" Pack="true" PackagePath="" Visible="false" />
5058
</ItemGroup>
5159
<Target Name="DownloadMissingContent" BeforeTargets="GenerateNuspec">
5260
<DownloadFile SourceUrl="https://nlog-project.org/N.png" DestinationFolder="$(MSBuildThisFileDirectory)" />

NLog.Windows.Forms/LayoutRenderers/RichTextBoxLinkLayoutRenderer .cs renamed to NLog.Windows.Forms/RichTextBoxLinkLayoutRenderer .cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
using NLog.Config;
66
using NLog.LayoutRenderers;
77
using NLog.Layouts;
8-
using NLog.Windows.Forms.Targets;
98

10-
namespace NLog.Windows.Forms.LayoutRenderers
9+
namespace NLog.Windows.Forms
1110
{
1211
/// <summary>
1312
/// Strings rendered with this rendrer would convert to links in the control. <see cref="RichTextBoxTarget.SupportLinks" />

NLog.Windows.Forms/Targets/RichTextBoxRowColoringRule.cs renamed to NLog.Windows.Forms/RichTextBoxRowColoringRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using NLog.Config;
44
using NLog.Layouts;
55

6-
namespace NLog.Windows.Forms.Targets
6+
namespace NLog.Windows.Forms
77
{
88
/// <summary>
99
/// The row-coloring condition.

NLog.Windows.Forms/Targets/RichTextBoxTarget.cs renamed to NLog.Windows.Forms/RichTextBoxTarget.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
using NLog.Common;
99
using NLog.Config;
1010
using NLog.Targets;
11-
using NLog.Windows.Forms.LayoutRenderers;
1211

13-
namespace NLog.Windows.Forms.Targets
12+
namespace NLog.Windows.Forms
1413
{
1514
/// <summary>
1615
/// Log text a Rich Text Box control in an existing or new form.

NLog.Windows.Forms/Targets/RichTextBoxTargetMessageRetentionStrategy.cs renamed to NLog.Windows.Forms/RichTextBoxTargetMessageRetentionStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Linq;
33

4-
namespace NLog.Windows.Forms.Targets
4+
namespace NLog.Windows.Forms
55
{
66
/// <summary>
77
/// How to handle messages when switching between target controls or no control is attached at all

0 commit comments

Comments
 (0)