我已经从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/

10-11 00:10