开发者

MSBuild script that errors on unknown property

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜