forked from microsoft/SqlScriptDOM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
75 lines (61 loc) · 4.26 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
<?xml version="1.0" encoding="utf-8"?>
<!--
This root MSBuild file is automatically imported for all projects in the tree by MSBuild 15.0.
You can have a hierarchy of imports but make sure that this file is still imported.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Global locations">
<!--
$(MSBuildAllProjects) is a list of files that determine if a project is up-to-date or not. By including this
file in the list, it ensures that all projects will be rebuilt if it changes.
-->
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<!-- By default we build the XMLDOC files -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--
Enlistment root is based off of wherever this file is. Be sure not to set this property anywhere else.
-->
<EnlistmentRoot>$(MSBuildThisFileDirectory.TrimEnd('\\'))</EnlistmentRoot>
<!-- .build folder path, which can also be used for other purpose in future, this path is used to import the props file-->
<BuildPropsDir>$(EnlistmentRoot)\.build</BuildPropsDir>
<!-- This is the location where we restore/install the nuget packages -->
<RestorePackagesPath>$(EnlistmentRoot)\.packages</RestorePackagesPath>
<!-- This is the default target framework for all the projects.
Individual projects may specify additional target frameworks -->
<NetfxVersion>net462</NetfxVersion>
<NetCoreVersion>net8.0</NetCoreVersion>
<TargetFrameworks>$(NetfxVersion);$(NetCoreVersion)</TargetFrameworks>
<PreviewRelease Condition="'$(PreviewRelease)' == ''">false</PreviewRelease>
<VersionProductName>Microsoft SQL Script DOM</VersionProductName>
<!-- Use this property for convenience to build a path starting from the root of the repository. -->
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<TargetFolder Condition="'$(TargetFolder)'==''">out</TargetFolder>
<BaseOutputPath Condition="'$(BaseOutputPath)'==''">$(EnlistmentRoot)\$(TargetFolder)</BaseOutputPath>
<OutputPath>$(BaseOutputPath)\$(Configuration)</OutputPath>
<!-- Path for tools output files, .exe executable generated files for tools can be found here -->
<BuildToolsPath>$(BaseOutputPath)\tools\$(NetCoreVersion)</BuildToolsPath>
<!-- put obj files in a mirror tree off the root to keep the src folder tree cleaner -->
<BaseIntermediateOutputPath Condition=" '$(BaseIntermediateOutputPath)' == '' ">$(EnlistmentRoot)\obj\$([MSBuild]::MakeRelative('$(EnlistmentRoot)\', $(MSBuildProjectDirectory)))</BaseIntermediateOutputPath>
<AntlrSourceUrl Condition="'$(OS)' != 'Windows_NT'">https://www.antlr2.org/download/antlr-2.7.5.jar</AntlrSourceUrl>
<AntlrLocation Condition="'$(OS)' != 'Windows_NT'">$(BaseIntermediateOutputPath)\antlr-2.7.5.jar</AntlrLocation>
<AntlrSourceUrl Condition="'$(OS)' == 'Windows_NT'">https://www.antlr2.org/download/antlr-2.7.5.exe</AntlrSourceUrl>
<AntlrLocation Condition="'$(OS)' == 'Windows_NT'">$(BaseIntermediateOutputPath)\antlr-2.7.5.exe</AntlrLocation>
</PropertyGroup>
<!-- Don't enable localization when we are inside VS -->
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)'=='true'">
<EnableLocalization>false</EnableLocalization>
</PropertyGroup>
<!-- Localization is not enabled by default. Pass /p:EnableLocalization=true to override that.
For some details, see: https://ceapex.visualstudio.com/CEINTL/_wiki/wikis/CEINTL.wiki/341/Localization-in-MSBuild-Retail
-->
<PropertyGroup>
<EnableLocalization Condition="'$(EnableLocalization)' == ''">false</EnableLocalization>
<PostBuildLocalization>$(EnableLocalization)</PostBuildLocalization>
<!-- This corresponds to the APEX13 languages: Tier1 + CSY/TRK/PLK
For language sets details, see: https://ceapex.visualstudio.com/CEINTL/_git/SoftwareLocalization?path=%2Fsrc%2FOneBranchPackages%2FLocalization.Languages%2FLocalization.Languages.props&_a=contents&version=GBmain
-->
<LanguageSet Condition="'$(EnableLocalization)' == 'true'">VS_Main_Languages</LanguageSet>
</PropertyGroup>
<Import Project="$(BuildPropsDir)\AssemblyInfo.props" />
</Project>