mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-07-06 06:51:04 +12:00
Remove use of resx file Resource files are marked as "Resource" instead Resources are loaded via resource dictionaries (either from code behind or XAML directly through binding) Reduce amount of required image conversions Also fix overlay of 50 percent transparency (is now rendered half transparent correct instead of adding "white fog") Remove obsolete image as rendering is done directly in code Also fix rendering of link indicator at correct image position Also remove setting Icons of all Windows (as default is application icon anyway)
240 lines
10 KiB
XML
240 lines
10 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
|
|
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
|
<UseWPF>True</UseWPF>
|
|
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
|
|
<OutputType>WinExe</OutputType>
|
|
<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>
|
|
<Nullable>enable</Nullable>
|
|
<Platforms>x64;x86;AnyCPU</Platforms>
|
|
<Configurations>Debug;Release;ReleasePackage</Configurations>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<StartupObject>SystemTrayMenu.Program</StartupObject>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<ApplicationIcon>Resources\SystemTrayMenu.ico</ApplicationIcon>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
<OutputPath>bin\AnyCPU\Debug\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
|
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
|
<OutputPath>bin\x64\Release\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
<OutputPath>bin\AnyCPU\Release\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|x64'">
|
|
<OutputPath>bin\x64\Release\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|AnyCPU'">
|
|
<OutputPath>bin\AnyCPU\Release\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
|
<OutputPath>bin\x86\Release\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|x86'">
|
|
<OutputPath>bin\x86\Release\</OutputPath>
|
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<ErrorReport>none</ErrorReport>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<Optimize>True</Optimize>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
<ErrorReport>none</ErrorReport>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<Optimize>True</Optimize>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|x64'">
|
|
<ErrorReport>none</ErrorReport>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<Optimize>True</Optimize>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|AnyCPU'">
|
|
<ErrorReport>none</ErrorReport>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<Optimize>True</Optimize>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
|
<ErrorReport>none</ErrorReport>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<Optimize>True</Optimize>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|x86'">
|
|
<ErrorReport>none</ErrorReport>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<Optimize>True</Optimize>
|
|
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Remove="UserInterface\HotkeyTextboxControl\**" />
|
|
<EmbeddedResource Remove="UserInterface\HotkeyTextboxControl\**" />
|
|
<None Remove="UserInterface\HotkeyTextboxControl\**" />
|
|
<Page Remove="UserInterface\HotkeyTextboxControl\**" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<EmbeddedResource Remove="UserInterface\Menu.resx" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Page Remove="Business\App.xaml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ApplicationDefinition Include="Business\App.xaml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<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>
|
|
<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>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<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" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<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>
|
|
<ItemGroup>
|
|
<PackageReference Include="H.NotifyIcon" Version="2.0.108" />
|
|
<PackageReference Include="HidSharp" Version="2.1.0" />
|
|
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="PixiEditor.ColorPicker" Version="3.3.1" />
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Folder Include="Packaging\AppPackages\" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<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>
|
|
<PropertyGroup>
|
|
<PreBuildEvent>taskkill /f /fi "pid gt 0" /im SystemTrayMenu.exe >nul
|
|
EXIT 0</PreBuildEvent>
|
|
<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.17763.0</SupportedOSPlatformVersion>
|
|
<ApplicationManifest>Resources\app.manifest</ApplicationManifest>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
|
|
<EnableNETAnalyzers>True</EnableNETAnalyzers>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<FrameworkReference Update="Microsoft.WindowsDesktop.App;Microsoft.WindowsDesktop.App.WPF" TargetingPackVersion="6.0.0" />
|
|
</ItemGroup>
|
|
|
|
<!-- it seems only obj clean and then opening visual studio helps -->
|
|
<!-- NOT TESTED: Microsoft.NET.Sdk.WindowsDesktop -->
|
|
<!-- Workaround: Clear C:\Users\Peter K\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache (and bin and obj) -->
|
|
<!-- Workaround for XAML compiler issue https://github.com/dotnet/wpf/issues/4299
|
|
<UsingTask TaskName="Sleep" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
|
|
<ParameterGroup>
|
|
<Delay ParameterType="System.Int32" Required="true" />
|
|
</ParameterGroup>
|
|
<Task>
|
|
<Code Type="Fragment" Language="cs">
|
|
<![CDATA[
|
|
System.Threading.Thread.Sleep(this.Delay);
|
|
]]>
|
|
</Code>
|
|
</Task>
|
|
</UsingTask>
|
|
|
|
<Target Name="WaitForFiles" BeforeTargets="CoreCompile">
|
|
<PropertyGroup>
|
|
<WaitTime>5000</WaitTime>
|
|
</PropertyGroup>
|
|
<Message Text="Waiting for $(WaitTime)ms" Importance="high" />
|
|
<Sleep Delay="$(WaitTime)"/>
|
|
</Target>
|
|
-->
|
|
</Project> |