|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup> |
| 4 | + <Authors>Improbable</Authors> |
| 5 | + <Copyright>Copyright 2019 Improbable</Copyright> |
| 6 | + <Description>Platform C# SDK that allows interacting with the SpatialOS Platform.</Description> |
| 7 | + <PackageTags>Platform SDK;Improbable;SpatialOS Platform</PackageTags> |
| 8 | + <PackageProjectUrl>https://github.com/spatialos/platform-sdk-csharp</PackageProjectUrl> |
| 9 | + <RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl> |
| 10 | + <RepositoryType>git</RepositoryType> |
4 | 11 | <AssemblyName>Improbable.SpatialOS.Platform</AssemblyName> |
5 | 12 | <RootNamespace>Improbable.SpatialOS.Platform</RootNamespace> |
6 | | - <GenerateDocumentationFile>true</GenerateDocumentationFile> |
| 13 | + </PropertyGroup> |
| 14 | + |
| 15 | + <PropertyGroup> |
| 16 | + <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> |
7 | 17 | <Deterministic>true</Deterministic> |
| 18 | + <GenerateDocumentationFile>true</GenerateDocumentationFile> |
8 | 19 | <GeneratePackageOnBuild>true</GeneratePackageOnBuild> |
9 | | - <Description>Platform C# SDK that allows interacting with the SpatialOS Platform.</Description> |
10 | | - <PackageTags>Platform SDK;Improbable;SpatialOS Platform</PackageTags> |
11 | | - <Copyright>Copyright 2018 Improbable</Copyright> |
12 | | - <Authors>Improbable</Authors> |
13 | | - <TargetFrameworks>net451;netstandard1.5</TargetFrameworks> |
| 20 | + <TargetFrameworks>netstandard1.6</TargetFrameworks> |
14 | 21 | </PropertyGroup> |
15 | 22 |
|
16 | 23 | <ItemGroup> |
17 | 24 | <PackageReference Include="Google.LongRunning" Version="1.0.0" /> |
18 | 25 | <PackageReference Include="ILRepack.MSBuild.Task" Version="2.0.13" /> |
| 26 | + <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0-preview.2" /> |
19 | 27 | </ItemGroup> |
20 | 28 |
|
| 29 | + <!-- For details on configuring ILRepack see https://www.phillipsj.net/posts/using-ilrepack-with-dotnet-core-sdk-and-dotnet-standard --> |
21 | 30 | <Target Name="ILRepack" AfterTargets="Pack" Condition="'$(Configuration)' == 'Release' "> |
22 | 31 | <PropertyGroup> |
23 | | - <WorkingDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\net451</WorkingDirectory> |
| 32 | + <WorkingDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\netstandard1.6</WorkingDirectory> |
24 | 33 | </PropertyGroup> |
25 | 34 |
|
26 | 35 | <ItemGroup> |
27 | | - <InputAssemblies Include="Google.Protobuf.dll" /> |
28 | | - <InputAssemblies Include="System.Interactive.Async.dll" /> |
29 | | - <InputAssemblies Include="Newtonsoft.Json.dll" /> |
30 | | - <InputAssemblies Include="Grpc.Core.dll" /> |
31 | | - <InputAssemblies Include="Grpc.Auth.dll" /> |
32 | | - <InputAssemblies Include="Google.Protobuf.dll" /> |
33 | | - <InputAssemblies Include="Google.LongRunning.dll" /> |
34 | | - <InputAssemblies Include="Google.Apis.PlatformServices.dll" /> |
35 | | - <InputAssemblies Include="Google.Apis.dll" /> |
36 | | - <InputAssemblies Include="Google.Apis.Core.dll" /> |
37 | | - <InputAssemblies Include="Google.Apis.Auth.PlatformServices.dll" /> |
38 | | - <InputAssemblies Include="Google.Apis.Auth.dll" /> |
| 36 | + <InputAssemblies Include="Improbable.SpatialOS.Platform.dll" /> |
| 37 | + <InputAssemblies Include="Google.Api.CommonProtos.dll" /> |
39 | 38 | <InputAssemblies Include="Google.Api.Gax.Grpc.dll" /> |
40 | 39 | <InputAssemblies Include="Google.Api.Gax.dll" /> |
41 | | - <InputAssemblies Include="Google.Api.CommonProtos.dll" /> |
| 40 | + <InputAssemblies Include="Google.Apis.Auth.PlatformServices.dll" /> |
| 41 | + <InputAssemblies Include="Google.Apis.Auth.dll" /> |
| 42 | + <InputAssemblies Include="Google.Apis.Core.dll" /> |
| 43 | + <InputAssemblies Include="Google.Apis.dll" /> |
| 44 | + <InputAssemblies Include="Google.LongRunning.dll" /> |
| 45 | + <InputAssemblies Include="Google.Protobuf.dll" /> |
| 46 | + <InputAssemblies Include="Google.Protobuf.dll" /> |
| 47 | + <InputAssemblies Include="Grpc.Auth.dll" /> |
| 48 | + <InputAssemblies Include="Grpc.Core.dll" /> |
| 49 | + <InputAssemblies Include="Newtonsoft.Json.dll" /> |
| 50 | + <InputAssemblies Include="System.Interactive.Async.dll" /> |
42 | 51 | </ItemGroup> |
43 | 52 |
|
44 | 53 | <!-- These DLLs are not internalised because they contains types that are user-facing. Internalising would mess up the namespace. --> |
45 | 54 | <ItemGroup> |
46 | | - <InternalizeExcludeAssemblies Include="^Google.Api.Gax" /> |
47 | | - <InternalizeExcludeAssemblies Include="^Google.Protobuf.WellKnownTypes" /> |
48 | | - <InternalizeExcludeAssemblies Include="^Grpc.Core" /> |
49 | | - <InternalizeExcludeAssemblies Include="^Google.LongRunning" /> |
| 55 | + <InternalizeExcludeAssemblies Include="Improbable.SpatialOS.Platform" /> |
| 56 | + <InternalizeExcludeAssemblies Include="Google.Api.Gax" /> |
| 57 | + <InternalizeExcludeAssemblies Include="Google.LongRunning" /> |
| 58 | + <InternalizeExcludeAssemblies Include="Google.Protobuf.WellKnownTypes" /> |
| 59 | + <InternalizeExcludeAssemblies Include="Grpc.Core" /> |
50 | 60 | </ItemGroup> |
51 | 61 |
|
52 | | - <ILRepack Parallel="true" OutputType="$(OutputType)" MainAssembly="$(AssemblyName).dll" OutputAssembly="$(AssemblyName).dll" InputAssemblies="@(InputAssemblies)" InternalizeExcludeAssemblies="@(InternalizeExcludeAssemblies)" Internalize="true" WorkingDirectory="$(WorkingDirectory)" /> |
| 62 | + <ILRepack Parallel="true" OutputType="$(OutputType)" MainAssembly="$(AssemblyName).dll" OutputAssembly="$(AssemblyName).dll" InputAssemblies="@(InputAssemblies)" InternalizeExcludeAssemblies="@(InternalizeExcludeAssemblies)" Internalize="true" WorkingDirectory="$(WorkingDirectory)" /> |
53 | 63 |
|
54 | 64 | <ItemGroup> |
55 | 65 | <AssembliesToDelete Include="$(WorkingDirectory)/%(InputAssemblies.Identity)" /> |
|
0 commit comments