forked from G-Research/consuldotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConsul.csproj
More file actions
67 lines (61 loc) · 3.67 KB
/
Copy pathConsul.csproj
File metadata and controls
67 lines (61 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<VersionPrefix>1.6.1.1</VersionPrefix>
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">netstandard2.0;net461</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' == 'Unix'">netstandard2.0</TargetFrameworks>
<AssemblyName>Consul</AssemblyName>
<PackageId>Consul</PackageId>
<PackageTags>Consul;service discovery;distributed locking;health checking</PackageTags>
<PackageReleaseNotes>https://github.com/G-Research/consuldotnet/blob/master/CHANGELOG.md</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/G-Research/consuldotnet</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/G-Research/consuldotnet</RepositoryUrl>
<Authors>PlayFab,G-Research</Authors>
<Description>Consul.NET is a .NET client library for the Consul HTTP API</Description>
<PackageOutputPath>../dist/consul</PackageOutputPath>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<PublicSign>true</PublicSign>
<AssemblyOriginatorKeyFile>../assets/consuldotnet.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
<PackageReference Include="ILMerge" Version="3.0.41" PrivateAssets="All" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" PrivateAssets="All" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.WebRequest" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
</PropertyGroup>
<Target Name="ILMerge" AfterTargets="AfterBuild" Condition=" '$(TargetFramework)' == 'net461' ">
<ItemGroup>
<BuildArtifacts Include="$(OutputPath)$(AssemblyName).*" />
<ArtifactsToMerge Include="$(OutputPath)Newtonsoft.Json.dll" />
</ItemGroup>
<PropertyGroup>
<IlmergeCommand>$(ILMergeConsolePath) /internalize /out:$(OutputPath)ILMerge\$(AssemblyName).dll</IlmergeCommand>
<IlmergeCommand>$(IlmergeCommand) /keyfile:$(AssemblyOriginatorKeyFile)</IlmergeCommand>
<IlmergeCommand>$(IlmergeCommand) $(OutputPath)$(AssemblyName).dll @(ArtifactsToMerge->'%(RelativeDir)%(filename)%(extension)', ' ')</IlmergeCommand>
</PropertyGroup>
<MakeDir Directories="$(OutputPath)\ILMerge" />
<Exec Command="$(IlmergeCommand)" ContinueOnError="false" />
<Move SourceFiles="%(BuildArtifacts.RelativeDir)ILMerge\%(filename)%(extension)"
DestinationFiles="%(BuildArtifacts.RelativeDir)%(filename)%(extension)"
OverwriteReadOnlyFiles="true"/>
<Delete Files="@(ArtifactsToMerge)" />
<RemoveDir Directories="$(OutputPath)ILMerge" />
</Target>
</Project>