Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private static string GetMandatoryMsBuildSettings(string buildConfiguration)
{
// we use these settings to make sure that MSBuild does the job and simply quits without spawning any long living processes
// we want to avoid "file in use" and "zombie processes" issues
const string NoMsBuildZombieProcesses = "/p:UseSharedCompilation=false /p:BuildInParallel=false /m:1 /p:Deterministic=true";
Copy link
Member

@adamsitnik adamsitnik Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this flag supported by older MSBuild versions?

I just wonder what is going to happen for users who are still using .NET 6 SDK etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure which version added it, but it's definitely supported by sdk 8, and your comment in that issue said not to worry about older unsupported sdks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to Google it was added in .Net 5.

const string NoMsBuildZombieProcesses = "--nodeReuse:false /p:UseSharedCompilation=false /p:Deterministic=true";
const string EnforceOptimizations = "/p:Optimize=true";

if (string.Equals(buildConfiguration, RuntimeInformation.DebugConfigurationName, StringComparison.OrdinalIgnoreCase))
Expand Down
Loading