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

时间:2016-10-10 22:49:44

标签: 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那里得到了新的错误。

1 个答案:

答案 0 :(得分:1)

我已经通过安装mono-devel来修复它,这显然是我没有的,这并没有阻止monodevelop安装或编译源代码,但是这阻止了xbuild正常工作,它无法告诉我原因。< / p>