question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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]

image

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

image

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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
arellercommented, Jan 7, 2020

@RussKie The build works now, after I’ve fixed the resources files casing. I’ll publish a PR tomorrow. Thank you for your help.

1reaction
RussKiecommented, Jan 5, 2020

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found