actions / actions/starter-workflows

dotnet desktop workflow: You may also need to include 'win-x86' in your project's RuntimeIdentifiers

Open
#2,514 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12.1k
Forks
7.3k
PR merge metrics
No merged PRs in 30d

Description

The workflow file ci/dotnet-desktop.yml has an issue when running the step "Create the app package"

The error message is below

Error: C:\Program Files\dotnet\sdk\8.0.402\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1047: Assets file 'D:\a\WPFActionTest\WPFActionTest\ActionDotnetWPF\obj\project.assets.json' doesn't have a target for 'net8.0-windows/win-x86'. Ensure that restore has run and that you have included 'net8.0-windows' in the TargetFrameworks for your project. You may also need to include 'win-x86' in your project's RuntimeIdentifiers. [D:\a\WPFActionTest\WPFActionTest\ActionDotnetWPF\ActionDotnetWPF.csproj]

I created a simple demo to reproduce this issue, the repo is here. The action is shown at
here

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ci/dotnet-desktop.yml and inspect the "Create the app package" step, then reproduce the NETSDK1047 error using the linked WPFActionTest example. Done means the desktop workflow completes package creation without the missing net8.0-windows/win-x86 target error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.