forked from Hofknecht/SystemTrayMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSystemTrayMenu.csproj
173 lines (173 loc) · 9.24 KB
/
SystemTrayMenu.csproj
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<Project Sdk="Microsoft.NET.Sdk">
<!-- Global project settings -->
<PropertyGroup>
<!-- https://learn.microsoft.com/en-us/dotnet/standard/frameworks -->
<TargetFrameworks>net8.0;net8.0-windows10.0.22000.0;net7.0-windows10.0.22000.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(RuntimeIdentifier)' == 'linux-x64' ">net8.0</TargetFrameworks> <!-- Linux Avalonia -->
<TargetFrameworks Condition=" '$(RuntimeIdentifier)' == 'osx-x64' ">net8.0</TargetFrameworks> <!-- MacOS Avalonia -->
<TargetFrameworks Condition=" '$(RuntimeIdentifier)' == 'osx-arm64' ">net8.0</TargetFrameworks> <!-- MacOS Avalonia -->
<!-- https://docs.microsoft.com/en-us/dotnet/core/rid-catalog -->
<UseCurrentRuntimeIdentifier>true</UseCurrentRuntimeIdentifier>
<RuntimeIdentifier Condition=" '$(TargetFramework)' == 'net7.0-windows10.0.22000.0' ">win-x64</RuntimeIdentifier> <!-- Windows WPF -->
<RuntimeIdentifier Condition=" '$(TargetFramework)' == 'net8.0-windows10.0.22000.0' ">win-x64</RuntimeIdentifier> <!-- Windows Avalonia -->
<UseWPF Condition=" '$(TargetFramework)' != 'net7.0-windows10.0.22000.0' ">False</UseWPF>
<UseWPF Condition=" '$(TargetFramework)' == 'net7.0-windows10.0.22000.0' ">True</UseWPF>
<!-- TODO_LINUX/TODO_AVALONIA define marks WPF/Windows code that needs to be ported to Avalonia/Linux -->
<DefineConstants Condition=" '$(RuntimeIdentifier)' == 'win-x64' ">$(DefineConstants);TODO_LINUX</DefineConstants>
<DefineConstants Condition=" '$(UseWPF)' ">$(DefineConstants);TODO_AVALONIA</DefineConstants>
<DefineConstants Condition=" !'$(UseWPF)' ">$(DefineConstants);AVALONIA</DefineConstants>
<!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
<TrimMode>copyused</TrimMode>
<Nullable>enable</Nullable>
<SelfContained>true</SelfContained>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<Platforms>x64;x86;AnyCPU</Platforms>
<Configurations>Debug;Release;ReleasePackage</Configurations>
<OutputType>WinExe</OutputType>
<OutputPath>bin\$(Platform)\$(Configuration)\</OutputPath>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>true</UseApplicationTrust>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RepositoryUrl>https://github.com/Hofknecht/SystemTrayMenu</RepositoryUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>hofknecht.eu/systemtraymenu/</PackageProjectUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryType></RepositoryType>
<PackageTags>SystemTrayMenu</PackageTags>
<SupportedOSPlatformVersion>10.0.22000.0</SupportedOSPlatformVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<StartupObject>SystemTrayMenu.Program</StartupObject>
<ApplicationManifest>Resources\app.manifest</ApplicationManifest>
<ApplicationIcon>Resources\SystemTrayMenu.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition=" '$(RuntimeIdentifier)' == 'win-x64' ">
<PreBuildEvent>taskkill /f /fi "pid gt 0" /im SystemTrayMenu.exe >nul
EXIT 0</PreBuildEvent>
</PropertyGroup>
<PropertyGroup Condition=" '$(UseWPF)' ">
<NoWarn>$(NoWarn);SYSLIB1054</NoWarn> <!-- Do not use recommended LibraryImport as it requires to enable unsafe code for the whole project which is not required by DllImport -->
</PropertyGroup>
<PropertyGroup Condition=" !'$(UseWPF)' ">
<NoWarn>$(NoWarn);IDE0028</NoWarn> <!-- Using simplified collection initializers will break the code for pre-.Net8 code (Still in used by WPF) -->
<NoWarn>$(NoWarn);IDE0066</NoWarn> <!-- Using new switch syntax will break the code for pre-.Net8 code (Still in used by WPF) -->
<NoWarn>$(NoWarn);IDE0290</NoWarn> <!-- Using primary constructor will break the code for pre-.Net8 code (Still in used by WPF) -->
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
</PropertyGroup>
<!-- Files -->
<ItemGroup>
<AdditionalFiles Include=".stylecop.json" />
<EmbeddedResource Remove="UserInterface\Menu.resx" />
<Resource Include="Resources\SystemTrayMenu.ico" />
<Resource Include="Resources\SystemTrayMenu.png" />
<Resource Include="Resources\LinkArrow.ico" />
<Resource Include="Resources\Loading.ico" />
<Resource Include="Resources\HowToOpenSettings.png" />
<Resource Include="Resources\NotFound.ico" />
<Folder Include="Packaging\AppPackages\" />
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<None Include="LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Update="Package.appxmanifest">
<SubType>Designer</SubType>
</None>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Update="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup Condition=" !'$(UseWPF)' ">
<Page Remove="**/*.xaml" />
<None Include="**/*.xaml" />
<Compile Remove="**/*.xaml.cs" />
<Compile Include="**/*.xaml.cs" Link="%(RecursiveDir)$([System.IO.Path]::ChangeExtension('%(Filename)', 'axaml.cs'))" />
<AvaloniaResource Include="Resources/**" />
<AvaloniaResource Remove="Resources/ScrollBarStyles.xaml" />
<!--AvaloniaXaml Include="**/*.axaml" /-->
</ItemGroup>
<ItemGroup Condition=" '$(UseWPF)' ">
<None Include="**/*.axaml" />
</ItemGroup>
<!-- References NuGet -->
<ItemGroup>
<PackageReference Include="HidSharp" Version="2.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<Reference Include="Clearcove.Logging, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>ThirdParty\Clearcove.Logging.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition=" '$(UseWPF)' ">
<PackageReference Include="H.NotifyIcon" Version="2.0.131" />
<PackageReference Include="PixiEditor.ColorPicker" Version="3.4.1" />
</ItemGroup>
<ItemGroup Condition=" !'$(UseWPF)' ">
<PackageReference Include="Avalonia" Version="11.0.10" />
<PackageReference Include="Avalonia.Controls.ColorPicker" Version="11.0.10" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.10" />
<PackageReference Include="Avalonia.Controls.ItemsRepeater" Version="11.0.10" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.10" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.10" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.10" />
<PackageReference Include="Avalonia.Xaml.Behaviors" Version="11.0.10.9" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
</ItemGroup>
<!-- References Native -->
<ItemGroup Condition=" '$(RuntimeIdentifier)' == 'win-x64' ">
<COMReference Include="IWshRuntimeLibrary">
<Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
<COMReference Include="Shell32">
<Guid>{50A7E9B0-70EF-11D1-B75A-00A0C90564FE}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Target Name="TargetInfo" BeforeTargets="Build" >
<Message Text="Build for $(RuntimeIdentifier) using $(TargetFramework)" Importance="high"/>
</Target>
</Project>