dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
20.85k stars 4.88k forks source link

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

Open KhArtNJava opened 4 years ago

KhArtNJava commented 4 years ago

Steps to produce:

Actual result: the screen display this error: image

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)?

scalablecory commented 4 years ago

Windows Forms and WPF are currently Windows-only libraries, so a publish failure is expected.

However, we can at least try to make the error message in VS more useful. CC @wli3 @dsplaisted @RussKie @gomathip02

dsplaisted commented 4 years ago

@vijayrkn I think the publish error dialog should surface the error you get from build:

There was no runtime pack for Microsoft.WindowsDesktop.App.WindowsForms available for the specified RuntimeIdentifier 'linux-arm64'.

mairaw commented 4 years ago

Should this issue be transferred somewhere @dsplaisted @vijayrkn?

vijayrkn commented 4 years ago

Ideally it should be reported in the developer community so that this vs issue can be tracked in the right place.

ghost commented 4 years ago

algrn1406

Tseko commented 3 years ago

After all Can I Build Forms Application for Linux or Not? If so with .NET 5 or to be expected with .NET 6 ?

svick commented 3 years ago

@Tseko I'm not aware of any plans to port Windows Forms to Linux.

RussKie commented 3 years ago

I think this should be closed as by design.

JoshEales commented 3 years ago

Any updates on this issue?

Sam-Dvorack commented 3 years ago

Hi, can I build WinForms application and publish it for Linux or Not?

bgline23 commented 3 years ago

Hi. With the designer released for .net core in Visual Studio 2019 version 16.6. Can I now publish for Linux?