generated from YoloDev/dotnet-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
32 lines (27 loc) · 1.35 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
<Project>
<PropertyGroup>
<TargetFrameworks>net6.0;net5.0;netstandard2.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTestProject>false</IsTestProject>
<IsTestProject Condition=" $(MSBuildProjectName.EndsWith('Tests')) ">true</IsTestProject>
</PropertyGroup>
<PropertyGroup Condition=" '$(IsTestProject)' == 'true' ">
<TargetFrameworks>net6.0;net5.0;net48;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSUnixLike())">net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Roslynator.Analyzers" PrivateAssets="all" IncludeAssets="analyzers" />
<PackageReference Include="Roslynator.Formatting.Analyzers" PrivateAssets="all" IncludeAssets="analyzers" />
</ItemGroup>
<ItemGroup Condition=" '$(IsTestProject)' == 'true' ">
<PackageReference Include="FakeItEasy" />
<PackageReference Include="FakeItEasy.Analyzer.CSharp" PrivateAssets="All" IncludeAssets="build; analyzers" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="FsCheck.Xunit" />
<PackageReference Include="FsCheck" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="xunit" />
</ItemGroup>
</Project>