Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to .NET Framework 4.8 and set to high DPI aware #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
shell: cmd

- name: Build the solution
run: msbuild /p:Configuration=Release /p:TargetFrameworkVersion="v4.5.2" /p:DebugSymbols=False "%Solution_Name%"
run: msbuild /p:Configuration=Release /p:TargetFrameworkVersion="v4.8" /p:DebugSymbols=False "%Solution_Name%"
shell: cmd

- name: Sign the installer
Expand All @@ -46,7 +46,7 @@ jobs:

- name: Verify the signature
if: ${{ github.event_name != 'pull_request' }}
run: call "%programfiles(x86)%/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe" verify /v /pa "bin/Release/FreenetTray.exe"
run: call "%programfiles(x86)%/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe" verify /v /pa "bin/Release/FreenetTray.exe"
shell: cmd

- name: Upload the installer as an artifact
Expand Down
4 changes: 2 additions & 2 deletions FreenetTray.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down Expand Up @@ -334,4 +334,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
8 changes: 6 additions & 2 deletions app.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<section name="FreenetTray.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup><userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup><userSettings>
<FreenetTray.Properties.Settings>
<setting name="StartIcon" serializeAs="String">
<value>True</value>
Expand All @@ -23,8 +23,12 @@
<value>Off</value>
</setting>
<setting name="CustomLocation" serializeAs="String">
<value />
<value/>
</setting>
</FreenetTray.Properties.Settings>
</userSettings>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitor" />
<add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection>
</configuration>