forked from genexuslabs/DotNetClasses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
46 lines (44 loc) · 2.6 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
<Project>
<PropertyGroup>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
<MajorFileVersion>1</MajorFileVersion>
<MajorFileVersion Condition="$(GIT_REF.EndsWith('beta'))">$([MSBuild]::Add($(MajorFileVersion), 100))</MajorFileVersion>
<MinorFileVersion>16</MinorFileVersion>
<RevisionFileVersion Condition="'$(COMMIT_NUMBER)'!=''">$(COMMIT_NUMBER)</RevisionFileVersion>
<RevisionFileVersion Condition="'$(COMMIT_NUMBER)'==''">0</RevisionFileVersion>
<FileVersionWithoutRevision>$(MajorFileVersion).$(MinorFileVersion).$(RevisionFileVersion)</FileVersionWithoutRevision>
<FileVersionWithoutRevision Condition="$(GIT_REF.EndsWith('beta')) Or $(GIT_REF.EndsWith('master'))">$(MajorFileVersion).$(MinorFileVersion).0</FileVersionWithoutRevision>
<FileVersion>$(FileVersionWithoutRevision).$(RevisionFileVersion)</FileVersion>
<InformationalVersion>$([System.DateTime]::UtcNow.ToString("yyyyMMddHHmmss")).$(GIT_SHA)</InformationalVersion>
<Company>GeneXus</Company>
<AssemblyCulture></AssemblyCulture>
<Product>GeneXus</Product>
<AssemblyTrademark></AssemblyTrademark>
<CopyrightYear>$([System.DateTime]::UtcNow.ToString("yyyy"))</CopyrightYear>
<Copyright>Copyright © 1988-$(CopyrightYear) GeneXus. All Rights Reserved</Copyright>
<AssemblyOriginatorKeyFile Condition="'$(ARTECH_SNK_FILE)'!=''">$(ARTECH_SNK_FILE)</AssemblyOriginatorKeyFile>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Authors>GeneXus</Authors>
<SignAssembly Condition="'$(AssemblyOriginatorKeyFile)'!=''">true</SignAssembly>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>false</RunCodeAnalysis>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)StandardClasses.ruleset</CodeAnalysisRuleSet>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/genexuslabs/dotnetClasses</RepositoryUrl>
<RepositoryCommit>$(GIT_SHA)</RepositoryCommit>
<NoWarn>NU5105;CS0618;CS8032;CS0618;SYSLIB0021;SYSLIB0023</NoWarn>
<IsPackable>true</IsPackable>
<DisableImplicitNamespaceImports>True</DisableImplicitNamespaceImports>
</PropertyGroup>
<PropertyGroup Condition="!$(TargetFramework.StartsWith('net4'))">
<DeployDirectoryPlatformBin>gxnetcore\bin</DeployDirectoryPlatformBin>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
<DeployDirectoryPlatformBin>gxnet\bin</DeployDirectoryPlatformBin>
</PropertyGroup>
<Target Name="GetFileVersionForPackage">
<Message Importance="high" Text="FileVersion:$(FileVersionWithoutRevision)"></Message>
</Target>
</Project>