Merge branch 'master' into ffast-math
[mono-project.git] / netcore / Directory.Build.props
blob2b58132e60eb79101840f1de4974acb7e4e581d8
1 <Project TreatAsLocalProperty="ExcludeRestorePackageImports">
3   <PropertyGroup>
4     <!--
5     For non-SDK projects that import this file and then import Microsoft.Common.props,
6     tell Microsoft.Common.props not to import Directory.Build.props again
7     -->
8     <ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
10     <!-- We use the compiler toolset that comes from NuGet Packages rather than the SDK built-in.
11     This one sets UseSharedCompilation to false by default. -->
12     <UseSharedCompilation>true</UseSharedCompilation>
14     <ToolSetCommonDirectory>$(MSBuildThisFileDirectory)artifacts\toolset\Common\</ToolSetCommonDirectory>
15     <IsSourceProject>$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory), 'src%24'))</IsSourceProject>
16   </PropertyGroup>
17   
18   <PropertyGroup>
19     <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
20       https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
21       https://dotnetfeed.blob.core.windows.net/dotnet-coreclr/index.json;
22       https://api.nuget.org/v3/index.json;
23       $(OverridePackageSource);
24       $(RestoreSources)
25     </RestoreSources>
26   </PropertyGroup>
28   <!-- Informs build tools to apply .NET Framework metadata if not a test project -->
29   <PropertyGroup>
30     <IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
31   </PropertyGroup>
33   <!-- Indicates this is not an officially supported release. Release branches should set this to false. -->
34   <PropertyGroup>
35     <IsPrerelease>true</IsPrerelease>
36   </PropertyGroup>
38   <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
40   <PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
41     <Copyright>$(CopyrightNetFoundation)</Copyright>
42     <PackageLicenseExpression>MIT</PackageLicenseExpression>
43   </PropertyGroup>
46   <!-- Language configuration -->
47   <PropertyGroup>
48     <!-- default to allowing all language features -->
49     <LangVersion>preview</LangVersion>
50     <!-- Enables Strict mode for Roslyn compiler -->
51     <Features>strict</Features>
52     <WarningLevel>4</WarningLevel>
53     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
54     <Deterministic>true</Deterministic>
56     <!-- Suppress preview message as we are usually using preview SDK versions. -->
57     <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
59     <GenFacadesIgnoreBuildAndRevisionMismatch>true</GenFacadesIgnoreBuildAndRevisionMismatch>
60   </PropertyGroup>
61 </Project>