Directory.Build.props 2.4 KB

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