-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
122 lines (100 loc) · 4.78 KB
/
Directory.Build.props
File metadata and controls
122 lines (100 loc) · 4.78 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
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<EnlistmentRoot>$(MSBuildThisFileDirectory.TrimEnd('\\'))</EnlistmentRoot>
<SrcRoot>$(EnlistmentRoot)\src</SrcRoot>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>
<PropertyGroup>
<GHAccount>CodeCyclone</GHAccount>
<GHRepo>centralPackageVersioningSample</GHRepo>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')" />
</ItemGroup>
<PropertyGroup Label="Versioning">
<Version Condition="'$(Version)' == ''">1.0.0</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<PackageVersion>$(Version)</PackageVersion>
<FileVersion>$(Version)</FileVersion>
<InformationalVersion>$(Version)</InformationalVersion>
</PropertyGroup>
<PropertyGroup>
<PowerShellExe Condition="'$(PowerShellExe)' == ''">$(WINDIR)\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellExe>
<PowerShellExe Condition="!Exists('$(PowerShellExe)')">$(ProgramFiles)\PowerShell\7\pwsh.exe</PowerShellExe>
<PowerShellCommonArgs>-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted</PowerShellCommonArgs>
</PropertyGroup>
<PropertyGroup>
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
<Authors>$(GHAccount)</Authors>
<PackageReleaseNotes>Initial Release</PackageReleaseNotes>
<Description>Contains $(AssemblyName)</Description>
<RepositoryUrl>https://github.com/$(GHAccount)/$(GHRepo).git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
<Copyright>Copyright (c). All rights reserved.</Copyright>
<MinimumMSBuildVersion>16.8</MinimumMSBuildVersion>
<LangName Condition="'$(LangName)' == ''">en-US</LangName>
</PropertyGroup>
<PropertyGroup>
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == ''">true</TreatWarningsAsErrors>
<WarningLevel Condition="'$(WarningLevel)' == ''">4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'">
<Deterministic>true</Deterministic>
<StyleCopAnalyzersEnabled Condition="'$(StyleCopAnalyzersEnabled)' == ''">true</StyleCopAnalyzersEnabled>
<IncludeSymbols>true</IncludeSymbols>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<LangVersion>Latest</LangVersion>
<UseHostCompilerIfAvailable Condition="'$(BuildingForLiveUnitTesting)' == 'true'">true</UseHostCompilerIfAvailable>
<!-- Disable transitive project references to avoid excessive QuickBuild sandboxing in large repos -->
<DisableTransitiveProjectReferences>true</DisableTransitiveProjectReferences>
</PropertyGroup>
<PropertyGroup>
<BaseArtifactsPath>$(MSBuildThisFileDirectory)artifacts</BaseArtifactsPath>
</PropertyGroup>
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);*.log</DefaultItemExcludes>
</PropertyGroup>
<!-- Standard Debug PropertyGroup from VS template -->
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<!-- Standard Release PropertyGroup from VS template -->
<PropertyGroup Condition=" '$(Configuration)' != 'Debug' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<PackageOutputPath>$(EnlistmentRoot)\pkgOut</PackageOutputPath>
</PropertyGroup>
<!--
SLNGEN Settings
-->
<PropertyGroup>
<SlnGenLaunchVisualStudio>true</SlnGenLaunchVisualStudio>
<SlnGenGlobalProperties>ExcludeRestorePackageImports=true;Platform=$(Platform)</SlnGenGlobalProperties>
</PropertyGroup>
<ItemGroup>
<SlnGenSolutionItem Include="$(EnlistmentRoot)\Directory.Build.props" />
<SlnGenSolutionItem Include="$(EnlistmentRoot)\Directory.Build.targets" />
<SlnGenSolutionItem Include="$(EnlistmentRoot)\Packages.props" />
</ItemGroup>
<!--
Devs usually don't need to see/build non-code projects in VS, particularly since some of them don't build cleanly in the IDE.
Excluding the projects makes VS builds faster and keeps parity with VSMSBUILD experience
-->
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.proj' Or '$(MSBuildProjectExtension)' == '.nuproj'">
<IncludeInSolutionFile>false</IncludeInSolutionFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SlnGen" />
</ItemGroup>
</Project>