2013年2月8日
摘要: 1,添加项目主输出2,设置默认安装路径当在做windows service setup时,经常出现安装中出现错误的情况,这个在service控制台残留有程序,这时又不能重新安装,卸载程序也不行,我们可以在vs控制台用 installutil /u 程序.exe命令进行卸载程序 阅读全文
posted @ 2013-02-08 15:18 hegang 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 项目右键,点击属性,在属性页选择Build tab中可以定义条件编译符号,符号之间可以用 " ",";"," ,"分隔,并且符号是分大小写的在代码中使用using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ class Program { static void Main(string[] args) {#if TEST Console.WriteLine(" 阅读全文
posted @ 2013-02-08 13:26 hegang 阅读(278) 评论(0) 推荐(0) 编辑