-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
111 lines (106 loc) · 4.58 KB
/
Directory.Build.props
File metadata and controls
111 lines (106 loc) · 4.58 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<Project>
<ItemGroup>
<PackageReference Include="GitVersion.MsBuild" Condition="!Exists('packages.config')" Version="6.6.0" PrivateAssets="all"/>
</ItemGroup>
<PropertyGroup>
<Company>BrycensRanch and ShareX Team</Company>
<Product>SnapX</Product>
<Title>SnapX</Title>
<Description>Capture, share, and boost productivity. All in one.</Description>
<Copyright>Copyright (c) 2026 BrycensRanch and ShareX Team</Copyright>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<IncludeDebugSymbolsProjectOutputGroup>false</IncludeDebugSymbolsProjectOutputGroup>
<Optimize>true</Optimize>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>net10.0</TargetFramework>
<GitVersionTargetFramework>$(TargetFramework)</GitVersionTargetFramework>
<WriteVersionInfoToBuildLog>true</WriteVersionInfoToBuildLog>
<RollForward>LatestMajor</RollForward>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>0.5.0</Version>
</PropertyGroup>
<PropertyGroup Condition="!Exists('.git')">
<UpdateAssemblyInfo>false</UpdateAssemblyInfo>
<DisableGitVersionTask>true</DisableGitVersionTask>
</PropertyGroup>
<PropertyGroup>
<TargetLinux>false</TargetLinux>
<TargetWindows>false</TargetWindows>
<TargetMacOS>false</TargetMacOS>
<TargetFreeBSD>false</TargetFreeBSD>
<TargetDesktop>false</TargetDesktop>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' != '' and $(RuntimeIdentifier.Contains('browser'))">
<DefineConstants>$(DefineConstants);BROWSER</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'false' and
(
$([System.String]::Copy($(RuntimeIdentifier)).StartsWith('linux'))
or $(RuntimeIdentifier.Contains('ubuntu'))
or $(RuntimeIdentifier.Contains('debian'))
or $(RuntimeIdentifier.Contains('fedora'))
or $(RuntimeIdentifier.Contains('alpine'))
or $(RuntimeIdentifier.Contains('arch'))
or $(RuntimeIdentifier.Contains('rhel'))
or $(RuntimeIdentifier.Contains('centos'))
or $(RuntimeIdentifier.Contains('opensuse'))
)
)
or
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'true' and
$([MSBuild]::IsOSPlatform('Linux'))
)
">
<TargetLinux>true</TargetLinux>
</PropertyGroup>
<PropertyGroup Condition="
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'false' and
$([System.String]::Copy($(RuntimeIdentifier)).StartsWith('win')))
or
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'true' and
$([MSBuild]::IsOSPlatform('Windows')))
">
<TargetWindows>true</TargetWindows>
<TargetFramework>$(TargetFramework)-windows10.0.26100.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'false' and
$([System.String]::Copy($(RuntimeIdentifier)).StartsWith('osx')))
or
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'true' and
$([MSBuild]::IsOSPlatform('OSX')))
">
<TargetMacOS>true</TargetMacOS>
</PropertyGroup>
<PropertyGroup Condition="
(
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'false' and
$([System.String]::Copy($(RuntimeIdentifier)).StartsWith('freebsd')))
or
('$([System.String]::IsNullOrEmpty($(RuntimeIdentifier)))' == 'true' and
$([MSBuild]::IsOSPlatform('FreeBSD')))
or
('$(SNAPX_PRETEND_FREEBSD)' == '1')
)
">
<TargetFreeBSD>true</TargetFreeBSD>
<DefineConstants>$(DefineConstants);FREEBSD</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(TargetMacOS)' == 'true' and ( '$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe' )">
<LinkerArg Include="-Wl,-ld_classic" />
</ItemGroup>
<PropertyGroup Condition="'$(TargetWindows)' == 'true' and ( '$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe' )">
<UseCurrentRuntimeIdentifier>true</UseCurrentRuntimeIdentifier>
<UseRIDGraph>true</UseRIDGraph>
<EnableMsixTooling>true</EnableMsixTooling>
<Platforms>x64;arm64</Platforms>
</PropertyGroup>
<PropertyGroup>
<TargetDesktop Condition="'$(TargetWindows)' == 'true'
or '$(TargetLinux)' == 'true'
or '$(TargetMacOS)' == 'true'
or '$(TargetFreeBSD)' == 'true'">true</TargetDesktop>
</PropertyGroup>
</Project>