forked from tpolyak/Sharp-Architecture
-
Notifications
You must be signed in to change notification settings - Fork 152
/
Directory.Build.props
89 lines (74 loc) · 3.61 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<Project>
<PropertyGroup Label="Build">
<Product>Sharp Architecture</Product>
<Authors>Sharp Architecture Dev Team</Authors>
<Copyright>Copyright © Sharp Architecture Development Team</Copyright>
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
<Culture></Culture>
<SignAssembly>false</SignAssembly>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsTestProject>false</IsTestProject>
<NoWarn>$(NoWarn);0105</NoWarn>
</PropertyGroup>
<PropertyGroup Label="Custom targets">
<!-- target frameworks for unit-tests and applications -->
<AppTargetFrameworks>netcoreapp3.1;net5.0;net6.0</AppTargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<Optimize>True</Optimize>
</PropertyGroup>
<!-- nullable checks -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net5.0' or '$(TargetFramework)' == 'net6.0'">
<DefineConstants>$(DefineConstants);NULLABLE_REFERENCE_TYPES</DefineConstants>
</PropertyGroup>
<PropertyGroup Label="Package" Condition="'$(MSBuildProjectName.Contains(Tests))' == false">
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<IsPackable>True</IsPackable>
<PackageIconUrl>https://github.com/sharparchitecture/Sharp-Architecture/raw/master/Artefacts/Documentation/icon.png</PackageIconUrl>
<PackageProjectUrl>http://sharparchitecture.github.io/</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>https://github.com/sharparchitecture/Sharp-Architecture/releases/tag/8.0.1</PackageReleaseNotes>
<PackageTags>sharp-architecture;sharp-arch</PackageTags>
</PropertyGroup>
<PropertyGroup Label="SourceLink">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == true">
<TargetFrameworks>$(AppTargetFrameworks)</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);0618;1591</NoWarn>
</PropertyGroup>
<ItemGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == false">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>SharpArch.XunitTests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<PropertyGroup Condition="'$(MSBuildProjectFullPath.Contains(Sample))' == true">
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.InteropServices.ComVisibleAttribute">
<_Parameter1>false</_Parameter1>
<_Parameter1_TypeName>System.Boolean</_Parameter1_TypeName>
</AssemblyAttribute>
</ItemGroup>
<!-- Common references -->
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2021.2.0" />
</ItemGroup>
</Project>