forked from dotnet/command-line-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
27 lines (22 loc) · 1.01 KB
/
Directory.Build.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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="Sdk.props"
Sdk="Microsoft.DotNet.Arcade.Sdk"
Condition="'$(DisableArcade)' != '1'" />
<PropertyGroup>
<NoWarn>$(NoWarn);NU5125;CS0618</NoWarn>
<NoWarn Condition=" '$(DotnetBuildFromSource)' == 'true' ">$(NoWarn);CS8714;CS8765;CS8600;CS8601;CS8602;CS8603;CS8604</NoWarn>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<LangVersion>10.0</LangVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
<TargetFrameworkForNETSDK>$(NetCurrent)</TargetFrameworkForNETSDK>
</PropertyGroup>
<PropertyGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<TargetFrameworkForNETSDK>net7.0</TargetFrameworkForNETSDK>
</PropertyGroup>
<PropertyGroup>
<!-- This repo is currently on the .NET 5 APIs, but a build task in license validation during source build requires 6.0. -->
<SuppressLicenseValidation>true</SuppressLicenseValidation>
</PropertyGroup>
</Project>