From 4b0c78b3ca0aa3433de440f07d68f83b0f8558cc Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Thu, 25 Jun 2020 23:44:28 +0200 Subject: Mono/C#: Use /restore instead of /t:restore when building Documentation recommends not to use /t:restore together with other targets (like /t:build), as it messes with the environment. --- modules/mono/build_scripts/solution_builder.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/mono/build_scripts') diff --git a/modules/mono/build_scripts/solution_builder.py b/modules/mono/build_scripts/solution_builder.py index 371819fd72..03f4e57f02 100644 --- a/modules/mono/build_scripts/solution_builder.py +++ b/modules/mono/build_scripts/solution_builder.py @@ -142,9 +142,7 @@ def build_solution(env, solution_path, build_config, extra_msbuild_args=[]): # Build solution - targets = ["Restore", "Build"] - - msbuild_args += [solution_path, "/t:%s" % ",".join(targets), "/p:Configuration=" + build_config] + msbuild_args += [solution_path, "/restore", "/t:Build", "/p:Configuration=" + build_config] msbuild_args += extra_msbuild_args run_command(msbuild_path, msbuild_args, env_override=msbuild_env, name="msbuild") -- cgit v1.2.3