New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 3.0 issue #159

Closed
navneetccna opened this Issue Dec 5, 2018 · 8 comments

Comments

Projects
None yet
4 participants
@navneetccna

navneetccna commented Dec 5, 2018

  • .NET Core Version: 3.0 Preview1
  • Have you experienced this same bug with .NET Framework?: Yes/No
    No

Problem description:
I am running 3.0 winform application on linux with following command
dotnet run
But getting error

/home/owner/dotnet/sdk/3.0.100-preview-009812/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets(14,2): error MSB4019: The imported project "/home/owner/dotnet/sdk/3.0.100-preview-009812/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.WinFX.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. [/home/owner/projects/dotnet3/dotnet3.csproj]

The build failed. Please fix the build errors and run again.

I checked my path variable as well as the Microsoft.WinFX.targets exist in the path

@KlausLoeffelmann

This comment has been minimized.

Member

KlausLoeffelmann commented Dec 5, 2018

Hey @navneetccna,

as stated in the README, WinForms is not supported on other OS than Windows.

Klaus

@raffaeler

This comment has been minimized.

Contributor

raffaeler commented Dec 5, 2018

I would also add the contributing guide:

For example, we do not intend to create an implementation of the Windows registry for Linux or an implementation of the macOS keychain for Windows. We also do not intend to accept contributions that provide cross-platform implementations for Windows Forms or WPF.
@navneetccna

This comment has been minimized.

navneetccna commented Dec 5, 2018

Oh, that is very sad. I though .net core 3.0 provide cross platform implementation for windows application as well

@raffaeler

This comment has been minimized.

Contributor

raffaeler commented Dec 5, 2018

@navneetccna This project is just the original winforms project which has been released open source. Porting it cross platform would be a (very big) new feature.
Any UI platform have direct dependencies on the OS, as there are no common standards defined for windowing.

I can imagine that before or later someone will fork this project and "transplant" it to Wine as it was done many years ago on Mono.

@navneetccna

This comment has been minimized.

navneetccna commented Dec 5, 2018

I can understand the pain of the cross platform dependencies. So we still need to use need to JAVAFX or QT5 for cross platform windows application.

@raffaeler

This comment has been minimized.

Contributor

raffaeler commented Dec 5, 2018

@navneetccna there are for sure multiple strategies to do that, but this is clearly not the goal of this repository. And IMHO for good and understandable reasons.

@navneetccna

This comment has been minimized.

navneetccna commented Dec 5, 2018

Thanks for prompt response. Hope some day dotnet provide cross platform solution as well.

@navneetccna navneetccna closed this Dec 5, 2018

@RogerHardiman

This comment has been minimized.

RogerHardiman commented Dec 7, 2018

I would direct users to the Mono project and the WINE project. Both offer a WinForms emulation for Linux and MacOS. It was written years ago and us mostly complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment