-
Notifications
You must be signed in to change notification settings - Fork 4
/
Directory.Build.props
41 lines (39 loc) · 1.69 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
<Project>
<Import Project="./eng/MetaInfo.props" />
<Import Project="./eng/Sign.props" />
<PropertyGroup>
<!-- Enable .NET code analysis (this is necessary for projects that target 3.1 or earlier). -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<CSNoWarn>CS1998;CS1591</CSNoWarn>
<NoWarn>$(NoWarn);$(CSNoWarn);NU5104</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsTestProject>false</IsTestProject>
<IsPackable>false</IsPackable>
<LangVersion>preview</LangVersion>
</PropertyGroup>
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<PackageReference Include="ApprovalTests" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.console" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="Moq" />
<PackageReference Include="Spectre.Console.Testing" />
</ItemGroup>
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
<Content Include="$(RepoRoot)\schema\**\*.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Link>Schema\%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
<Content Include="$(RepoRoot)\template\**\*.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Link>template\%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
</Project>