Build for System.Windows.Forms fails in Ubuntu
See original GitHub issue- .NET Core Version: 3.1.100
- Have you experienced this same bug with .NET Framework?: No (Didn’t try, running on Ubuntu)
Problem description:
I run Ubuntu18.04.3 with .NET Core 3.1.100.
I use the release/3.1 branch
When I try to run dotnet build from the src/System.Windows.Forms/src directory, it fails with this message,
CSC : error CS1566: Error reading resource 'System.Windows.Forms.Arrow' -- 'Could not find file '/home/areller/playground/winforms/src/System.Windows.Forms/src/Resources/System/Windows/Forms/PropertyGrid/Arrow.ico'.' [/home/areller/playground/winforms/src/System.Windows.Forms/src/System.Windows.Forms.csproj]

Actual behavior: dotnet build fails (see above)
It seems that it can’t find some resource (Arrow.ico), but this resource exists when I open it directly, and the build works on other systems (Windows and macOS).
Expected behavior: dotnet build should work
This is a screenshot of it working on macOS 10.14.6

I know that winforms doesn’t support Linux/macOS, but I want to experiment with it so I need it to build.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
c# - System.Windows.forms under ubuntu
Hi i'm really a beginner in C# and still learning the principles of language I'm working under ubuntu and compiling with gmcs and...
Read more >Fail to run a .NET 2.0 application with mono 2.6.7
The application is looking for the 'System.Windows.Forms' assembly, which is in the package libmono-winforms2.0-cil. If you want to install ...
Read more >Problem with Mono. Pls help. [Archive]
i am trying to run a file called "Program.cs" using Mono. Here is the Program.cs content:- using System; using System.Collections.Generic;
Read more >How do I install mono's System.Windows.Forms on Ubuntu?
So you're looking for a package containing a file called System.Windows.Forms.dll . You can search: on your machine: apt-file search System.
Read more >Troubleshooting Windows Subsystem for Linux
Provides detailed information about common errors and issues people run into while running Linux on the Windows Subsystem for Linux.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@RussKie The build works now, after I’ve fixed the resources files casing. I’ll publish a PR tomorrow. Thank you for your help.
I think it breaks because of the casing, the file is in the lower case: https://github.com/dotnet/winforms/tree/release/3.1/src/System.Windows.Forms/src/Resources/System/Windows/Forms/PropertyGrid
I’m not sure why it is working on the MacOS though…