diff options
author | Viktor Hofer <viktor.hofer@microsoft.com> | 2019-12-01 13:01:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 13:01:39 +0300 |
commit | 6afe96cc2e950379d13a87efa1fa5a651cbce9bd (patch) | |
tree | 24a139cdc7eb0a1c13a9bbf49c5c0000f96de615 /Directory.Build.targets | |
parent | 15b5c33507dbb556a44becf773fea1ab1064561c (diff) |
Converge common msbuild properties and targets (#338)
* Converge common msbuild properties and targets
Moving common msbuild properties and targets into the repo root.
* Consolidate analyzers logic into the repo root
Consolidating msbuild analyzers logic centrally in the repo root and
adding a property switch `EnableAnalyzers` to enable analyzers. We
still need to import the Analyzers.props file unconditionally as
libraries currently doesn't use the PackageReference logic in ref and
src projects and instead uses a depproj to create a props file
dynamically.
* More cleanup to fix CoreLib build
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r-- | Directory.Build.targets | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Directory.Build.targets b/Directory.Build.targets index 5180c31001b..7d40eb9ac30 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,5 +1,21 @@ <Project> + <PropertyGroup> + <!-- + For non-SDK projects that import this file and then import Microsoft.Common.targets, + tell Microsoft.Common.targets not to import Directory.Build.targets again + --> + <ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets> + </PropertyGroup> + <Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(SkipImportArcadeSdkFromRoot)' != 'true'" /> + <PropertyGroup> + <!-- + Define this here (not just in Versions.props) because the SDK resets it + unconditionally in Microsoft.NETCoreSdk.BundledVersions.props. + --> + <NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion> + </PropertyGroup> + </Project>
\ No newline at end of file |