Skip to content

Commit

Permalink
Update to .NET 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan committed Sep 4, 2024
1 parent 86c674d commit e81adf9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ v3 ]

env:
DOTNET_VERSION: 7.0.x
DOTNET_VERSION: 8.0.x

jobs:
build:
Expand All @@ -18,7 +18,7 @@ jobs:
submodules: true

- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags: [ v* ]

env:
DOTNET_VERSION: 7.0.x
DOTNET_VERSION: 8.0.x
BUNDLE_PLATFORMS: x64|arm64

jobs:
Expand All @@ -17,16 +17,16 @@ jobs:
submodules: true

- name: Use .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Use MSBuild
uses: microsoft/setup-msbuild@v1
uses: microsoft/setup-msbuild@v2

- name: Setup Version
id: setup_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
shell: bash

- name: Update package manifest
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
/verbosity:minimal
- name: Upload MSIX
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: msix
path: packed\*.msixupload
10 changes: 5 additions & 5 deletions WinQuickLook.Package/WinQuickLook.Package.wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
<PropertyGroup>
<ProjectGuid>bdf91474-db8c-45f6-8025-8142102510a5</ProjectGuid>
<TargetPlatformVersion>10.0.20348.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
<AssetTargetFallback>net7.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)</AssetTargetFallback>
<TargetPlatformVersion>10.0.26100.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.22621.0</TargetPlatformMinVersion>
<AssetTargetFallback>net8.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)</AssetTargetFallback>
<DefaultLanguage>en-US</DefaultLanguage>
<NoWarn>$(NoWarn);NU1702</NoWarn>
<EntryPointProjectUniqueName>..\WinQuickLook\WinQuickLook.csproj</EntryPointProjectUniqueName>
Expand Down Expand Up @@ -112,11 +112,11 @@
</ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" PrivateAssets="all" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\WinQuickLook\WinQuickLook.csproj">
<PublishProfile>Properties\PublishProfiles\win10-$(Platform).pubxml</PublishProfile>
<PublishProfile>Properties\PublishProfiles\win-$(Platform).pubxml</PublishProfile>
</ProjectReference>
</ItemGroup>
</Project>
13 changes: 7 additions & 6 deletions WinQuickLook/WinQuickLook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>Icon.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<GenerateSatelliteAssembliesForCore>true</GenerateSatelliteAssembliesForCore>
<ApplicationHighDpiMode>PerMonitorV2</ApplicationHighDpiMode>
<DefineConstants>$(Platform.ToUpper())</DefineConstants>
<SupportedOSPlatformVersion>10.0.22621.0</SupportedOSPlatformVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -22,11 +23,11 @@
<ItemGroup>
<PackageReference Include="AvalonEdit" Version="6.3.0.90" />
<PackageReference Include="Hardcodet.NotifyIcon.Wpf" Version="1.1.0" />
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="5.0.2" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="5.0.2" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1938.49" />
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="5.0.5" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="5.0.5" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2739.15" />
<PackageReference Include="PdfiumLibrary" Version="1.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
<PackageReference Include="TagLibSharp" Version="2.3.0" />
</ItemGroup>

Expand Down

0 comments on commit e81adf9

Please sign in to comment.