0
Reply

Manually invoking a build provider

Ian

Ian

Jan 11 2007 11:48 AM
1.5k

Hi All,

I wondered if anyone had any smart ideas for manually invoking a build provider?  The outline is that we have several custom Build Providers that are defined (as you would expect) in web.config and when the associated file extensions are added/changed the builder is invoked and code generation occurs to give us design-time classes/properties (e.g. via IntelliSense).

Our problem is that some of the data used by the Build Provider is external to the file and can be changed independently (outside); hence we need to force a recompile of these files when the solution is built.  I have already crafted a VS.2005 add-in to detect the build/rebuild events but need some way of invoking the Build Provider against a specific file manually from here, or maybe via a Macro detecting the events.

Any ideas? Examples?

Many thanks,

Ian.