03 2013 档案

摘要:最近在做WP的语言文件编译时,发现多个语种的编译真的很辛苦啊。于是搜集了 自动编译的相关代码。梦想有一天,把语言文件都放在excel里面,一键搞定所有的语言dll。代码如下: static void Main(string[] args) { //string path = @"E:\OpenSource\SMSHelper\SMSHelper\SMSHelper.csproj"; string path2 = @"SMSHelper\SMSHelper\SMSHelper.csproj"; string pat... 阅读全文
posted @ 2013-03-22 15:06 xiaokang088 阅读(1590) 评论(1) 推荐(1) 编辑
摘要:以往使用snoop或者WPF Performance suite查看WPF应用程序的 UI结构,非常爽。但是,Popup的Dialog就苦逼了,死活不行啊。今天发现了VisualStudio的WPF Tree Visualizer 可以查看,但是必须是在调试环境下。MS的文档: http://msdn.microsoft.com/en-us/library/dd409789.aspx如果没办法调试,仍然不行啊。解决一点算一点吧,记录如下:1. 断点选中 UI对象,下拉箭头,看到了吧,点他一下。2. 打开后,如下:3. 也可以使用Coded UI Test 从测试的角度来搞,但是毕竟还是有点麻烦 阅读全文
posted @ 2013-03-05 14:06 xiaokang088 阅读(1420) 评论(2) 推荐(1) 编辑
摘要:AreComObjectsAvailableForCleanup(http://msdn.microsoft.com/zh-cn/library/system.runtime.interopservices.marshal.arecomobjectsavailableforcleanup.aspx)Indicates whether runtime callable wrappers (RCWs) from any context are available for cleanup.RemarksIf there are a lot of references between managed 阅读全文
posted @ 2013-03-05 13:45 xiaokang088 阅读(528) 评论(0) 推荐(0) 编辑
摘要:释放COM对象相关文档:http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.releasecomobject.aspxMarshal.FinalReleaseComObject 方法http://msdn.microsoft.com/zh-cn/library/system.runtime.interopservices.marshal.finalreleasecomobject.aspxMarshal.ReleaseComObject存安全隐患 阅读全文
posted @ 2013-03-04 14:59 xiaokang088 阅读(1899) 评论(0) 推荐(0) 编辑