|
7 | 7 | <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
8 | 8 | <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
9 | 9 | </PropertyGroup>
|
10 |
| - |
| 10 | + |
11 | 11 | <PropertyGroup Condition="'$(RuntimeIdentifier)' == ''">
|
12 | 12 | <RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Windows')) And '$(PlatformTarget)' != 'x86'">win-x64</RuntimeIdentifier>
|
13 | 13 | <RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Windows')) And '$(PlatformTarget)' == 'x86'">win-x86</RuntimeIdentifier>
|
14 | 14 | <RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('OSX'))">osx-x64</RuntimeIdentifier>
|
15 | 15 | <RuntimeIdentifier Condition="$([MSBuild]::IsOSPlatform('Linux'))">linux-x64</RuntimeIdentifier>
|
16 |
| - </PropertyGroup> |
17 |
| - |
| 16 | + </PropertyGroup> |
| 17 | + |
18 | 18 | <ItemGroup>
|
19 | 19 | <PackageReference Include="Grpc.Tools" Version="2.36.1">
|
20 | 20 | <PrivateAssets>all</PrivateAssets>
|
21 | 21 | <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
22 | 22 | </PackageReference>
|
23 | 23 | <PackageReference Include="Grpc" Version="2.36.1" />
|
24 | 24 | <PackageReference Include="Google.Protobuf" Version="3.15.5" />
|
| 25 | + <PackageReference Include="NLog" Version="4.7.7" /> |
25 | 26 | <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
|
26 | 27 | <PrivateAssets>all</PrivateAssets>
|
27 | 28 | </PackageReference>
|
|
30 | 31 | <ItemGroup>
|
31 | 32 | <Protobuf Include="protos/*.proto" OutputDir="$(ProjectDir)" GrpcServices="Client" />
|
32 | 33 | </ItemGroup>
|
33 |
| - |
| 34 | + |
34 | 35 | <ItemGroup>
|
35 | 36 | <None Remove="tools/**" />
|
36 | 37 | </ItemGroup>
|
37 |
| - |
| 38 | + |
38 | 39 | <ItemGroup>
|
39 | 40 | <InputAssemblies Include="$(OutDir)System.Buffers.dll" />
|
40 | 41 | <InputAssemblies Include="$(OutDir)System.Memory.dll" />
|
|
44 | 45 | <InputAssemblies Include="$(OutDir)Grpc.Core.Api.dll" />
|
45 | 46 | <InputAssemblies Include="$(OutDir)Grpc.Core.dll" />
|
46 | 47 | </ItemGroup>
|
47 |
| - |
| 48 | + |
48 | 49 | <Target Name="ILRepack" AfterTargets="Build">
|
49 | 50 | <Exec Condition="$([MSBuild]::IsOSPlatform('Windows')) == 'true'" Command="tools\ILRepack.exe /target:library /internalize $(OutDir)$(AssemblyName).dll @(InputAssemblies, ' ') /out:$(OutDir)$(AssemblyName).dll" />
|
50 | 51 | <Exec Condition="$([MSBuild]::IsOSPlatform('Windows')) != 'true'" Command="mono tools/ILRepack.exe /target:library /internalize $(OutDir)$(AssemblyName).dll @(InputAssemblies, ' ') /out:$(OutDir)$(AssemblyName).dll" />
|
51 | 52 | </Target>
|
52 |
| - |
| 53 | + |
53 | 54 | <Target Name="PluginsDeploy" AfterTargets="ILRepack">
|
54 | 55 | <Copy SourceFiles="$(OutDir)$(AssemblyName).dll" DestinationFolder="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)" SkipUnchangedFiles="true" />
|
55 | 56 | <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" />
|
56 | 57 | <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" />
|
57 | 58 | <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" />
|
58 | 59 | <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" />
|
59 | 60 | </Target>
|
60 |
| - |
| 61 | + |
61 | 62 | </Project>
|
0 commit comments