摘要: 此脚本支持打包mysql、安装mysql服务、安装windows服务、操作ini文件、操作注册表、高效压缩文件等功能,基本能满足常用的软件打包需求。;定义各种常量#define MyAppName "软件名称"#define MyAppDirName "软件目录名称";下面的版本号,公司名称,网址在... 阅读全文
posted @ 2015-11-13 11:30 自由_ 阅读(3986) 评论(2) 推荐(0) 编辑
摘要: 最近有个项目要调用客户用java写的带https的webservice,对方提供了证书文件 test.pfx,我这里调用方式如下://webservice代理类SvcService svc = new SvcService();//证书文件路径string filePath = ConfigurationManager.AppSettings["pfxUrl"];X509Certificate cert = new System.Security.Cryptography.X509Certificates.X509Certificate(filePath, "12 阅读全文
posted @ 2013-08-20 15:52 自由_ 阅读(35986) 评论(9) 推荐(2) 编辑
摘要: Razor引擎下载地址:http://github.com/Antaris/RazorEngine解析Model: string template = "Hello @Model.Name! Welcome to Razor!"; string result = Razor.Parse(template, new { Name = "World" });使用Helper:string template = @"@helper MyMethod(string name) { Hello @name } @MyMethod(Model.Name)! 阅读全文
posted @ 2013-07-09 20:22 自由_ 阅读(1137) 评论(0) 推荐(1) 编辑