摘要:
最近将项目的异常日志模块改造成log4net。在Asp.net MVC3 中的改造非常简单,我们只要继承HandleErrorAttribute类使用自定义类,使用特性即可统一处理MVC controller 下的 所有的Action 方法的异常。无须try ... catch.... 详情请见我的这篇随笔http://www.cnblogs.com/ryanding/archive/2010/11/16/1878168.html。我们只要在上文的CustomHandleErrorAttribute方法内植入Log4Net 即可。具体的留给读者自己去实践了。本文主要讲解如何通过代码配置Log4 阅读全文
posted @ 2011-05-10 21:56
HackerVirus
阅读(299)
评论(0)
推荐(1)
摘要:
新版微软一站式示例代码库 5月6日更新下载。下载地址:http://1code.codeplex.com/releases/view/65772你也可以通过示例代码浏览器,按需下载和管理所需的示例代码。如果您是第一次听说All-In-One Code Framework(一站式示例代码库)这个项目,请参阅微软一站式开发技术框架解决方案 中文说明,以及这段视频:http://www.microsoft.com/showcase/en/us/details/40015bbc-2ded-4aba-9613-2c5a47ee3084。---------------------------------- 阅读全文
posted @ 2011-05-10 21:55
HackerVirus
阅读(189)
评论(0)
推荐(0)
摘要:
用过Java的IDE MyEclipse之后,才发现Visual Studio系列其实作为一个IDE还缺少很多必要的功能。特别是在代码重构和代码风格这一块。骂过好几回了,今天发现reSharper这个VS的插件居然具有几乎所有我想要的东西,当然,这个东东是收费的,不过有总比没有强。代码重构比起VS的refactor鸟枪换炮啊! Adjust Namespaces Change Signature Convert Abstract Class to Interface Convert Anonymous to Named Type Convert Extension Method to Plai 阅读全文
posted @ 2011-05-10 18:56
HackerVirus
阅读(780)
评论(0)
推荐(0)
摘要:
A Visual Studio Add-ins: [color=red]API to .NET Mapping Maps common Win32API functions to their .NET CLR equivalents; and, allows the developer to search either MSDN online or Google for more information on either the Win32 function or its .NET counterpart. Visual Studio Add-ins: Add Copyright Notic 阅读全文
posted @ 2011-05-10 18:48
HackerVirus
阅读(548)
评论(0)
推荐(0)
摘要:
无意中发现这么个地方:Ten Essential Tools,上面介绍了十个很好用的插件,以前用过几个,比如:TestDriven.NET,CodeKeep,于是使劲下了下来,但是还有两个找不到下载连接一个是PInvoke.NET 一个是VSMouseBindings,有那位朋友有或知道下载连接的提供一下,谢谢,我把下下来的打了个包,免得后来的朋友一个个找,请到这里下载 Vs10Add-Ins.part1.rarVs10Add-Ins.part2.rarVs10Add-Ins.part3.rar TestDriven.NETTest-driven development is the prac 阅读全文
posted @ 2011-05-10 18:45
HackerVirus
阅读(391)
评论(0)
推荐(0)
浙公网安备 33010602011771号