linuxmonoxbuild

xbuild: Task GenerateResource FAILED, considers inexistent files newer than source file


I've installed fresh mono and monodevelop to my debian from Xamarin source, and building two unrelated projects results in the same error:

% 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

Obviously files aren't there (in obj/x86/Debug there's only WinFormsGraphicsDevice.csproj.FilesWrittenAbsolute.txt)

What's wrong here? I've spent three evening already getting ever new errors from Mono.


Solution

  • I have fixed it by installing mono-devel, which apparently I did not have, that didn't prevent monodevelop from installing or compiling source, but that prevented xbuild from working properly and it could not tell me why.