ci: 更新工作流以支持 .NET 6 和 Windows 10 19041

更新 GitHub Actions 工作流以构建针对 .NET 6 和 Windows 10 19041 平台的应用程序,并修改了程序集信息以声明支持的 OS 平台

Signed-off-by: doudou0720 <98651603+doudou0720@users.noreply.github.com>
This commit is contained in:
doudou0720
2026-04-05 12:54:55 +08:00
parent 379d514bb5
commit 2e8660de26
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ jobs:
- name: Check if exe file is generated - name: Check if exe file is generated
id: check-exe id: check-exe
run: | run: |
$exePath = "Ink Canvas\bin\Debug\${{ matrix.architecture }}\net472\InkCanvasForClass.exe" $exePath = "Ink Canvas\bin\Debug\${{ matrix.architecture }}\net6.0-windows10.0.19041.0\InkCanvasForClass.exe"
if (Test-Path $exePath) { if (Test-Path $exePath) {
echo "build_success=true" >> $env:GITHUB_OUTPUT echo "build_success=true" >> $env:GITHUB_OUTPUT
@@ -74,7 +74,7 @@ jobs:
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
name: InkCanvasForClass.CE.debug.${{ matrix.architecture }} name: InkCanvasForClass.CE.debug.${{ matrix.architecture }}
path: "Ink Canvas/bin/Debug/${{ matrix.architecture }}/net472/*" path: "Ink Canvas/bin/Debug/${{ matrix.architecture }}/net6.0-windows10.0.19041.0/*"
- name: Create Summary - name: Create Summary
if: always() if: always()
+1
View File
@@ -14,6 +14,7 @@ using System.Windows;
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
[assembly: System.Runtime.Versioning.SupportedOSPlatform("windows10.0.19041")]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type. // COM, set the ComVisible attribute to true on that type.