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
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
Hey @navneetccna,
as stated in the README, WinForms is not supported on other OS than Windows.
Klaus
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.
Oh, that is very sad. I though .net core 3.0 provide cross platform implementation for windows application as well
@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.
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.
@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.
Thanks for prompt response. Hope some day dotnet provide cross platform solution as well.
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.
Very Disappointing to understand this. Were thinking that .net core 3.0 support for winform/wpf will resolve cross platform development desktop app in .net.
It's seem no use to even touch winform in .net core 3.0 as old .net framework base WPF and winform are quite matured
Windows is dead. I like Linux
Most helpful comment
Very Disappointing to understand this. Were thinking that .net core 3.0 support for winform/wpf will resolve cross platform development desktop app in .net.
It's seem no use to even touch winform in .net core 3.0 as old .net framework base WPF and winform are quite matured