diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-22 14:47:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 14:47:38 +0200 |
commit | 72d449b53e67878297957624b22819bb0de3af8e (patch) | |
tree | 98796161ef070cd70abe81b9a8030def6689e566 | |
parent | e196b8127c9e3f937011da1790a02160a3473ab5 (diff) | |
parent | 4a30289eee92cbfae81795bfdb2bcca9ae917756 (diff) |
Merge pull request #40596 from neikeq/fix-msbuild-restore-not-called
C#: Fix restore not called when building game projects
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs b/modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs index 34e42489eb..d9862ae361 100644 --- a/modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs +++ b/modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs @@ -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}"""; |