学着TerryLee 的把生成代码输出到文件的方式(原贴地址).但总是在在属性框里不出现任何东西呢。结果如下图:

求教CodeSmith生成的代码输出到文件中问题
我用的是CodeSmith v2.6,
模板为:

求教CodeSmith生成的代码输出到文件中问题%@ CodeTemplate Language="C#" TargetLanguage="C#" Inherits="OutputFileCodeTemplate" Description="Build custom access code." %>
求教CodeSmith生成的代码输出到文件中问题
<%@ Assembly Name="CodeSmith.BaseTemplates" %>
求教CodeSmith生成的代码输出到文件中问题
<%@ Assembly Name="CodeSmith.CustomProperties" %>
求教CodeSmith生成的代码输出到文件中问题
<%@ Import Namespace="CodeSmith.CustomProperties" %>
求教CodeSmith生成的代码输出到文件中问题
<%@ Import Namespace="System.IO" %>
求教CodeSmith生成的代码输出到文件中问题
<%@ Import Namespace="System.Windows.Forms.Design"%>
求教CodeSmith生成的代码输出到文件中问题
<%@ Assembly Name="System.Design" %>
求教CodeSmith生成的代码输出到文件中问题
求教CodeSmith生成的代码输出到文件中问题
<script runat="template">
求教CodeSmith生成的代码输出到文件中问题
// Override the OutputFile property and assign our specific settings to it.
求教CodeSmith生成的代码输出到文件中问题
[FileDialogAttribute(FileDialogType.Save, Title="Select Output File", Filter="C# Files (*.cs)|*.cs", DefaultExtension=".cs")]
求教CodeSmith生成的代码输出到文件中问题
public override string OutputFile
%>
先谢谢了,再多问一句那个OutputFileCodeTemplate在哪里可以找到呀?我在我的CodeSmith目录下怎么找不到呢?

相关文章:

  • 2022-02-07
  • 2021-07-25
  • 2021-12-24
  • 2022-12-23
  • 2022-02-10
  • 2021-10-15
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-01-22
  • 2022-02-17
  • 2022-12-23
  • 2022-01-11
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案