-
Notifications
You must be signed in to change notification settings - Fork 1
/
Directory.Build.props
86 lines (76 loc) · 4.1 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
<Project>
<PropertyGroup Label="Versioning">
<VersionMajor>2</VersionMajor>
<VersionMinor>9</VersionMinor>
<VersionPatch>$([System.DateTime]::UtcNow.ToString("MMdd"))</VersionPatch>
<VersionRevision>$([System.DateTime]::UtcNow.TimeOfDay.TotalHours.ToString("0"))</VersionRevision>
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch).$(VersionRevision)</VersionPrefix>
<VersionSuffix Condition="$(Configuration.Equals('Debug'))">Development</VersionSuffix>
<FileVersion>$(VersionMajor).$(VersionMinor).$(VersionPatch)</FileVersion>
</PropertyGroup>
<PropertyGroup Label="Technical">
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<AnalysisLevel>latest</AnalysisLevel>
<AnalysisMode>recommended</AnalysisMode>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<AssemblyOriginatorKeyFile>..\..\PublicKey.snk</AssemblyOriginatorKeyFile>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<DebugType>full</DebugType>
<Deterministic>true</Deterministic>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnablePackageValidation>true</EnablePackageValidation>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratedAssemblyInfoFile>Properties\AssemblyInfo.cs</GeneratedAssemblyInfoFile>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<Nullable>enable</Nullable>
<SignAssembly>true</SignAssembly>
<TargetFrameworks>netstandard2.0;net462;net6.0;net8.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
</PropertyGroup>
<PropertyGroup Condition="!$(MSBuildProjectName.EndsWith('Tests'))">
<Authors>BoBoBaSs84</Authors>
<Company>https://github.com/BoBoBaSs84</Company>
<Copyright>Copyright © $([System.DateTime]::UtcNow.Year) BoBoBaSs84</Copyright>
<Description>A collection of some random C# extensions I needed in many projects.</Description>
<Product>BB84.Extensions</Product>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/BoBoBaSs84/BB84.Extensions</RepositoryUrl>
<Title>$(AssemblyName)</Title>
</PropertyGroup>
<PropertyGroup Condition="!$(MSBuildProjectName.EndsWith('Tests'))" Label="Package">
<PackageIcon>icon.png</PackageIcon>
<PackageId>BB84.Extensions</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/BoBoBaSs84/BB84.Extensions</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>https://github.com/BoBoBaSs84/BB84.Extensions/releases/tag/$(FileVersion)</PackageReleaseNotes>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageTags>library;csharp;extensions;common</PackageTags>
<PackageVersion>$(FileVersion)</PackageVersion>
</PropertyGroup>
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<IsPackable>false</IsPackable>
<IsTestProject>True</IsTestProject>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<TargetFrameworks>net462;net6.0;net8.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup Condition="!$(MSBuildProjectName.EndsWith('Tests'))">
<InternalsVisibleTo Include="$(AssemblyName)Tests" Key="0024000004800000940000000602000000240000525341310004000001000100516456cd4ae4971c5f05a29182bdaec411efa3fab154013c2883be91fde6cd67ae35bb7f89003ab2905620dbb318c9710bc34c5cb771695e0a9202555c4ca542a5d25703e7002ab6588d8dc90107f141145dbd06dfdc918a7eb39eb275f0fb2ed8c1f0e6bf1b79f936a23476d327ceba42f02c231ca7c50a99bcff3120724bc0" />
<None Include="..\..\LICENSE" Pack="True" PackagePath="\" />
<None Include="..\..\icon.png" Pack="True" PackagePath="\" />
<None Include="..\..\README.md" Pack="True" PackagePath="\" />
</ItemGroup>
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
<Using Include="System.Diagnostics" />
<Using Include="System.Diagnostics.CodeAnalysis" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>