惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
B
Blog
V
V2EX
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
博客园 - 聂微东
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
J
Java Code Geeks
H
Help Net Security
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
D
Docker
L
LangChain Blog
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
WordPress大学
WordPress大学
V
Visual Studio Blog

博客园 - zhh007's Bolg

最近越来越当心,是不是自己真的老了。。。 - zhh007's Bolg - 博客园 在asp.net中应用VML需注意 - zhh007's Bolg - 博客园 链接js文件编码问题[asp.net 2.0] - zhh007's Bolg 图表 Windows Server 2003 激活 - zhh007's Bolg HOOK笔记[2] - zhh007's Bolg - 博客园 HOOK笔记[1] 在Dialog上贴图 C++常用网址 程序代码美化工具 C++程序员常用工具集 C++程序员常用工具书 c++资源之不完全导引 WINDOWS系统文件索引〔转摘〕 看别人这么说,中国人〔转摘〕 面相 把内网服务发布到公网 一招克死所有病毒[值得一看哦] 三十岁前不要去在乎的29件事
CodeSmith OutPut file
zhh007's Bolg · 2006-10-26 · via 博客园 - zhh007's Bolg

 1 <%@ CodeTemplate Language="C#" TargetLanguage="C#" Inherits="OutputFileCodeTemplate" Description="Build custom access code." %>
 2 <%@ Assembly Name="CodeSmith.BaseTemplates" %>
 3 <%@ Import Namespace="CodeSmith.BaseTemplates" %>
 4 <%@ Assembly Name="CodeSmith.CustomProperties" %>
 5 <%@ Import Namespace="CodeSmith.CustomProperties" %>
 6 
 7 
 8 zhh
 9 
10 <script runat="template">
11 [FileDialog(FileDialogType.Save, Title="Select Output File"Filter="C# Files (*.cs)|*.cs", DefaultExtension=".cs")]
12 public override string OutputFile
13 {
14     get {return base.OutputFile;}
15     set {base.OutputFile = value;}
16 }
17 </script>

OutputFileCodeTemplate -- in "CodeSmith.BaseTemplates" Assembly
FileDialog -- in "CodeSmith.CustomProperties" Assembly