MSBuild GenerateResources - MSB3554:无法写入输出文件 Resources.resx。发现空引用或无效值

MSBuild GenerateResources - MSB3554: Cannot write to the output file Resources.resx. A null reference or invalid value was found

我正在尝试在 Linux (Nexus Mod Manager) 上编译 .NET 程序,但我一直遇到一个与资源文件相关的错误。具体报错信息如下:

/usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(3069,5): error MSB3554: Cannot write to the output file "/home/max/git/Nexus-Mod-Manager/Stage/obj/Debug/Nexus.Client.Properties.Resources.resources". A null reference or invalid value was found [GDI+ status: InvalidParameter] [/home/max/git/Nexus-Mod-Manager/NexusClient/NexusClient.csproj]

我对 .NET 工具链的了解不够,无法确定确切的问题是什么,因为错误消息仅引用 this file,而 Google 帮助不大 - 我已经仅遇到此特定错误的另一个实例,并且没有提供任何线索。如有任何帮助,我们将不胜感激。

我已经掩盖了错误之前的那一行,它是:

** (process:7084): WARNING **: 15:40:35.709: PNG images with 64bpp aren't supported by libgdiplus.

在将 Resources.resx 文件中包含的资源文件一分为二并发现它是哪一个后,我意识到了我的错误。 Re-rendering GIMP 中的问题图像解决了问题。