Я пытался создать программу запуска игр для Windows без Visual Studio. Оно не построится. Я попробовал действия Github, вернул ошибку. Я попробовал VS 2022 для Mac, но там написано, что тип проекта не поддерживается. Что мне делать, чтобы это исправить?
Источник: https://github.com/MunaAlaneme/GameLaun ... 0593566560
Я пробовал
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
#runs-on: [self-hosted, "${{ inputs.chosen-os }}"] # For a list of available runner types, refer to
runs-on: windows-latest
# https://help.github.com/en/actions/refe ... _idruns-on
env:
Solution_Name: GameLauncher1.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: GameLauncher1.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
#Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
#Wap_Project_Path: your-wap-project-path # 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: 9.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
dotnet workload list
# 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/ ... d-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: MSIX Package
path: ${{ env.Wap_Project_Directory }}\AppPackagesx
Он вернулся
Build FAILED.
"D:\a\GameLauncher1\GameLauncher1\GameLauncher1.sln" (Restore target) (1) ->
(Restore target) ->
D:\a\GameLauncher1\GameLauncher1\GameLauncher1.csproj : warning NU1903: Package 'System.Net.Http' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-7jgj-8wvc-jh57 [D:\a\GameLauncher1\GameLauncher1\GameLauncher1.sln]
D:\a\GameLauncher1\GameLauncher1\GameLauncher1.csproj : warning NU1903: Package 'System.Text.RegularExpressions' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-cmhx-cq75-c4mj [D:\a\GameLauncher1\GameLauncher1\GameLauncher1.sln]
"D:\a\GameLauncher1\GameLauncher1\GameLauncher1.sln" (Restore target) (1) ->
(Restore target) ->
D:\a\GameLauncher1\GameLauncher1\GameLauncher1.csproj : error NU1101: Unable to find package Shade.UI.WinForms. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org [D:\a\GameLauncher1\GameLauncher1\GameLauncher1.sln]
2 Warning(s)
1 Error(s)
Time Elapsed 00:00:25.46
Error: Process completed with exit code 1.
Подробнее здесь: https://stackoverflow.com/questions/790 ... sharp-0001
Действия на Github Game Launcher Ошибка отладки сборки C# (0001) ⇐ C#
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как реализовать функцию рекурсивного расстояния для оценки AI Game Game Game?
Anonymous » » в форуме Python - 0 Ответы
- 16 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как реализовать функцию рекурсивного расстояния для оценки AI Game Game Game?
Anonymous » » в форуме Python - 0 Ответы
- 22 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как реализовать функцию рекурсивного расстояния для оценки AI Game Game Game? [закрыто]
Anonymous » » в форуме Python - 0 Ответы
- 17 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как реализовать функцию рекурсивного расстояния для оценки AI Game Game Game?
Anonymous » » в форуме Python - 0 Ответы
- 14 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как реализовать функцию рекурсивного расстояния для оценки AI Game Game Game?
Anonymous » » в форуме Python - 0 Ответы
- 12 Просмотры
-
Последнее сообщение Anonymous
-