Linux compilation -- Not registered task Move
3 posters
Page 1 of 1
Linux compilation -- Not registered task Move
I sucessfully worked through compilation issues on openSUSE a while ago. There is a previous thread on how to install nuget after which I got compilation to work.
I upgraded my openSUSE from 15.1 to 15.2. I had to reinstall openbve. I got latest code from github. I am compiling with command in openbve directory, " make openbve-debug".
Now, I have new compilation issues after setting nuget up as was done before.
I am getting errors.
First error is:
"" xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
MSBUILD: error MSBUILD0004: Too many project files specified ""
Second error says:
"" (AfterBuild target) ->
: error : Error initializing task Move: Not registered task Move "".
I think this is a failure of part of the restore nuget command but I am not sure.
Any suggestions on how to get past these.
I upgraded my openSUSE from 15.1 to 15.2. I had to reinstall openbve. I got latest code from github. I am compiling with command in openbve directory, " make openbve-debug".
Now, I have new compilation issues after setting nuget up as was done before.
I am getting errors.
First error is:
"" xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<
MSBUILD: error MSBUILD0004: Too many project files specified ""
Second error says:
"" (AfterBuild target) ->
: error : Error initializing task Move: Not registered task Move "".
I think this is a failure of part of the restore nuget command but I am not sure.
Any suggestions on how to get past these.
tckosvic@ix.netcom.com- Posts : 11
Join date : 2020-04-20
Re: Linux compilation -- Not registered task Move
I would try installing MSBuild from one of the community sources- That looks to me like it's falling back to xbuild and failing, as openSUSE don't seem to officially package it:
https://software.opensuse.org/package/msbuild
https://software.opensuse.org/package/msbuild
Re: Linux compilation -- Not registered task Move
This issue is a compatibility issue between xbuild and msbuild.
So installing msbuild will solve it.
Please install the community version of msbuild below:
https://software.opensuse.org//download.html?project=games%3Aopenra&package=msbuild
Also, some community versions have packaging issues that cause NuGet package restores to fail.
The error message is as follows:
NuGet determines the version of msbuild from the file path.
The correct package will install msbuild in the following folder.
This path is a symbolic link and the entity is located in the following folder.
However, some packages do not create symbolic links.
Therefore, NuGet fails to determine the version of msbuild and cannot restore the package.
@leezer3
I think we should remove the fallback to xbuild in the makefile.
Like this time, xbuild is becoming less compatible with msbuild.
In addition, xbuild has already been deprecated since Mono 5.0.
The minimum version of Mono for building OpenBVE today is 5.20.1, so I don't think it makes sense to fall back to xbuild anymore.
So installing msbuild will solve it.
Please install the community version of msbuild below:
https://software.opensuse.org//download.html?project=games%3Aopenra&package=msbuild
Also, some community versions have packaging issues that cause NuGet package restores to fail.
The error message is as follows:
- Code:
MSBuild auto-detection: using msbuild version '' from '/usr/bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
NuGet determines the version of msbuild from the file path.
The correct package will install msbuild in the following folder.
- Code:
/usr/lib/mono/msbuild/15.0/bin/
This path is a symbolic link and the entity is located in the following folder.
- Code:
/usr/lib/mono/msbuild/Current/bin/
However, some packages do not create symbolic links.
Therefore, NuGet fails to determine the version of msbuild and cannot restore the package.
@leezer3
I think we should remove the fallback to xbuild in the makefile.
Like this time, xbuild is becoming less compatible with msbuild.
In addition, xbuild has already been deprecated since Mono 5.0.
The minimum version of Mono for building OpenBVE today is 5.20.1, so I don't think it makes sense to fall back to xbuild anymore.
Last edited by S520 on Fri Sep 18, 2020 12:46 pm; edited 3 times in total (Reason for editing : Add the error message of NuGet and fix typo)
Re: Linux compilation -- Not registered task Move
That sounds like a good idea.
I've opened a PR with some changes to the makefile in it (Attempts to detect the Mono version, presence of msbuild & nuget)
I think this works OK, but please take a look
I've opened a PR with some changes to the makefile in it (Attempts to detect the Mono version, presence of msbuild & nuget)
I think this works OK, but please take a look
S520 likes this post
Re: Linux compilation -- Not registered task Move
Installing msbuild through openSUSE build service fixed the issue. Compilation finished with zero errors and 4 warnings I'll take a walk-through of the warnings to see if they look important.
thanks again,
tom kosvic
thanks again,
tom kosvic
tckosvic@ix.netcom.com- Posts : 11
Join date : 2020-04-20
Gothpaladinus likes this post
Similar topics
» Missing files in compilation of source in linux (not debian)
» Getting FirstBrnoTrack recommended train to move
» Can't get mainline trains (British Rail, etc ) to move
» Linux exe
» Installation on Linux
» Getting FirstBrnoTrack recommended train to move
» Can't get mainline trains (British Rail, etc ) to move
» Linux exe
» Installation on Linux
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum