actions / actions/starter-workflows
dotnet desktop workflow: You may also need to include 'win-x86' in your project's RuntimeIdentifiers
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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