我的CodeSmith为什么看不见代码预览
我用CodeSmith自带的模板,按下生成按钮 只见进度条闪了下 就是看不见生成的代码,郁闷,为什么会没有代码预览区啊 我的CodeSmith版本是3.0 后来3.1也试过了 一样的 问题点数:10、回复次数:2Top
1 楼TCat(蚊子)回复于 2006-03-29 19:57:24 得分 0
哥们,咱们问题一样,等待能人解答。
我在试着找个注册机试试呢Top
2 楼TCat(蚊子)回复于 2006-03-30 09:18:42 得分 0
我解决了,特来告诉你一下
模板文件一定要这样才能创建成功
<%@ CodeTemplate Language="C#" TargetLanguage="C#"
Description="Generates a class including a special informational header" %>
<%@ Property Name="NameSpace" Type="String"
Category="Context"
Description="The namespace to use for this class" %>
<%@ Property Name="ClassName" Type="String"
Category="Context"
Description="The name of the class to generate" %>
<%@ Property Name="DevelopersName" Type="String"
Category="Context"
Description="The name to include in the comment header" %>
using System;
namespace <%=NameSpace %>
{
/// <summary>
/// Summary description for <%=ClassName %>.
/// </summary>
public class <%=ClassName %>
{
public <%=ClassName %>()
{
}
}
}
Top




