-
Notifications
You must be signed in to change notification settings - Fork 76
/
Directory.Build.props
145 lines (125 loc) · 6.96 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<Project>
<!-- Set the repository root into a variable -->
<PropertyGroup>
<SourceRoot>$(MSBuildThisFileDirectory)</SourceRoot>
</PropertyGroup>
<!-- Set common properties regarding assembly information and nuget packages -->
<PropertyGroup>
<Authors>Yevhen Bobrov</Authors>
<Product>Orleankka</Product>
<Copyright>since 2016 © Yevhen Bobrov. All rights reserved.</Copyright>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageProjectUrl>https://github.com/OrleansContrib/Orleankka</PackageProjectUrl>
<PackageIcon>Logo.png</PackageIcon>
<PackageIconUrl>https://github.com/OrleansContrib/Orleankka/raw/master/Logo.png</PackageIconUrl>
<PackageTags>Orleans Distributed-Systems Messaging Actor Concurrency CQRS Functional F#</PackageTags>
<PackageReleaseNotes></PackageReleaseNotes>
<RepositoryUrl>https://github.com/OrleansContrib/Orleankka</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<IncludeSource>true</IncludeSource>
</PropertyGroup>
<ItemGroup>
<None Include="$(SourceRoot)\LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/>
<None Include="$(SourceRoot)\Logo.png" Pack="true" PackagePath="\"/>
</ItemGroup>
<!-- Common compile parameters -->
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);1591</NoWarn>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<DebugType>portable</DebugType>
</PropertyGroup>
<!-- Common project props -->
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ConsoleProjectTargetFramework>net8.0</ConsoleProjectTargetFramework>
<TestProjectTargetFramework>$(ConsoleProjectTargetFramework)</TestProjectTargetFramework>
</PropertyGroup>
<!-- Shared Package Versions -->
<PropertyGroup>
<!-- Framework packages -->
<SystemTextJsonVersion>8.0.2</SystemTextJsonVersion>
<!-- Orleans packages -->
<MicrosoftOrleansClientVersion>8.0.0</MicrosoftOrleansClientVersion>
<MicrosoftOrleansServerVersion>8.0.0</MicrosoftOrleansServerVersion>
<MicrosoftOrleansCoreAbstractionsVersion>8.0.0</MicrosoftOrleansCoreAbstractionsVersion>
<MicrosoftOrleansRuntimeVersion>8.0.0</MicrosoftOrleansRuntimeVersion>
<MicrosoftOrleansRemindersVersion>8.0.0</MicrosoftOrleansRemindersVersion>
<MicrosoftOrleansSdkVersion>8.0.0</MicrosoftOrleansSdkVersion>
<MicrosoftOrleansStreamingVersion>8.0.0</MicrosoftOrleansStreamingVersion>
<MicrosoftOrleansSerializationNewtonsoftJsonVersion>8.0.0</MicrosoftOrleansSerializationNewtonsoftJsonVersion>
<MicrosoftOrleansStreamingAzureStorageVersion>8.0.0</MicrosoftOrleansStreamingAzureStorageVersion>
<!-- Microsoft extensions -->
<MicrosoftExtensionsLoggingVersion>8.0.0</MicrosoftExtensionsLoggingVersion>
<MicrosoftExtensionsLoggingConsoleVersion>8.0.0</MicrosoftExtensionsLoggingConsoleVersion>
<MicrosoftExtensionsDependencyInjectionAbstractionsVersion>8.0.0</MicrosoftExtensionsDependencyInjectionAbstractionsVersion>
<MicrosoftExtensionsHostingVersion>8.0.0</MicrosoftExtensionsHostingVersion>
<!-- Testing packages -->
<NUnitVersion>3.14.0</NUnitVersion>
<NUnit3TestAdapterVersion>3.17.0</NUnit3TestAdapterVersion>
<MicrosoftNETTestSdkVersion>17.9.0</MicrosoftNETTestSdkVersion>
<PowerAssertVersion>1.0.87</PowerAssertVersion>
<!-- 3rd party packages -->
<WindowsAzureStorageVersion>9.3.3</WindowsAzureStorageVersion>
<EventStoreClientAPINetCoreVersion>23.1.0</EventStoreClientAPINetCoreVersion>
<StreamstoneVersion>2.3.1</StreamstoneVersion>
<HyperionVersion>0.9.8</HyperionVersion>
<GoogleProtobufVersion>3.25.3</GoogleProtobufVersion>
<MicrosoftCodeAnalysisCommonVersion>4.8.0</MicrosoftCodeAnalysisCommonVersion>
<MicrosoftCodeAnalysisCSharpVersion>4.8.0</MicrosoftCodeAnalysisCSharpVersion>
<!-- 3rd party F# libs -->
<TaskBuilderfsVersion>1.1.1</TaskBuilderfsVersion>
<!-- Tooling related packages -->
<SourceLinkVersion>2.8.3</SourceLinkVersion>
</PropertyGroup>
<!-- Versioning properties -->
<PropertyGroup>
<VersionPrefix Condition=" '$(VersionPrefix)'=='' ">2.0.0</VersionPrefix>
<VersionSuffix Condition=" '$(VersionSuffix)'=='' ">dev</VersionSuffix>
</PropertyGroup>
<!-- For Debug builds generated a date/time dependent version suffix -->
<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
<VersionSuffix Condition=" '$(VersionSuffix)'=='' ">dev</VersionSuffix>
<VersionSuffix Condition=" '$(VersionDateSuffix)'!='' ">$(VersionSuffix)-$(VersionDateSuffix)</VersionSuffix>
</PropertyGroup>
<!-- Set output folder for created NuGet packages -->
<PropertyGroup>
<PackageOutputPath Condition=" '$(PackageOutputPath)'=='' ">$(SourceRoot)Artifacts\$(Configuration)</PackageOutputPath>
</PropertyGroup>
<Choose>
<When Condition="'$(OfficialBuild)' != 'true'">
<!-- On non-official builds we don't burn in a git sha. In large part because it
hurts our determinism efforts as binaries which should be the same between
builds will not (due to developers building against different HEAD values -->
<PropertyGroup>
<GitHeadSha><developer build></GitHeadSha>
</PropertyGroup>
</When>
<When Condition="'$(BUILD_SOURCEVERSION)' != ''">
<PropertyGroup>
<GitHeadSha>$(BUILD_SOURCEVERSION)</GitHeadSha>
</PropertyGroup>
</When>
<When Condition="'$(BUILD_SOURCEVERSION)' == '' AND '$(GIT_COMMIT)' != ''">
<PropertyGroup>
<GitHeadSha>$(GIT_COMMIT)</GitHeadSha>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<GitHeadSha>Not found</GitHeadSha>
<DotGitDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory).git'))</DotGitDir>
<HeadFileContent Condition="Exists('$(DotGitDir)/HEAD')">$([System.IO.File]::ReadAllText('$(DotGitDir)/HEAD').Trim())</HeadFileContent>
<RefPath Condition="$(HeadFileContent.StartsWith('ref: '))">$(DotGitDir)/$(HeadFileContent.Substring(5))</RefPath>
<GitHeadSha Condition="'$(RefPath)' != '' AND Exists('$(RefPath)')">$([System.IO.File]::ReadAllText('$(RefPath)').Trim())</GitHeadSha>
<GitHeadSha Condition="'$(HeadFileContent)' != '' AND '$(RefPath)' == ''">$(HeadFileContent)</GitHeadSha>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>