forked from elastic/elasticsearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
52 lines (47 loc) · 3.4 KB
/
Directory.Build.props
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
<Project>
<!-- Default Version numbers -->
<PropertyGroup>
<CurrentVersion>8.0.0</CurrentVersion>
<CurrentAssemblyVersion>8.0.0</CurrentAssemblyVersion>
<CurrentAssemblyFileVersion>8.0.0</CurrentAssemblyFileVersion>
<!-- Version and Informational reflect actual version -->
<Version>$(CurrentVersion)</Version>
<InformationalVersion>$(CurrentVersion)</InformationalVersion>
<!-- Assembly version is sticky to MAJOR.0.0.0 to avoid binding redirects because we strong name our assemblies -->
<AssemblyVersion>$(CurrentAssemblyVersion)</AssemblyVersion>
<!-- File version reflects actual version number without prelease since that not allowed in its struct -->
<FileVersion>$(CurrentAssemblyFileVersion)</FileVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<MajorVersion>$(Version.Split('.')[0])</MajorVersion>
</PropertyGroup>
<!-- Common Nuget metadata-->
<PropertyGroup>
<Authors>Elastic and contributors</Authors>
<Copyright>Elasticsearch BV</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageReleaseNotes>See https://github.com/elastic/elasticsearch-net/releases</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/elastic/elasticsearch-net</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/elastic/elasticsearch-net/main/build/nuget-icon.png</PackageIconUrl>
</PropertyGroup>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<!-- Default Version numbers -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsPackable>false</IsPackable>
<EnablePackageValidation>true</EnablePackageValidation>
<OutputPath Condition="'$(OutputPathBaseDir)' != ''">$(OutputPathBaseDir)\$(MSBuildProjectName)\</OutputPath>
<SolutionRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.bat))</SolutionRoot>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
<DefineConstants Condition="'$(TargetFramework)'=='net461' or '$(TargetFramework)'=='net472'">$(DefineConstants);FULLFRAMEWORK</DefineConstants>
<DefineConstants Condition="$(DefineConstants.Contains(FULLFRAMEWORK)) == False">$(DefineConstants);DOTNETCORE</DefineConstants>
<DefineConstants Condition="$(DefineConstants.Contains(FULLFRAMEWORK)) == False and '$(TargetFramework)'!='netstandard2.0'">$(DefineConstants);DOTNETCORE_2_1_OR_HIGHER</DefineConstants>
<DefineConstants Condition="$(DefineConstants.Contains(FULLFRAMEWORK)) == False and '$(TargetFramework)'!='netstandard2.0' and '$(TargetFramework)'!='netstandard2.1'">$(DefineConstants);DOTNETCORE_3_1_OR_HIGHER</DefineConstants>
<ExposedPublicKey>002400000480000094000000060200000024000052534131000400000100010025d3a22bf3781ba85067374ad832dfcba3c4fa8dd89227e36121ba17b2c33ad6b6ce03e45e562050a031e2ff7fe12cff9060a50acbc6a0eef9ef32dc258d90f874b2e76b581938071ccc4b4d98204d1d6ca7a1988d7a211f9fc98efd808cf85f61675b11007d0eb0461dc86a968d6af8ebba7e6b540303b54f1c1f5325c252be</ExposedPublicKey>
</PropertyGroup>
<ItemGroup>
<!-- Include unconditionally due to difference in how dotnet cli and design time builds generate package.lock.json -->
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.2"/>
</ItemGroup>
</Project>