How to check all projects in solution for some criteria?

前端 未结 3 1824
野的像风
野的像风 2020-12-22 00:47

I need to let all projects in solution contain some additional build actions, e.g. StyleCop validation, autogenaration of AssemblyInfo\'s, etc.

My idea is to make so

3条回答
  •  心在旅途
    2020-12-22 01:12

    There's a much simpler way of handling this sort of thing. Instead of trying to dynamically change project file contents, you can use a shared build .targets files that are imported into your Visual Studio projects via the mechanism described at http://msdn.microsoft.com/en-us/library/ms171464.aspx (with another example at http://msdn.microsoft.com/en-us/library/ms171464.aspx).

提交回复
热议问题