-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_Build.props
62 lines (50 loc) · 2.74 KB
/
_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
61
62
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsCLSCompliant>true</IsCLSCompliant>
<!-- This is needed sometimes when packing single projects -->
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<HiveToolsDirectory>$(MSBuildThisFileDirectory)</HiveToolsDirectory>
<HiveRootDirectory>$(HiveToolsDirectory)..\</HiveRootDirectory>
<HiveSourceDirectory>$(HiveRootDirectory)src\</HiveSourceDirectory>
<!-- Make sure we aren't incompatible with the Hive SDK -->
<ImportHiveDefaultTargets>false</ImportHiveDefaultTargets>
<UseHiveSharedProperties>false</UseHiveSharedProperties>
<RoslynVersion>4.0.0</RoslynVersion>
<MSBuildRequiredVersion>17.0.0</MSBuildRequiredVersion>
</PropertyGroup>
<Import Project="$(HiveToolsDirectory)SharedProps.props"/>
<Import Project="$(HiveToolsDirectory)NuGetInfo.props" />
<Import Project="$(HiveToolsDirectory)Artifacts.props" />
<ItemGroup>
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="$(RoslynVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="$(RoslynVersion)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<!-- For any target nullable and records -->
<PackageReference Include="IsExternalInit" Version="1.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Nullable" Version="1.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="'$(Tests)' == 'true'">
<PackageReference Include="Moq" Version="4.*" />
<PackageReference Include="xunit" Version="2.*" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import Project="$(HiveSourceDirectory)\$(CodeGenPropsFile)" Condition="'$(CodeGenPropsFile)' != '' and '$(IsCodeGen)' != 'true'" />
<Import Project="$(HiveToolsDirectory)Packaging.props" />
<Import Project="$(HiveToolsDirectory)VSDocEditing.props" />
</Project>