首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >T4模板错误

T4模板错误
EN

Stack Overflow用户
提问于 2009-08-21 12:20:30
回答 1查看 1.4K关注 0票数 3

错误是:

代码语言:javascript
复制
Error   48  A processor named 'PropertyProcessor' could not be found for the directive named 'property'. The transformation will not be run.  The following Exception was thrown:
System.IO.FileNotFoundException: Failed to resolve type for directive processor PropertyProcessor.
   at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolveDirectiveProcessor(String processorName)
   at Microsoft.VisualStudio.TextTemplating.Engine.ProcessCustomDirectives(ITextTemplatingEngineHost host, TemplateProcessingSession session, List`1 directivesToBeProcessed)   Config.tt   2   4   

T4模板是:

代码语言:javascript
复制
<#@ template language="C#" #>
<#@ property name="serverName" processor="PropertyProcessor" type="System.String" #>

using System;   

如何修复此错误?什么意思?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-08-21 13:38:12

<#@属性#>是一个自定义指令。Visual Studio中的T4主机不支持它。您可以使用GAX主机,也可以提供PropertyProcessor的替代实现,例如Clarius Consulting的T4编辑器中包含的实现。更多here

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1311627

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档