linux - xbuild:任务 GenerateResource FAILED,认为不存在的文件比源文件更新

标签 linux mono xbuild

我已经从 Xamarin 源代码为我的 debian 安装了新的 mono 和 monodevelop,构建两个不相关的项目导致了同样的错误:

% xbuild /verbosity:diagnostic
    Target GenerateResources:
    Task "GenerateResource"
            Using task GenerateResource from Microsoft.Build.Tasks.GenerateResource, Microsoft.Build.Tasks.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
            Resource file 'obj/x86/Debug/WinFormsGraphicsDevice.MainForm.resources' is newer than the source file 'MainForm.resx', skipping.
            Resource file 'obj/x86/Debug/WinFormsGraphicsDevice.Properties.Resources.resources' is newer than the source file 'Properties/Resources.resx', skipping.
            Resource file 'obj/x86/Debug/OpenTK.GLControl.resources' is newer than the source file 'ThirdParty/GLControl/GLControl.resx', skipping.
    Task "GenerateResource" execution -- FAILED

显然文件不存在(在 obj/x86/Debug 中只有 WinFormsGraphicsDevice.csproj.FilesWrittenAbsolute.txt)

这是怎么回事?我已经花了三个晚上的时间从 Mono 收到新的错误。

最佳答案

我已经通过安装 mono-devel 修复了它,显然我没有,这并没有阻止 monodevelop 安装或编译源代码,但是这阻止了 xbuild 正常工作并且它不能告诉我为什么。

关于linux - xbuild:任务 GenerateResource FAILED,认为不存在的文件比源文件更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39967914/

相关文章:

linux - 在哪里找到卸载文件

ruby - 如何使用 rake 检查特定软件包是否安装在 linux 上?

linux - DotNetOpenAuth - 在 Mono 上诊断 "No OpenID Endpoint Found"

c# - Mono XBuild 发布 MVC 站点

visual-studio-2010 - xbuild 和 F# (vs2010) 项目

linux - 从 Windows 客户端连接到 Ubuntu 18.04,安装的 Samba 无法正常工作

linux - 在 OS X 中使用重命名更改文件扩展名

asp.net - Mono 在带有 ASP.NET Web 应用程序的 Ubuntu 中使用 mscorlib.dll 2.0 而不是 4.0

c# - 使用 Mono Compiler/创建一个新的同时仍然输出 Windows EXE?

C# Mono on mac - 使用代码编译并运行另一个项目