|
19 | 19 | </PropertyGroup>
|
20 | 20 |
|
21 | 21 | <ItemGroup>
|
22 |
| - <PackageReference Include="Google.Protobuf" Version="3.13.0" /> |
| 22 | + <PackageReference Include="Google.Protobuf" Version="3.14.0" /> |
23 | 23 | <PackageReference Include="Grpc.Core" Version="2.35.0-pre1" />
|
24 | 24 | <PackageReference Include="Grpc.Tools" Version="2.35.0-pre1">
|
25 | 25 | <PrivateAssets>all</PrivateAssets>
|
26 | 26 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
27 | 27 | </PackageReference>
|
| 28 | + <PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13" /> |
28 | 29 | </ItemGroup>
|
29 | 30 | <ItemGroup>
|
30 | 31 | <Protobuf Include="**/*.proto" ProtoRoot="protos" />
|
31 | 32 | </ItemGroup>
|
| 33 | + |
| 34 | + <Target Name="ILRepack" AfterTargets="Build"> |
| 35 | + <ItemGroup> |
| 36 | + <InputAssemblies Include="System.Memory.dll" /> |
| 37 | + </ItemGroup> |
| 38 | + <ILRepack OutputType="$(OutputType)" MainAssembly="Google.Protobuf.dll" InputAssemblies="@(InputAssemblies)" OutputAssembly="Google.Protobuf.dll" WorkingDirectory="$(OutDir)" /> |
| 39 | + </Target> |
32 | 40 |
|
33 | 41 | <ItemGroup Condition=" '$(RuntimeIdentifier)' == 'win-x86' ">
|
34 |
| - <Content Include="$(NuGetPackageRoot)\grpc.core\2.32.0\runtimes\win\native\grpc_csharp_ext.x86.dll"> |
| 42 | + <Content Include="$(NuGetPackageRoot)\grpc.core\2.35.0-pre1\runtimes\win-x86\native\grpc_csharp_ext.x86.dll"> |
35 | 43 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
36 | 44 | <Link>grpc_csharp_ext.x86.dll</Link>
|
37 | 45 | </Content>
|
38 | 46 | </ItemGroup>
|
39 | 47 |
|
40 | 48 | <ItemGroup Condition=" '$(RuntimeIdentifier)' == 'win-x64' ">
|
41 |
| - <Content Include="$(NuGetPackageRoot)\grpc.core\2.32.0\runtimes\win\native\grpc_csharp_ext.x64.dll"> |
| 49 | + <Content Include="$(NuGetPackageRoot)\grpc.core\2.35.0-pre1\runtimes\win-x64\native\grpc_csharp_ext.x64.dll"> |
42 | 50 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
43 | 51 | <Link>grpc_csharp_ext.x64.dll</Link>
|
44 | 52 | </Content>
|
45 | 53 | </ItemGroup>
|
46 | 54 |
|
47 | 55 | <ItemGroup Condition=" '$(RuntimeIdentifier)' == 'osx-x64' ">
|
48 |
| - <Content Include="$(NuGetPackageRoot)\grpc.core\2.32.0\runtimes\osx\native\libgrpc_csharp_ext.x64.dylib"> |
| 56 | + <Content Include="$(NuGetPackageRoot)\grpc.core\2.35.0-pre1\runtimes\osx-x64\native\libgrpc_csharp_ext.x64.dylib"> |
49 | 57 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
50 | 58 | <Link>libgrpc_csharp_ext.x64.dylib</Link>
|
51 | 59 | </Content>
|
52 | 60 | </ItemGroup>
|
53 | 61 |
|
54 | 62 | <ItemGroup Condition=" '$(RuntimeIdentifier)' == 'linux-x64' ">
|
55 |
| - <Content Include="$(NuGetPackageRoot)\grpc.core\2.32.0\runtimes\linux\native\libgrpc_csharp_ext.x64.so"> |
| 63 | + <Content Include="$(NuGetPackageRoot)\grpc.core\2.35.0-pre1\runtimes\linux-x64\native\libgrpc_csharp_ext.x64.so"> |
56 | 64 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
57 | 65 | <Link>libgrpc_csharp_ext.x64.so</Link>
|
58 | 66 | </Content>
|
59 | 67 | </ItemGroup>
|
| 68 | + |
| 69 | + <Target Name="PluginsDeploy" AfterTargets="ILRepack"> |
| 70 | + <ItemGroup> |
| 71 | + <NativePlugins Include="$(OutDir)Google.Protobuf.dll" /> |
| 72 | + <NativePlugins Include="$(OutDir)Grpc.Core.dll" /> |
| 73 | + <NativePlugins Include="$(OutDir)Grpc.Core.Api.dll" /> |
| 74 | + |
| 75 | + <NativePlugins Include="$(NuGetPackageRoot)\grpc.core\2.35.0-pre1\runtimes\$(RuntimeIdentifier)\native\*" /> |
| 76 | + </ItemGroup> |
| 77 | + <Message Text="PluginsDeploy: @(Plugins)" /> |
| 78 | + <Copy SourceFiles="@(Plugins)" DestinationFolder="..\VisualPinball.Engine.Mpf.Unity\Plugins\" SkipUnchangedFiles="true" /> |
| 79 | + <Copy SourceFiles="@(NativePlugins)" DestinationFolder="..\VisualPinball.Engine.Mpf.Unity\Plugins\$(RuntimeIdentifier)\" SkipUnchangedFiles="true" /> |
| 80 | + </Target> |
60 | 81 |
|
61 | 82 | </Project>
|
0 commit comments