配置部分设计器 - 如何修复损坏的XSD?

时间:2014-08-13 14:05:44

标签: configuration designer configurationsection

您好我之前使用过Consfiguration Section Designer来设计自定义配置部分。 最近我发现设计器生成的XSD文件坏了,而不是XSD架构它只包含错误信息(XSD消失了):

An exception occured while running the CsdFileGenerator on this file. See the Error List for details. E=System.InvalidOperationException: TextTemplating service unavailable
   at Microsoft.VisualStudio.TextTemplating.VSHost.BaseTemplatedCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)
   at ConfigurationSectionDesigner.CsdFileGenerator.GenerateAllContent(String fileExtension)
   at ConfigurationSectionDesigner.CsdFileGenerator.GenerateContent(String element)
   at ConfigurationSectionDesigner.VsMultipleFileGenerator`1.Generate(String wszInputFilePath, String bstrInputFileContents, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, IVsGeneratorProgress pGenerateProgress)

有没有办法重新生成XSD?

感谢。

0 个答案:

没有答案