mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									23f7f86914
								
							
						
					
					
						commit
						4b0c78b3ca
					
				
					 4 changed files with 15 additions and 31 deletions
				
			
		|  | @ -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") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ignacio Etcheverry
						Ignacio Etcheverry