From 1bfad8740c9e3c91f5182fbc919116e399b634e6 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 05:47:11 -0400 Subject: [PATCH 01/14] update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 41dfb01..4a53c2a 100644 --- a/README.md +++ b/README.md @@ -147,4 +147,10 @@ So technically, as long as you are using the music apps (like ``` +## Star History + +[![Star History Chart](https://api.star-history.com/svg?repos=jayfunc/BetterLyrics&type=Date)](https://www.star-history.com/#jayfunc/BetterLyrics&Date) + ## Any issues and PRs are welcomed + +If you find a bug please file it in issues or if you have any ideas feel free to share it here. \ No newline at end of file From 004dcbb4f4344cfb8cfb4d96766c762f00c30eaf Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:19:00 -0400 Subject: [PATCH 02/14] Create dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 115 +++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 .github/workflows/dotnet-desktop.yml diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..649fc4a --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,115 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow will build, test, sign and package a WPF or Windows Forms desktop application +# built on .NET Core. +# To learn how to migrate your existing application to .NET Core, +# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework +# +# To configure this workflow: +# +# 1. Configure environment variables +# GitHub sets default environment variables for every workflow run. +# Replace the variables relative to your project in the "env" section below. +# +# 2. Signing +# Generate a signing certificate in the Windows Application +# Packaging Project or add an existing signing certificate to the project. +# Next, use PowerShell to encode the .pfx file using Base64 encoding +# by running the following Powershell script to generate the output string: +# +# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte +# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt' +# +# Open the output file, SigningCertificate_Encoded.txt, and copy the +# string inside. Then, add the string to the repo as a GitHub secret +# and name it "Base64_Encoded_Pfx." +# For more information on how to configure your signing certificate for +# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing +# +# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key". +# See "Build the Windows Application Packaging project" below to see how the secret is used. +# +# For more information on GitHub Actions, refer to https://github.com/features/actions +# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications, +# refer to https://github.com/microsoft/github-actions-for-desktop-apps + +name: .NET Core Desktop + +on: + push: + branches: [ "stable" ] + pull_request: + branches: [ "stable" ] + +jobs: + + build: + + strategy: + matrix: + configuration: [Debug, Release] + + runs-on: windows-latest # For a list of available runner types, refer to + # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on + + env: + Solution_Name: BetterLyrics.sln # Replace with your solution name, i.e. MyWpfApp.sln. + Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. + Wap_Project_Directory: BetterLyrics.WinUI3\BetterLyrics.WinUI3 (Package) # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. + Wap_Project_Path: BetterLyrics.WinUI3\BetterLyrics.WinUI3 (Package)\BetterLyrics.WinUI3 (Package).wapproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # Install the .NET Core workload + - name: Install .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v2 + + # Execute all unit tests in the solution + - name: Execute unit tests + run: dotnet test + + # Restore the application to populate the obj folder with RuntimeIdentifiers + - name: Restore the application + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration + env: + Configuration: ${{ matrix.configuration }} + + # Decode the base 64 encoded pfx and save the Signing_Certificate + - name: Decode the pfx + run: | + $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") + $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx + [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) + + # Create the app package by building and packaging the Windows Application Packaging project + - name: Create the app package + run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} + env: + Appx_Bundle: Always + Appx_Bundle_Platforms: x86|x64 + Appx_Package_Build_Mode: StoreUpload + Configuration: ${{ matrix.configuration }} + + # Remove the pfx + - name: Remove the pfx + run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx + + # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: MSIX Package + path: ${{ env.Wap_Project_Directory }}\AppPackages From f512e686b022cf56bc4644a566e85e87a1e0f39a Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:27:09 -0400 Subject: [PATCH 03/14] Create nuget.config --- nuget.config | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nuget.config diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..a610900 --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + + From 377d68d83c8bf9780c276b158db012b9aff87bd1 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:33:40 -0400 Subject: [PATCH 04/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 649fc4a..c547d8f 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -77,6 +77,10 @@ jobs: - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v2 + - name: Add CommunityToolkit Azure DevOps NuGet source + run: | + dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json --name CommunityToolkit-Labs --store-password-in-clear-text --configfile nuget.config + # Execute all unit tests in the solution - name: Execute unit tests run: dotnet test From 1a736c13d5e8993e4ff295631aca7b7a66ccbb08 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:36:58 -0400 Subject: [PATCH 05/14] Delete nuget.config --- nuget.config | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 nuget.config diff --git a/nuget.config b/nuget.config deleted file mode 100644 index a610900..0000000 --- a/nuget.config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - From 3dc14e52d8d6dea330ec2a04d75576205c10909e Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:42:48 -0400 Subject: [PATCH 06/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index c547d8f..0cb6010 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -79,7 +79,7 @@ jobs: - name: Add CommunityToolkit Azure DevOps NuGet source run: | - dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json --name CommunityToolkit-Labs --store-password-in-clear-text --configfile nuget.config + dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json --name CommunityToolkit-Labs --store-password-in-clear-text # Execute all unit tests in the solution - name: Execute unit tests From 74daa48536291d97731e5e4992d4267a1912eb3e Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:51:54 -0400 Subject: [PATCH 07/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 0cb6010..fb3284b 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -87,7 +87,7 @@ jobs: # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application - run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration + run: msbuild $env:BetterLyrics /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }} From 4f336282bbf5b28d8bfdb7363d17621ac7f02fc1 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 09:54:03 -0400 Subject: [PATCH 08/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index fb3284b..af088df 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -87,7 +87,7 @@ jobs: # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application - run: msbuild $env:BetterLyrics /t:Restore /p:Configuration=$env:Configuration + run: msbuild $env:BetterLyrics.sln /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }} From e8c428614adfd4bbb9cae0dfae1c7100fdd4452c Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 10:01:30 -0400 Subject: [PATCH 09/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index af088df..ee691df 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -58,8 +58,8 @@ jobs: env: Solution_Name: BetterLyrics.sln # Replace with your solution name, i.e. MyWpfApp.sln. Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. - Wap_Project_Directory: BetterLyrics.WinUI3\BetterLyrics.WinUI3 (Package) # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. - Wap_Project_Path: BetterLyrics.WinUI3\BetterLyrics.WinUI3 (Package)\BetterLyrics.WinUI3 (Package).wapproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. + Wap_Project_Directory: BetterLyrics.WinUI3 (Package) # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. + Wap_Project_Path: BetterLyrics.WinUI3 (Package)\BetterLyrics.WinUI3 (Package).wapproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. steps: - name: Checkout @@ -87,7 +87,7 @@ jobs: # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application - run: msbuild $env:BetterLyrics.sln /t:Restore /p:Configuration=$env:Configuration + run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration env: Configuration: ${{ matrix.configuration }} From a4bc63d352374087cd67aed53039084b5ef65ffb Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 10:08:18 -0400 Subject: [PATCH 10/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index ee691df..4ad96ee 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -50,7 +50,7 @@ jobs: strategy: matrix: - configuration: [Debug, Release] + configuration: [Release] runs-on: windows-latest # For a list of available runner types, refer to # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on @@ -75,7 +75,7 @@ jobs: # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@v2 + uses: microsoft/setup-msbuild@v1.0.2 - name: Add CommunityToolkit Azure DevOps NuGet source run: | From 088d2fa78b603584157b9e317c697d4622b1dd60 Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 10:16:31 -0400 Subject: [PATCH 11/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 88 +++++++--------------------- 1 file changed, 22 insertions(+), 66 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 4ad96ee..f722419 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -1,48 +1,13 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. +# This workflow will build, sign, and package a WinUI 3 MSIX desktop application +# built on .NET. -# This workflow will build, test, sign and package a WPF or Windows Forms desktop application -# built on .NET Core. -# To learn how to migrate your existing application to .NET Core, -# refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework -# -# To configure this workflow: -# -# 1. Configure environment variables -# GitHub sets default environment variables for every workflow run. -# Replace the variables relative to your project in the "env" section below. -# -# 2. Signing -# Generate a signing certificate in the Windows Application -# Packaging Project or add an existing signing certificate to the project. -# Next, use PowerShell to encode the .pfx file using Base64 encoding -# by running the following Powershell script to generate the output string: -# -# $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte -# [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt' -# -# Open the output file, SigningCertificate_Encoded.txt, and copy the -# string inside. Then, add the string to the repo as a GitHub secret -# and name it "Base64_Encoded_Pfx." -# For more information on how to configure your signing certificate for -# this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing -# -# Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key". -# See "Build the Windows Application Packaging project" below to see how the secret is used. -# -# For more information on GitHub Actions, refer to https://github.com/features/actions -# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications, -# refer to https://github.com/microsoft/github-actions-for-desktop-apps - -name: .NET Core Desktop +name: WinUI 3 MSIX app on: push: - branches: [ "stable" ] + branches: [ main ] pull_request: - branches: [ "stable" ] + branches: [ main ] jobs: @@ -51,40 +16,30 @@ jobs: strategy: matrix: configuration: [Release] + platform: [x64, x86] runs-on: windows-latest # For a list of available runner types, refer to # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on env: - Solution_Name: BetterLyrics.sln # Replace with your solution name, i.e. MyWpfApp.sln. - Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj. - Wap_Project_Directory: BetterLyrics.WinUI3 (Package) # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package. - Wap_Project_Path: BetterLyrics.WinUI3 (Package)\BetterLyrics.WinUI3 (Package).wapproj # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj. + Solution_Name: BetterLyrics.sln # Replace with your solution name, i.e. App1.sln. steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v2 with: fetch-depth: 0 # Install the .NET Core workload - name: Install .NET Core - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v1 with: - dotnet-version: 8.0.x + dotnet-version: 6.0.x # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v1.0.2 - - name: Add CommunityToolkit Azure DevOps NuGet source - run: | - dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json --name CommunityToolkit-Labs --store-password-in-clear-text - - # Execute all unit tests in the solution - - name: Execute unit tests - run: dotnet test - # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration @@ -94,26 +49,27 @@ jobs: # Decode the base 64 encoded pfx and save the Signing_Certificate - name: Decode the pfx run: | - $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}") - $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx + $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.BASE64_ENCODED_PFX }}") + $certificatePath = "GitHubActionsWorkflow.pfx" [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) - # Create the app package by building and packaging the Windows Application Packaging project + # Create the app package by building and packaging the project - name: Create the app package - run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }} + run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true env: - Appx_Bundle: Always - Appx_Bundle_Platforms: x86|x64 - Appx_Package_Build_Mode: StoreUpload + Appx_Bundle: Never + Appx_Package_Build_Mode: SideloadOnly + Appx_Package_Dir: Packages\ Configuration: ${{ matrix.configuration }} + Platform: ${{ matrix.platform }} # Remove the pfx - name: Remove the pfx - run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx + run: Remove-Item -path GitHubActionsWorkflow.pfx # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact - - name: Upload build artifacts - uses: actions/upload-artifact@v4 + - name: Upload MSIX package + uses: actions/upload-artifact@v2 with: name: MSIX Package - path: ${{ env.Wap_Project_Directory }}\AppPackages + path: ${{ env.Solution_Name }}\\Packages From 80a68b26122931efbe9a510d76707bf36fad744d Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 10:16:47 -0400 Subject: [PATCH 12/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index f722419..6893610 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -5,9 +5,9 @@ name: WinUI 3 MSIX app on: push: - branches: [ main ] + branches: [ stable ] pull_request: - branches: [ main ] + branches: [ stable ] jobs: From 2970b5e2466fb36806672ea7333d80f0f147025f Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 10:19:05 -0400 Subject: [PATCH 13/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 6893610..5810076 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -34,11 +34,11 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild - name: Setup MSBuild.exe - uses: microsoft/setup-msbuild@v1.0.2 + uses: microsoft/setup-msbuild@v2 # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application @@ -69,7 +69,7 @@ jobs: # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact - name: Upload MSIX package - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: MSIX Package path: ${{ env.Solution_Name }}\\Packages From ba8aad9831805478515d6de4bd6213775038f77c Mon Sep 17 00:00:00 2001 From: Zhe Fang Date: Wed, 11 Jun 2025 10:22:38 -0400 Subject: [PATCH 14/14] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 5810076..0235925 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -40,6 +40,10 @@ jobs: - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v2 + - name: Add CommunityToolkit-Labs NuGet source + run: | + dotnet nuget add source https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json --name CommunityToolkit-Labs --store-password-in-clear-text + # Restore the application to populate the obj folder with RuntimeIdentifiers - name: Restore the application run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration