1 <Project TreatAsLocalProperty="ExcludeRestorePackageImports">
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
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>
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);
28 <!-- Informs build tools to apply .NET Framework metadata if not a test project -->
30 <IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
33 <!-- Indicates this is not an officially supported release. Release branches should set this to false. -->
35 <IsPrerelease>true</IsPrerelease>
38 <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
40 <PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
41 <Copyright>$(CopyrightNetFoundation)</Copyright>
42 <PackageLicenseExpression>MIT</PackageLicenseExpression>
46 <!-- Language configuration -->
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>