-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWebsite.BuildProperties.props
70 lines (55 loc) · 3.05 KB
/
Website.BuildProperties.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
<!--
***********************************************************************************************
Website.Properties.props
Common build properties for all .NET Framework
This file is just here to reduce the noise in individual .csproj files
*** [IMPORTANT] ***
These props are only intended for classic .NET (net4xx) framework projects.
The import of this file is conditional on targetframework starting with net4 and
will/should not be loaded on other target frameworks (.netstandard etc.)
If solution has multiple publish targets (website, xconnect, commerce, etc.)
you should add a project level property to conditionally load props and targets.
Ex.
add
<PropertyGroup>
<ProjectPublishTarget>website</ProjectPublishTarget>
</PropertyGroup>
in .csproj files targeting website instances,
then add
Condition="'$(ProjectPublishTarget)' == 'website'"
on PropertyGroup and/or in .\Directory.Build.targets|props
TODO: Rename to Website.Properties.props if relevant in solution - if only used by modules targeting website instances.
[Anders Laub // Laub+Co]
***********************************************************************************************
-->
<Project>
<PropertyGroup Label="Build">
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Library</OutputType>
<Deterministic>false</Deterministic>
<!-- OutputPath, OutDir, UseCommonOutputDirectory:
Shared sln output path to reduce build I/O.
WARNING: Can cause race conditions in rare cases, if so just comment out or remove.
Also note, this is for website builds only - ensure props are different dependent on target instance
-->
<OutputPath>$(SolutionDir)\bin\website\$(Configuration)\</OutputPath>
<OutDir>$(OutputPath)</OutDir>
<UseCommonOutputDirectory>True</UseCommonOutputDirectory>
<!-- Set solution-wide config file for binding redirects -->
<AppConfig>$(SolutionDir)\build\Solution.config</AppConfig>
<!-- TransformWebConfigEnabled
Disables the default msbuild webconfig transformation target,
not related to Helix style transforms. Disabled for slight performance improvement.
-->
<TransformWebConfigEnabled>False</TransformWebConfigEnabled>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<IgnoreTargetFrameworkAttributeVersionMismatch>true</IgnoreTargetFrameworkAttributeVersionMismatch>
<PackageAsSingleFile>false</PackageAsSingleFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
</Project>