File tree 3 files changed +1
-7
lines changed 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,7 @@ private static string GetWindowsIdentity()
192
192
{
193
193
try
194
194
{
195
- // Warning disabled to allow debug builds for net 6/7.
196
- #pragma warning disable CA1416
197
195
return WindowsIdentity . GetCurrent ( ) . Name ;
198
- #pragma warning restore CA1416
199
196
}
200
197
catch ( SecurityException )
201
198
{
Original file line number Diff line number Diff line change 2
2
<Import Project =" ..\..\..\package.props" />
3
3
4
4
<PropertyGroup >
5
- <TargetFrameworks >net45;net46;net47;net472;netstandard2.0;netcoreapp2.0;net6.0;net7.0</TargetFrameworks >
5
+ <TargetFrameworks >net45;net46;net47;net472;netstandard2.0;netcoreapp2.0;net6.0-windows ;net7.0-windows </TargetFrameworks >
6
6
7
7
<AssemblyVersion >$(MajorVersion).0.0.0</AssemblyVersion >
8
8
<FileVersion >$(Version).$(Revision)</FileVersion >
Original file line number Diff line number Diff line change 8
8
9
9
namespace Microsoft . Practices . EnterpriseLibrary . Logging . TraceListeners
10
10
{
11
- // Warning disabled to allow debug builds for net 6/7.
12
- #pragma warning disable CA1416
13
11
/// <summary>
14
12
/// FormattedEventLogTraceListener is a <see cref="TraceListener"/> that wraps an <see cref="FormattedEventLogTraceListener"/>
15
13
/// and uses a <see cref="ILogFormatter"/> to transform the data to trace.
@@ -106,5 +104,4 @@ private static string NormalizeMachineName(string machineName)
106
104
return string . IsNullOrEmpty ( machineName ) ? DefaultMachineName : machineName ;
107
105
}
108
106
}
109
- #pragma warning restore CA1416
110
107
}
You can’t perform that action at this time.
0 commit comments