-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
44 lines (35 loc) · 2.8 KB
/
Directory.Build.props
File metadata and controls
44 lines (35 loc) · 2.8 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
<Project>
<!-- Detect if we are used as a submodule in a parent repository, and if this is true, try to import the parent Directory.Build.props folder that could override the properties defined here -->
<!-- We use the fact that git-submodules have a .git _file_, instead of a .git _directory_, which can help prevent from an attacker somehow being able to inject a fake .props file above us -->
<!-- If this heuristic does not work, this can be worked around by setting the FDB_BUILD_PROPS_OVERRIDE env variable to a non-empty value -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"
Condition="Exists('$(MSBuildThisFileDirectory)../Directory.Build.props') AND ($([System.IO.File]::Exists('$(MSBuildThisFileDirectory)/.git')) OR '$(FDB_BUILD_PROPS_OVERRIDE)' != '')" />
<PropertyGroup>
<!-- All projects will build/pack/publish under "artifacts/*" -->
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
<!-- Enable GlobalUsings.cs for all projects -->
<ImplicitUsings>enable</ImplicitUsings>
<!-- Embed symbols in the assembly -->
<DebugType>embedded</DebugType>
</PropertyGroup>
<!--
These settings are used by all other projects to define the build target.
When this repository is included as a submodule, the parent folder can override these values
in its own Directory.Build.props file, in order to not have to build extra targets that are not used.
-->
<PropertyGroup>
<!-- The 'CoreSdkVersions' variable can be used to override all the versions at once! -->
<!-- Framework versions for the core libraries (Core, FoundationDb.Client, ...) -->
<CoreSdkRuntimeVersions Condition="'$(CoreSdkRuntimeVersions)' == ''">$(CoreSdkVersions)</CoreSdkRuntimeVersions>
<CoreSdkRuntimeVersions Condition="'$(CoreSdkRuntimeVersions)' == ''">net11.0;net10.0;net8.0</CoreSdkRuntimeVersions>
<!-- Framework versions for tools that are packed (FdbTop, FdbShell, ...) -->
<CoreSdkToolsVersions Condition="'$(CoreSdkToolsVersions)' == ''">$(CoreSdkVersions)</CoreSdkToolsVersions>
<CoreSdkToolsVersions Condition="'$(CoreSdkToolsVersions)' == ''">net11.0;net10.0;net8.0</CoreSdkToolsVersions>
<!-- Framework versions for local tools that are not packed (FdbBurner, Sandboxes, ...) -->
<CoreSdkUtilityVersions Condition="'$(CoreSdkUtilityVersions)' == ''">$(CoreSdkVersions)</CoreSdkUtilityVersions>
<CoreSdkUtilityVersions Condition="'$(CoreSdkUtilityVersions)' == ''">net10.0</CoreSdkUtilityVersions>
<!-- Framework versions for Aspire (only .NET8+) -->
<CloudSdkRuntimeVersions Condition="'$(CloudSdkRuntimeVersions)' == ''">$(CoreSdkVersions)</CloudSdkRuntimeVersions>
<CloudSdkRuntimeVersions Condition="'$(CloudSdkRuntimeVersions)' == ''">net11.0;net10.0;net8.0</CloudSdkRuntimeVersions>
</PropertyGroup>
</Project>