October 2010
Intermediate to advanced
1920 pages
73h 55m
English
BuildProviderLet’s start by creating a simple BuildProvider. The new BuildProvider will be named the SimpleBuildProvider. Whenever you create a file that has the extension .simple, the SimpleBuilderProvider builds a new class with the same name as the file in the background. The dynamically compiled class also includes a single method named DoSomething() that doesn’t actually do anything.
The SimpleBuildProvider is contained in Listing 31.1.
Listing 31.1. App_Code\CustomBuildProviders\SimpleBuildProvider.cs

All BuildProviders must inherit from the base BuildProvider class. Typically, you override the BuildProvider class GenerateCode() ...
Read now
Unlock full access