Skip to content

Commit

Permalink
Update .NET to v8.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisFeline committed Jul 26, 2024
1 parent b5c5f26 commit bbd53eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

# Add MSBuild to the PATH
- name: Setup MSBuild.exe
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

# Build the application
- name: Build the application
run: dotnet publish $env:Solution_Name -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true --property:PublishDir=./publish
run: dotnet publish $env:Solution_Name -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true --property:PublishDir=./publish
env:
Configuration: ${{ matrix.configuration }}

Expand Down
3 changes: 2 additions & 1 deletion ToNSaveManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>Resources\icon.ico</ApplicationIcon>
<Version>1.0.0.1</Version>
<FileVersion>1.0.0.1</FileVersion>
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Windows/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private void ClickTimer_Tick(object? sender, EventArgs e) {
}

private void languageSelectBox_SelectedIndexChanged(object sender, EventArgs e) {
if (!FilledLanguages || languageSelectBox.SelectedIndex < 0) return;
if (!FilledLanguages || languageSelectBox.SelectedIndex < 0 || languageSelectBox.SelectedItem == null) return;
LANG.LangKey langKey = (LANG.LangKey)languageSelectBox.SelectedItem;

if (LANG.SelectedKey != langKey.Key) {
Expand Down

0 comments on commit bbd53eb

Please sign in to comment.