Skip to content

Commit 1a9c23d

Browse files
committed
chore(deps): Add NLog.
1 parent 20d36f6 commit 1a9c23d

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
6+
<targets>
7+
<target name="logconsole" xsi:type="Console" />
8+
</targets>
9+
10+
<rules>
11+
<logger name="*" minlevel="Info" writeTo="logconsole" />
12+
</rules>
13+
</nlog>

VisualPinball.Engine.Mpf.Test/VisualPinball.Engine.Mpf.Test.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,11 @@
1717
<ItemGroup>
1818
<ProjectReference Include="..\VisualPinball.Engine.Mpf\VisualPinball.Engine.Mpf.csproj" />
1919
</ItemGroup>
20+
21+
<ItemGroup>
22+
<None Update="NLog.config">
23+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
24+
</None>
25+
</ItemGroup>
2026

2127
</Project>

VisualPinball.Engine.Mpf/VisualPinball.Engine.Mpf.csproj

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,22 @@
77
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
88
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
99
</PropertyGroup>
10-
10+
1111
<PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
1212
<RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Windows')) And '$(PlatformTarget)' != 'x86'">win-x64</RuntimeIdentifier>
1313
<RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Windows')) And '$(PlatformTarget)' == 'x86'">win-x86</RuntimeIdentifier>
1414
<RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('OSX'))">osx-x64</RuntimeIdentifier>
1515
<RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Linux'))">linux-x64</RuntimeIdentifier>
16-
</PropertyGroup>
17-
16+
</PropertyGroup>
17+
1818
<ItemGroup>
1919
<PackageReference Include="Grpc.Tools" Version="2.36.1">
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
2222
</PackageReference>
2323
<PackageReference Include="Grpc" Version="2.36.1" />
2424
<PackageReference Include="Google.Protobuf" Version="3.15.5" />
25+
<PackageReference Include="NLog" Version="4.7.7" />
2526
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
2627
<PrivateAssets>all</PrivateAssets>
2728
</PackageReference>
@@ -30,11 +31,11 @@
3031
<ItemGroup>
3132
<Protobuf Include="protos/*.proto" OutputDir="$(ProjectDir)" GrpcServices="Client" />
3233
</ItemGroup>
33-
34+
3435
<ItemGroup>
3536
<None Remove="tools/**" />
3637
</ItemGroup>
37-
38+
3839
<ItemGroup>
3940
<InputAssemblies Include="$(OutDir)System.Buffers.dll" />
4041
<InputAssemblies Include="$(OutDir)System.Memory.dll" />
@@ -44,18 +45,18 @@
4445
<InputAssemblies Include="$(OutDir)Grpc.Core.Api.dll" />
4546
<InputAssemblies Include="$(OutDir)Grpc.Core.dll" />
4647
</ItemGroup>
47-
48+
4849
<Target Name="ILRepack" AfterTargets="Build">
4950
<Exec Condition="$([MSBuild]::IsOSPlatform('Windows')) == 'true'" Command="tools\ILRepack.exe /target:library /internalize $(OutDir)$(AssemblyName).dll @(InputAssemblies, ' ') /out:$(OutDir)$(AssemblyName).dll" />
5051
<Exec Condition="$([MSBuild]::IsOSPlatform('Windows')) != 'true'" Command="mono tools/ILRepack.exe /target:library /internalize $(OutDir)$(AssemblyName).dll @(InputAssemblies, ' ') /out:$(OutDir)$(AssemblyName).dll" />
5152
</Target>
52-
53+
5354
<Target Name="PluginsDeploy" AfterTargets="ILRepack">
5455
<Copy SourceFiles="$(OutDir)$(AssemblyName).dll" DestinationFolder="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)" SkipUnchangedFiles="true" />
5556
<Copy Condition="'$(RuntimeIdentifier)' == 'win-x64'" SourceFiles="$(OutDir)grpc_csharp_ext.x64.dll" DestinationFiles="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)\grpc_csharp_ext.dll" SkipUnchangedFiles="true" />
5657
<Copy Condition="'$(RuntimeIdentifier)' == 'win-x86'" SourceFiles="$(OutDir)grpc_csharp_ext.x86.dll" DestinationFiles="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)\grpc_csharp_ext.dll" SkipUnchangedFiles="true" />
5758
<Copy Condition="'$(RuntimeIdentifier)' == 'osx-x64'" SourceFiles="$(OutDir)libgrpc_csharp_ext.x64.dylib" DestinationFiles="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)\libgrpc_csharp_ext.dylib" SkipUnchangedFiles="true" />
5859
<Copy Condition="'$(RuntimeIdentifier)' == 'linux-x64'" SourceFiles="$(OutDir)libgrpc_csharp_ext.x64.so" DestinationFiles="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)\libgrpc_csharp_ext.so" SkipUnchangedFiles="true" />
5960
</Target>
60-
61+
6162
</Project>

0 commit comments

Comments
 (0)