-
Notifications
You must be signed in to change notification settings - Fork 74
/
Directory.Build.props
60 lines (51 loc) · 2.72 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<UsingToolXUnit>false</UsingToolXUnit>
</PropertyGroup>
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">
<Copyright>$(CopyrightNetFoundation)</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<NoWarn>$(NoWarn);NU5125;CA1416</NoWarn>
<!--
We sort of half sort of support macOS in this repo, this warning is telling us that we are on the precipice of
failure (because we are depending on win-x64 only assemblies). But darc is basically standing in the middle
of a thunderstorm and just hasn't been struck by lightning.
We don't have any validation around this scenario, and we don't have time to separate out all our dependencies
to let the compiler help us.
So the answer is to close our eyes, and tell the compiler to just... let it rain.
The "root" of the problem is that "ServiceHost" is win-x64 only, and "darc.exe" wants to be "any",
but all the _rest_ of the assemblies in the middle aren't separated or marked correctly to reflect
which half of the universe they are intended for/allowed in, so the streams get crossed a lot.
-->
<NoWarn>$(NoWarn);MSB3270</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>latest</LangVersion>
<IsShipping>false</IsShipping>
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
<EnableCentralPackageVersions>true</EnableCentralPackageVersions>
<CentralPackagesFile>$(MSBuildThisFileDirectory)eng/Packages.props</CentralPackagesFile>
<CentralPackageVersionOverrideEnabled>true</CentralPackageVersionOverrideEnabled>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
<DisableImplicitNamespaceImports_DotNet>true</DisableImplicitNamespaceImports_DotNet>
<DisableImplicitNamespaceImports_Web>true</DisableImplicitNamespaceImports_Web>
<DisableImplicitNamespaceImports_Worker>true</DisableImplicitNamespaceImports_Worker>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
<PropertyGroup>
<TestRunnerName></TestRunnerName>
</PropertyGroup>
<ItemGroup Condition=" '$(IsTestProject)' == 'true' ">
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Moq" />
<PackageReference Include="NUnit" />
<PackageReference Include="NUnit3TestAdapter">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>