views:

121

answers:

1

I am trying to find information on using reflection within a MSBuild task.

I need a way of iterating through the methods of a class contained with a website, at build time. Is this possible? Is MSBuild the best tool to use? Is this an unreasonable requirement, I can't seem to find any documentation on the subject?

Any help would be much appreciated.

Rich

A: 

With an extension called MSBuild Community Tasks. You can execute code from within an msbuild task called script. Using the reflection API your task should be relatively straightforward.

A viable alternative might be Psake since PowerShell integrates well with .Net.

Bas Bossink