forked from OPCFoundation/UA-.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.props
24 lines (22 loc) · 1.17 KB
/
version.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Project>
<ItemGroup Condition="$(NBGV_PublicRelease) != 'True' AND '$(CODEQL_RUNNER)' == '' AND '$(Dockerbuild)' != 'true'">
<!-- Note: Keep Version 3.5.119, it is known working for 4 digit versioning -->
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<!-- set version manually in docker builds -->
<PropertyGroup Condition="'$(Dockerbuild)' == 'true'">
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
</PropertyGroup>
<!-- NBGV_ variables are only available in cloud build -->
<PropertyGroup Condition="'$(NBGV_PublicRelease)' == 'True'">
<Version>$(NBGV_Version)$(NBGV_PrereleaseVersion)</Version>
<VersionPrefix>$(NBGV_SimpleVersion)</VersionPrefix>
<VersionSuffix>$(NBGV_VersionRevision)$(NBGV_PrereleaseVersion)</VersionSuffix>
<AssemblyVersion>$(NBGV_SimpleVersion)</AssemblyVersion>
<FileVersion>$(NBGV_Version)</FileVersion>
<PackageVersion>$(NBGV_Version)$(NBGV_PrereleaseVersion)</PackageVersion>
</PropertyGroup>
</Project>