-
Notifications
You must be signed in to change notification settings - Fork 52
/
Directory.Build.props
62 lines (47 loc) · 2.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
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
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!--
Listing of all build flags.
i.e. for `dotnet build -p:DefineConstants="FLAGS"`
Functionality:
NEXUSMODS_APP_USE_SYSTEM_EXTRACTOR: Use system `7z` binary for extraction.
- This is intended for Linux package maintainers.
- Alternatively, this is available with `-p:UseSystemExtractor=true`
Deployment:
Note: These are set during CI and should not be set here.
This is just for completeness.
INSTALLATION_METHOD_ARCHIVE: App should have been installed via archive.
INSTALLATION_METHOD_INNO_SETUP: Installed via InnoSetup (Windows)
INSTALLATION_METHOD_PACKAGE_MANAGER: Installed with a package manager.
INSTALLATION_METHOD_APPIMAGE: Running via AppImage (Linux)
________________
When defining constants with newlines, you need to suffix with ';'
This isn't common knowledge - Sewer
-->
</PropertyGroup>
<PropertyGroup>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<!-- https://github.com/dotnet/sourcelink/tree/main/docs#continuousintegrationbuild -->
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<!-- https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/code-generation#deterministic -->
<Deterministic>true</Deterministic>
<!-- https://github.com/dotnet/sourcelink/tree/main/docs#deterministicsourcepaths -->
<DeterministicSourcePaths>true</DeterministicSourcePaths>
</PropertyGroup>
<PropertyGroup>
<!-- SYSLIB1006: Multiple logging methods cannot use the same event ID -->
<NoWarn>$(NoWarn);SYSLIB1006</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" />
</ItemGroup>
</Project>