dotnet / dotnet/core

Can't publish app for linux-arm64 or ubuntu-arm64

Open
#4,636 11 comments 1 reaction 0 assignees View on GitHub
area-vs area-winforms
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

Steps to produce:

- Create a project from Windows Forms App (.Net core) template in visualstudio 2019 with .Net Core 5.0 or with .Net Core 3.1 .
- Click on build -> publish
- Change deployment mode to: Self-contained
- Change target framework to: linux-arm64 or ubuntu-arm64

Actual result: the screen display this error:
![image](https://user-images.githubusercontent.com/757085/80839464-f61b5b80-8c03-11ea-9f87-512d71d9a25b.png)

Build output is:
```
1>------ Build started: Project: test4, Configuration: Release Any CPU ------
1>You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
1>test4 -> C:\Projects\test4\bin\Release\net5.0\test4.dll
2>------ Publish started: Project: test4, Configuration: Release Any CPU ------
2>Determining projects to restore...
2>Restored C:\Projects\test4\test4.csproj (in 275 ms).
2>There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'linux-arm64'.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

```

Expected result: Publish successfull

Is it possible to compile .Net Core WinForms app compile for ARM64 (linux-arm64 or ubuntu-arm64)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.