/
Building a Custom Schema Provider

Building a Custom Schema Provider

The first step is to set the output directory to the CodeSmith Generator Program Files Folder SchemaProviders Folder. To do this you will want to go into the Project's Properties page by right clicking the Project in Solution Explorer and selecting Properties. Next navigate to the Build tab and set the Configuration drop down list to All ConfigurationsPlease note that this may require that you run Visual Studio as an Administrator to build assemblies to a directory that requires elevated permissions via User Account Control (UAC). Also a build error may occur if CodeSmith Generator is open while building the Custom Schema Provider.

You will want to set the Output path property value to the CodeSmith Generator Program Files Folder SchemaProviders Folder (C:\Program Files\CodeSmith\<Version>\SchemaProviders). You can do this by clicking on the browse button or manually typing the value in. It is recommended that you browser for this folder location. By setting this property it ensures that you will be building the Custom Schema Provider to the correct directory so CodeSmith Generator automatically picks up the latest changes when you restart CodeSmith Generator.