Я пытался создать программу запуска игр для 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#
Место общения программистов C#
-
Anonymous
1727197464
Anonymous
Я пытался создать программу запуска игр для Windows без Visual Studio. Оно не построится. Я попробовал действия Github, вернул ошибку. Я попробовал VS 2022 для Mac, но там написано, что тип проекта не поддерживается. Что мне делать, чтобы это исправить?
Источник: https://github.com/MunaAlaneme/GameLauncher1/actions/runs/11016913902/job/30593566560
Я пробовал
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/reference/workflow-syntax-for-github-actions#jobsjob_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/upload-a-build-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.
Подробнее здесь: [url]https://stackoverflow.com/questions/79019674/github-actions-game-launcher-debug-build-failure-c-sharp-0001[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия