Closed joker5bb closed 1 year ago
What version of RA2 are you trying to compile? The current requires .net6
I am trying to compile the latest version of ra2
The fact that you are running make all
instead of ./make.ps1 all
and the fact that you are getting an MSBuild error makes me think you are somehow running the Linux Makefile instead of the Windows build script, and perhaps trying to use Mono (??) Instead of .NET6.
Perhaps WSL is playing a trick on you?
Running make.all
should work from the command line. When using a PowerShell host it should be .\make.cmd all
.
No luck either
This instruction gives you links to older .NET Framework, I think this might be a reason. https://github.com/OpenRA/OpenRA/blob/release-20200202/INSTALL.md
So you need this https://dotnet.microsoft.com/en-us/download/dotnet/6.0 Instead of mentioned in this guide 2.2 version.
And now it finally builds.
But it seems that there is no "dependencies" command in "make" script.
This instruction gives you links to older .NET Framework, I think this might be a reason. https://github.com/OpenRA/OpenRA/blob/release-20200202/INSTALL.md
Those are the instructions for a release from 02-02-2020! https://github.com/OpenRA/OpenRA/blob/bleed/INSTALL.md contains the newest instructions. make dependencies
is no longer needed. But seems like you worked the issues out regardless. 👍
I have installed all the dependencies from the wiki
C:\Users\Admin\Downloads\ra2-master>make all Building in Release configuration... Microsoft (R) Build Engine version 16.0.450+ga8dc7f1d34 for .NET Core Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1001: Unknown switch. Switch: --nologo
For switch syntax, type "MSBuild -help" Build failed. If just the development tools failed to build, try installing Visual Studio. You may also still be able to run the game.
Building ra2 in Release configuration... Microsoft (R) Build Engine version 16.0.450+ga8dc7f1d34 for .NET Core Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1001: Unknown switch. Switch: --nologo
For switch syntax, type "MSBuild -help" Build failed. If just the development tools failed to build, try installing Visual Studio. You may also still be able to run the game.
How can I fix this issue?