public override void Execute() { var designProject = Projects.GetFirstProjectByType(BasePluginConstants.ProjectType_Design); var schemaConverter = new SchemaConverter(); var projectConfigurationSchema = Schemas.GetSchemaByName(Core.CoreConstants.ProjectConfiguration_SchemaName); var projectConfigurationSchemaOutputModel = schemaConverter.Convert(projectConfigurationSchema); projectConfigurationSchemaOutputModel.File = designProject.GetFile("Schemas/XSD/ProjectConfiguration.xsd"); OutputModels.AddOutputModel(projectConfigurationSchemaOutputModel); }
public override void Execute() { var designProject = Projects.GetFirstProjectByType(BasePluginConstants.ProjectType_Design); var schemaConverter = new SchemaConverter(); var designModelSchema = Schemas.GetSchemaByName(BasePluginConstants.DesignModel_SchemaName); var designModelSchemaOutputModel = schemaConverter.Convert(designModelSchema); designModelSchemaOutputModel.Renderer = new XmlOutputModelRenderer(); designModelSchemaOutputModel.File = designProject.GetFile("Schemas/XSD/DesignModels.xsd"); OutputModels.AddOutputModel(designModelSchemaOutputModel); }