02 2013 档案

摘要:今天,查资料的时候无意中发现早在v3.5,.NET Fx就提供了Enumerable.Range这个方法,用来生成指定范围的,连续的整数集合。为什么提起这个记得之前,是看Ruby和CoffeeScript中,在语法层面做了类似的事:[1..5], 然后某天写一段C#代码的时候,忽然也想要这个便利。需求是这样的: from i in new IntRange(1, personCount) select new CustomerModel();于是便中断工作,停下来写了这个,顺便还写了个DateRange和一些单元测试。 阅读全文
posted @ 2013-02-08 11:08 sinlight23 阅读(787) 评论(2) 推荐(0)
摘要:问题在Visual Studio中应用Web Deploy对网站进行Publish... 时遇到错误。 (服务器环境为Windows Server 2008 R2 Enterprise)诊断在服务器上打开服务器管理器-诊断-事件查看器-应用程序和服务日志-Microsoft Web Deploy,得到错误信息:Not able to log on the user '.\WDeployConfigWriter'google找到http://stackoverflow.com/questions/6939150/web-deployment-task-build-failed大意 阅读全文
posted @ 2013-02-05 11:24 sinlight23 阅读(412) 评论(1) 推荐(0)