-
-
Notifications
You must be signed in to change notification settings - Fork 238
/
Copy pathDirectory.Build.props
69 lines (58 loc) · 2.97 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
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2021 Frans van Dorsselaer
SPDX-License-Identifier: GPL-3.0-only
-->
<Project>
<PropertyGroup>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' != 'true'">false</ContinuousIntegrationBuild>
<!-- Use the latest .NET SDK -->
<!-- This product requires Windows 10 (Windows Server 2019) or higher -->
<MainTargetFramework>net9.0-windows10.0.17763</MainTargetFramework>
<!-- This product only supports x64 (the only architecture supported by VBoxUsb) -->
<Platforms>x64</Platforms>
<!-- This allows building on Linux; however, building the installer requires Windows -->
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<!-- Use the latest C# language standard -->
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Be very strict -->
<WarningLevel>9999</WarningLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest-all</AnalysisLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CheckForOverflowUnderflow Condition="'$(Configuration)' == 'Debug'">true</CheckForOverflowUnderflow>
<!-- Common defaults -->
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<InvariantGlobalization>true</InvariantGlobalization>
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
<SelfContained>false</SelfContained>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<GenerateDependencyFile>false</GenerateDependencyFile>
<!-- See https://github.com/dotnet/roslyn/issues/41640 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PublishDocumentationFiles>false</PublishDocumentationFiles>
<NoWarn>CS1591</NoWarn>
<!-- Deterministic builds -->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode Condition="'$(GITHUB_ACTIONS)' == 'true'">true</RestoreLockedMode>
<!-- Assembly metadata -->
<Product>usbipd-win</Product>
<Company>Frans van Dorsselaer</Company>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dorssel.GitVersion.MsBuild" PrivateAssets="all" />
</ItemGroup>
<Target Name="SetCopyright" AfterTargets="GetVersion">
<PropertyGroup>
<!-- For deterministic builds, use the commit year as the copyright year. -->
<CopyrightYear Condition="$(ContinuousIntegrationBuild)">$([System.DateTime]::Parse($(GitVersion_CommitDate)).ToString("yyyy"))</CopyrightYear>
<CopyrightYear Condition="!$(ContinuousIntegrationBuild)">$([System.DateTime]::UtcNow.ToString("yyyy"))</CopyrightYear>
<Copyright>Copyright (C) $(CopyrightYear) $(Company)</Copyright>
</PropertyGroup>
</Target>
</Project>