Example:
```cs
public class SomeClass
{
private static ILogger _logger;
private static Logger => _logger ??= LogFactory.GetLogger(typeof(SomeClass));
...
}
```
19 lines
861 B
XML
19 lines
861 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net5.0</TargetFramework>
|
|
<Platforms>x64</Platforms>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<LangVersion>9</LangVersion>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<SkipLocalsInitiAttribute>true</SkipLocalsInitiAttribute>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
|
|
<PackageReference Include="Serilog" Version="2.10.0" />
|
|
<PackageReference Include="Serilog.Sinks.Async" Version="1.4.0" />
|
|
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
|
|
<ProjectReference Include="..\Server\Server.csproj" />
|
|
<ProjectReference Include="..\UOContent\UOContent.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|