mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
C#: Fix restore not called when building game projects
This commit is contained in:
parent
e196b8127c
commit
4a30289eee
@ -118,9 +118,14 @@ namespace GodotTools.Build
|
||||
string arguments = string.Empty;
|
||||
|
||||
if (buildTool == BuildTool.DotnetCli)
|
||||
arguments += "msbuild "; // `dotnet msbuild` command
|
||||
arguments += "msbuild"; // `dotnet msbuild` command
|
||||
|
||||
arguments += $@"""{buildInfo.Solution}"" /t:{string.Join(",", buildInfo.Targets)} " +
|
||||
arguments += $@" ""{buildInfo.Solution}""";
|
||||
|
||||
if (buildInfo.Restore)
|
||||
arguments += " /restore";
|
||||
|
||||
arguments += $@" /t:{string.Join(",", buildInfo.Targets)} " +
|
||||
$@"""/p:{"Configuration=" + buildInfo.Configuration}"" /v:normal " +
|
||||
$@"""/l:{typeof(GodotBuildLogger).FullName},{GodotBuildLogger.AssemblyPath};{buildInfo.LogsDirPath}""";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user