开发者

MSBuild script that errors on unknown property

开发者 https://www.devze.com 2023-03-24 05:01 出处:网络
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.

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 pas开发者_C百科sed to this script? I'm not sure how to iterate the properties which I'd think would be a necessary function.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消