basic_one
basic_one

Reputation: 245

Ignore/Disable Environment Variables in MSBuild

I am trying to configure MSBuild so it ignores environment variables (in order to ensure full control over the build process regardless of machine). I know Microsoft's SQLCMD is capable of this, however I've checked the MSDN reference for invoking MSBuild and see no comparable option.

Is it possible to tell MSBuild to ignore environment variables, and if so how?

Upvotes: 1

Views: 350

Answers (1)

Martin Ullrich
Martin Ullrich

Reputation: 100621

At the time of writing (MSBuild 16.0) does not yet have any way to opt out of environment variable use.

The feature request is tracked on GitHub: #2713 Long term effort for getting off Environment variables (for reproducible builds)

Upvotes: 2

Related Questions