mono / linux-packaging-msbuild

MIT License
23 stars 16 forks source link

msbuild fails when executed with nice priority #16

Open shibe2 opened 4 years ago

shibe2 commented 4 years ago

Steps to reproduce

Project file: https://raw.githubusercontent.com/godotengine/godot/master/modules/mono/glue/GodotSharp/GodotSharp.sln

Command line

nice -n 1 msbuild modules/mono/glue/GodotSharp/GodotSharp.sln /restore /t:Build /p:Configuration=Debug /p:NoWarn=1591

Expected behavior

Build succeeded.

Actual behavior

Microsoft (R) Build Engine version 16.6.0 for Mono Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. System.ComponentModel.Win32Exception (0x80004005): Cannot find the specified file at System.Diagnostics.Process.set_PriorityClass (System.Diagnostics.ProcessPriorityClass value) [0x00049] in <11033cee9c4147e6ac319423397ec1b6>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.set_PriorityClass(System.Diagnostics.ProcessPriorityClass) at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String commandLine) [0x001a4] in <9f7d88fc10e14f3ba7675827396d2ece>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception (0x80004005): Cannot find the specified file at System.Diagnostics.Process.set_PriorityClass (System.Diagnostics.ProcessPriorityClass value) [0x00049] in <11033cee9c4147e6ac319423397ec1b6>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.set_PriorityClass(System.Diagnostics.ProcessPriorityClass) at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String commandLine) [0x0045b] in <9f7d88fc10e14f3ba7675827396d2ece>:0 at Microsoft.Build.CommandLine.MSBuildApp.Main () [0x00028] in <9f7d88fc10e14f3ba7675827396d2ece>:0

Environment data

msbuild /version output:

Microsoft (R) Build Engine version 16.6.0 for Mono Copyright (C) Microsoft Corporation. All rights reserved.

16.6.0.35301

OS info:

Arch Linux 5.7.9-arch1-1 x86_64

If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc):

Godot 3.2.2

RX14 commented 4 years ago

This is already fixed upstream. Would be great if the fix could be backported https://github.com/dotnet/msbuild/commit/a936b97e30679dcea4d99c362efa6f732c9d3587 https://github.com/dotnet/msbuild/commit/db54611bae68035967be233b92447a33a5200f89