Deploying a Custom Schema Provider
To install your schema provider on another computer:
- Make sure the assembly's file name ends with
SchemaProvider.dll. - Copy the compiled assembly (
bin\SchemaExplorer.CustomSchemaProvider.dllin this example) to theSchemaProvidersfolder of the CodeSmith Generator installation folder, for exampleC:\Program Files (x86)\CodeSmith\v8.5\SchemaProviders. - To use the schema provider from Generator inside Visual Studio, also add the assembly to the global assembly cache.
- Restart Generator and Visual Studio.
Updating for a new version of Generator
When you upgrade Generator, rebuild your schema provider against the new version:
- In your project, remove the references to Generator's assemblies (
SchemaExplorerandCodeSmith.Core). - Add them again from the new Generator installation folder, as described in Creating a custom schema provider.
- To check that a reference points to the right version, select it in Solution Explorer and look at its Version in the Properties window.
- Rebuild the project, and deploy it again to the
SchemaProvidersfolder.