[BuildCheck Suggestion]: Flag Process.Start usages #10989
Labels
Area: BuildCheck
BuildCheck Suggestion
Suggestion for a built in MSBuild analyzer. Label should be applied together with 'Area: BuildCheck'
Summary
Process.Start
from within custom task should be flagged and usage ofExec
orToolTask
tasks should be suggested.On Hold (!)
Let's not action upon this yet. Let's first have a sample demonstrative case that'd be breaking the MSBuild server (plus see if it actually isn't already broken with the curent long lived nodes) and only then decide whether we want to restrict it.
Then we might possibly want to resort to compiler analyzer (or banned API) if runtime checks proves complicted
Background and Motivation
Process.Start
creates child processes that cannot be easily controlled by MSBuild engine (as opposed to usingExec
orToolTask
tasks). This can e.g. lead to issues during MSBuild server adoption (issue with redirecting outputs)Notes
Possible ways to detect the Process.Start (need to be investigated if doable):
Process.Start
(akin unittest mocking)The text was updated successfully, but these errors were encountered: