forked from Azure/elastic-db-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.props
52 lines (49 loc) · 2.78 KB
/
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup>
<!--
Determine whether we are building in the Microsoft Azure SQL Database team's build system
or standalone (i.e. from open source).
-->
<StandaloneBuild Condition="!Exists('$(MSBuildThisFileDirectory)\..\Build.props')">true</StandaloneBuild>
<StandaloneBuild Condition="Exists('$(MSBuildThisFileDirectory)\..\Build.props')">false</StandaloneBuild>
</PropertyGroup>
<!--
Properties that are implicitly defined in the Microsoft Azure SQL Database team's build system
that need to be defined here for standalone build to work.
-->
<PropertyGroup Condition="'$(StandaloneBuild)' == 'true'">
<!-- Common compile properties -->
<ErrorReport Condition="'$(ErrorReport)' == ''">prompt</ErrorReport>
<WarningLevel Condition="'$(WarningLevel)' == ''">4</WarningLevel>
<DefineConstants>$(DefineConstants);STANDALONE_BUILD</DefineConstants>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<!-- Folder layout properties -->
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)\obj\$(MSBuildProjectFile)</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildThisFileDirectory)\bin</BaseOutputPath>
<OutputPath>$(BaseOutputPath)\$(Configuration)\$(AssemblyName)</OutputPath>
<NugetPack>$(MSBuildThisFileDirectory)\packages</NugetPack>
</PropertyGroup>
<PropertyGroup Condition="'$(StandaloneBuild)' == 'true' and '$(Configuration)' == 'Debug'">
<!-- Debug compile properties -->
<Optimize Condition="'$(Optimize)' == ''">false</Optimize>
<DebugType Condition="'$(DebugType)' == ''">full</DebugType>
<DefineConstants>$(DefineConstants),DEBUG,TRACE,CODE_ANALYSIS</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(StandaloneBuild)' == 'true' and ('$(Configuration)' == 'Release' or '$(Configuration)' == 'Cover')">
<!-- Release compile properties -->
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">pdbonly</DebugType>
<DefineConstants>$(DefineConstants),TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(StandaloneBuild)' == 'false'">
<!-- Enable flag that sets the version number of the built assemblies. -->
<EnableElasticScaleClientHardcodedVersioning>true</EnableElasticScaleClientHardcodedVersioning>
</PropertyGroup>
<Import Condition="'$(StandaloneBuild)' == 'false'" Project="$(MSBuildThisFileDirectory)\..\Build.props" />
</Project>