0

We've a master build script that is used to build our source code. It has a finite set of expected properties which may be passed into it - Defaults are used for properties that aren't passed in.

Is there a way to display an error when an unexpected property is passed to this script? I'm not sure how to iterate the properties which I'd think would be a necessary function.

Charles
  • 2,642
  • 3
  • 33
  • 53

1 Answers1

0

It is possible to retrieve all defined / evaluated properties of the current msbuild process using a custom task. See this SO question and answers for reference: How to access the MSBuild 's properties list when coding a custom task?

Community
  • 1
  • 1
Sebastian P.R. Gingter
  • 5,955
  • 3
  • 31
  • 73