置顶随笔

posted @ 2008-07-28 15:51 Qingping&David 阅读(195) | 评论 (1)编辑

2008年8月27日

wcsf-Intro-scope.png

 

I am a fan of the Web Client Software factory. Its a pretty good implementation of the MVP pattern within ASP.NET. Pretty lean and clean and doesn't involve lots of effort to get the simple stuff done, unlike a lot of other MVC based implementations/frameworks.

One of the things I don't like about it is the automatic inclusion of the Enterprise Library pieces. I know that Entlib integration has been a requested feature of WCSF, but not all of us want it integrated all the time, by default. Ideally I'd like the recipe to prompt whether that support/integration should be included.

Why?

Well Entlib comes with a lot of weight. Its feature heavy but also heavy in complexity and has a large dependency on its myriad of assemblies. Usually migrating from one version to another comes with a degree of pain and in my current crop of projects, not something I wish to entertain. Things like logging and exception management can be better managed by simpler, lightweight implementations specifically designed for my project/solution, in a simpler, leaner way. There is also nothing preventing me from re-adding it back into the solution if I need to.

Its kind of like taking the WCF mantra where you need to "opt-in" for features rather than all the features are there/on by default and you need to remove/disable them (think DataContracts/DataMembers where you need to explicitly include a DataMember before its included as part of the serialization - Opt-in, not just mark a class as Serializable and everything is included - Opt-out).

There has been some discussion around the use and/or recommendation of Entlib on projects, internally on the readify tech lists. A number opposed to its use, others in favor, some on the middle ground in between. The point being, clearly its not for everyone.

I want to Opt-in.

posted @ 2008-08-27 16:16 Qingping&David 阅读(77) | 评论 (0)编辑

2008年8月25日

One of the features I worked on for the Visual Studio 2008 release was the new "Organize Usings" feature.  This feature allows you to:

  1. Remove Unused Usings - Determines which using directives are not used in the current file and deletes them.   
  2. Sort Usings - Sorts the using directives in a file

We've received a great response from customers on the usefulness of this feature but one of the questions that I've received quite often is - "is there a way to make the feature work on an entire project or solution"?  The current answer to this is no.  Given the number of times I've heard the request though, I thought it would be worth posting a workaround that uses macros. 

So here's what you need to do - it's really quite simple:

Step 1: Create a new macro in Visual Studio through the Tools | Macros menu.

Step 2: Paste the code below into the Module and save it

Note that the code below is courtesy of Kevin Pilch-Bisson (http://blogs.msdn.com/kevinpilchbisson/archive/2004/05/17/133371.aspx) and Chris Eargle (http://www.chriseargle.com/post/Format-Solution.aspx), who have posted macros that allow you to format across an entire solution.  I'm simply re-applying their approach to invoke the RemoveAndSort command rather than the FormatDocument command.  Note that I haven't tested this macro extensively so please use at your own risk. 

 

 

Public Module Module1

 

    Sub OrganizeSolution()

 

        Dim sol As Solution = DTE.Solution

 

        For i As Integer = 1 To sol.Projects.Count

 

            OrganizeProject(sol.Projects.Item(i))

 

        Next

 

    End Sub

 

 

 

    Private Sub OrganizeProject(ByVal proj As Project)

 

        For i As Integer = 1 To proj.ProjectItems.Count

 

            OrganizeProjectItem(proj.ProjectItems.Item(i))

 

        Next

 

    End Sub

 

 

 

    Private Sub OrganizeProjectItem(ByVal projectItem As ProjectItem)

 

        Dim fileIsOpen As Boolean = False

 

        If projectItem.Kind = Constants.vsProjectItemKindPhysicalFile Then

 

            'If this is a c# file 

 

            If projectItem.Name.LastIndexOf(".cs") = projectItem.Name.Length - 3 Then

 

                'Set flag to true if file is already open 

 

                fileIsOpen = projectItem.IsOpen

 

                Dim window As Window = projectItem.Open(Constants.vsViewKindCode)

 

                window.Activate()

 

                projectItem.Document.DTE.ExecuteCommand("Edit.RemoveAndSort")

 

                'Only close the file if it was not already open 

 

                If Not fileIsOpen Then

 

                    window.Close(vsSaveChanges.vsSaveChangesYes)

 

                End If

 

            End If

 

        End If

 

        'Be sure to apply RemoveAndSort on all of the ProjectItems. 

 

        If Not projectItem.ProjectItems Is Nothing Then

 

            For i As Integer = 1 To projectItem.ProjectItems.Count

 

                OrganizeProjectItem(projectItem.ProjectItems.Item(i))

 

            Next

 

        End If

 

        'Apply RemoveAndSort on a SubProject if it exists. 

 

        If Not projectItem.SubProject Is Nothing Then

 

            OrganizeProject(projectItem.SubProject)

 

        End If

 

    End Sub

 

End Module

 

Step 3: Run the macro on any solution that you'd like and there you have it!  Enjoy :)

posted @ 2008-08-25 17:10 Qingping&David 阅读(200) | 评论 (2)编辑

2008年8月22日

Bayarsaikhan向我们介绍了目前在微软Codeplex网站上最活跃的25个开源项目。通过这份列表,我们发现微软的程序员们的时间消费观念与世界上其它的Java程序员差不多:玩游戏,然后用AJAX把Web世界装扮一新。你可以在本文末Codeplex Tag云中查看自己最感兴趣的项目。

Codeplex吸引我的理由有很多,但最重要的一点是他将我讨论多年的一些事情变成了现实:基于Windows平台的开源项目对微软来说是一个极好的机会,即展开合作而不是熟视无睹。

并且他们看起来进行的不错(个人观点强于Sourceforge):

Codeplex中的工程都是实际已经在进行的,其中不存在无数的孤立项目,即称之为“抛弃型开放源代码(主要表现形式为项目长期没有更新,没有缺陷报告和补丁发布,没有论坛或者是邮件列表活动,发给项目负责人的电子邮件通常来说有如泥牛入海。)”的项目。而不幸的是这正是Sourceforge的“特色”(Sourceforge上的大部分“工程”页面上什么都没有)。

就我来看,如Sourceforge类站点的优势在于它是一个集市,提供各种不同的、多样的开源项目。而Codeplex则类似于提供基于微软平台的开源项目的一站式的商店。如果微软平台没有如此高的知名度及普及度,那么这一切都是无趣的对比。在这里你可以方便的找到与微软项目的开源项目。

Codeplex要求其中的项目必须基于OSI(开放源代码促进会)认可的协议。Sourceforge也是如此(其中的一部分项目如此)。而我认为最重要的一点就是微软是其成为必要条件。而Codeplex则试图游离开源社区的规则。

那么让我们回过头看看Codeplex上最活跃项目的背景,如下方的tag云,其中的大部分都是稀奇古怪的底层玩意(Web脚本语言的扩展、框架等)。

Codeplex网站上最热门的25个开源项目

嗯,其中最大的一个就是Sharepoint。我已经就Sharepoint的潜在危险警告过最终用户,但开发者们显然对此视而不见。

 

以下是我在这25个最受欢迎的项目中最喜欢的:

Vista Battery Saver(Vista电池节能器)-通过Vista的一项特性来禁止CPU负荷,最多可以延长你的电池寿命达70%的小程序。

 

下载

 

Community Kit for SharePoint(SharePoint社区开发工具包)-一整套包含最佳实例、模版、Web部分,工具及源代码的,可以让任何人创建基于SharePoint技术的用于讨论任何话题的社区式Web站点(这也是Drupal等感兴趣的领域,简化内容管理系统)。

 

下载

 

Facebook Developer Toolkit (Facebook开发工具箱)-当我对怎样及为什么使用Facebook毫无头绪时,这个项目告诉了我,他包含面向Facebook的已封装的.Net API,这可以为Facebook平台编写应用程序的开发者提供极大的便利。

微软已经放下身段为开发者们提供了聚会的场所(即Codeplex网站),而Codeplex看起来在基于微软平台的开源项目开发上做的不错。

 

下载

 

posted @ 2008-08-22 16:53 Qingping&David 阅读(265) | 评论 (1)编辑

Ajax与Atlas开发系列课程(4):网页中的AJAX应用(一).zip
讲座内容:本课介绍了使用AJAX实现在网页中实现应用的基本方法,通过Ajax在浏览器中实现MVC架构,即实现应用与显示模式分离。本课分为两讲,上着重介绍在网页中实现表示层的逻辑。下着重介绍在网页中实现业务逻辑,并介绍表示层如何与业务逻辑进行通信。通过本课程的学习,开发者可以在网页中设计基于MVC...
flayer - 2008-7-9 8:32:50 - zip - 7.40 MB - 下载 : 16 [  预览 ]

Ajax与Atlas开发系列课程(5):网页中的AJAX应用(二).zip
讲座内容:本课介绍了使用AJAX实现在网页中实现应用的基本方法,通过Ajax在浏览器中实现MVC架构,本课主要介绍表示层的应用特性,主要是一些Ajax页面用控件,Ajax的实体模型,以及Ajax的三层架构的访问技巧。课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MSDN特邀讲师北...
hunter - 2008-7-9 8:32:52 - zip - 9.98 MB - 下载 : 15 [  预览 ]

Ajax与Atlas开发系列课程(7):服务器端的AJAX应用(二).zip
讲座内容:本科介绍了AJAX在服务器端的基本实现方法课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MSDN特邀讲师北京工业大学软件工程硕士,微软MSDN特约讲师。曾于微软亚洲工程院MSN组工作,现任中国网通四分公司技术支持与项目部开发经理。具有多年电信系统与OA系统实施经验。 ...
Long - 2008-7-9 8:32:55 - zip - 6.52 MB - 下载 : 12 [  预览 ]

Ajax与Atlas开发系列课程(1):AJAX简介与web2.0.zip
讲座内容:本课程介绍 Ajax技术的背景以及目前的应用概述,着重于介绍Ajax技术的一些概念,以及目前网络上广泛使用的Ajax技术架构概述。通过本课的学习可以让听众对Ajax概念有一个了解,并为后续课程中介绍Ajax开发提供概念铺垫。课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MS...
wdl_916 - 2008-7-9 8:32:42 - zip - 10.52 MB - 下载 : 11 [  预览 ]

Ajax与Atlas开发系列课程(2):Ajax开发介绍.zip
讲座内容:本课程介绍AJAX开发所需要使用的技术,包括Ajax需要使用的xmlhttp.javascript、dom以及xml对象,简单的通过一到两个实例的开发介绍一下Ajax的开发过程。并让用户熟悉一下现在的Ajax产品课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MSDN特邀讲师...
kissinger - 2008-7-9 8:32:46 - zip - 10.41 MB - 下载 : 11 [  预览 ]

Ajax与Atlas开发系列课程(6):服务器端的AJAX应用(一).zip
讲座内容:本课介绍了AJAX在服务器端的基本实现方法课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MSDN特邀讲师北京工业大学软件工程硕士,微软MSDN特约讲师。曾于微软亚洲工程院MSN组工作,现任中国网通四分公司技术支持与项目部开发经理。具有多年电信系统与OA系统实施经验。 ...
JAC2005mg - 2008-7-9 8:32:54 - zip - 7.12 MB - 下载 : 11 [  预览 ]

Ajax与Atlas开发系列课程(13):ASP.NET AJAX的发展与应用.zip
讲座内容:这节课程作为ASP.NET AJAX的综合评述,介绍Atlas更名为ASP.NET AJAX以后的一些变化以及当前版本如何和ASP.NET 2.0整合使用课程讲师:陈黎夫 MSDN特邀讲师微软公司Atlas创始团队——Windows Live Hotmail的软件开发工程师...
我叫斌斌 - 2008-7-9 8:32:44 - zip - 7.50 MB - 下载 : 10 [  预览 ]

Ajax与Atlas开发系列课程(3):AJAX的设计目标.zip
讲座内容:介绍AJAX实现的服务器应用,包括服务器端通过Ajax实现的mvc架构,第三方的Ajax的类库和实现架构。通过本课的学习,用户可以了解到目前广为流传的几个AJAX架构的使用方法,并可以选择一种适合自己的开发架构进行AJAX的程序设计。课程讲师:苏鹏 中国网通技术支持与项目部开发...
zhanghz - 2008-7-9 8:32:48 - zip - 7.95 MB - 下载 : 10 [  预览 ]

Ajax与Atlas开发系列课程(8):设计高质量的Ajax应用.zip
讲座内容: Ajax开发中性能非常重要,本课通过介绍一些技巧,实现缩短响应时间,提高并发响应度,制作高质量的Ajax应用程序课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MSDN特邀讲师北京工业大学软件工程硕士,微软MSDN特约讲师。曾于微软亚洲工程院MSN组工作,现任中国网通四分...
lym - 2008-7-9 8:32:57 - zip - 7.09 MB - 下载 : 8 [  预览 ]

Ajax与Atlas开发系列课程(9):Altas中的Javascript.zip
讲座内容:介绍Ajax的实现架构中最重要的一种altas架构。本课主要介绍一些入门的altas知识和技巧,通过本课的学习,听众可以掌握altas的基本调用方法。课程讲师:苏鹏 中国网通技术支持与项目部开发经理 MSDN特邀讲师北京工业大学软件工程硕士,微软MSDN特约讲师。曾于微软亚...
Eric Mano - 2008-7-9 8:32:59 - zip - 9.01 MB - 下载 : 5 [  预览 ]

posted @ 2008-08-22 16:29 Qingping&David 阅读(68) | 评论 (0)编辑

2008年8月20日

资源页descriptionthis样本显示了如何使用自定义属性编辑器,以量身订做的编辑域属性通过财产grid.in ,以建立范例,您将需要的Visual Studio 2008和的Visual Studio 2008 SDK的(虽然你可以适应抽样工作,在vs2005 ) 。样本包含的Readme.txt这说明了其使用。
文章来源:http://www.isheu.com/data_4551_2.aspx
posted @ 2008-08-20 13:34 Qingping&David 阅读(7) | 评论 (0)编辑
资源页descriptionthis样本中包含的更新版本的DSL工具的C #月底end.wizarduip样本船舶在VS sdk.this更新使用了更先进的代码生成框架,改编自该模式与做法, Web服务软件工厂:建模edition.in ,以建立范例,您将需要的Visual Studio 2008和的Visual Studio 2008 SDK中。
文章来源:http://www.isheu.com/data_4555_2.aspx
posted @ 2008-08-20 13:34 Qingping&David 阅读(8) | 评论 (0)编辑
这一démonstration揭露香格里拉plupart万fonctionnalités disponibles dans香格里拉réplication德类型的融合(合并)太子港盛德的SQL Server 2005等的SQL Server 2008 。乐源代码a閠entièrement développé英文的C # sous的Visual Studio 2008 。 une基地德données德类型的SQL Server紧凑版3.5预测utilisée c魌客户端倾诉乐储存离线。乐générateur德守则olymars ( http://www.olymars.net )一间alement閠utilisé 。这一démonstration illustre乐quotidien万代理商德香格里拉célèbre entreprise德fourniture德达伽兹等-é lectricité, j 'ain ommée lecetgazpourtous!乐原则的一般预测阙本港就业辅导组代理商德地形doivent pouvoir阿勒尔effectuer万干预chez本港就业辅导组客户端德香格里拉协会等saisir toutes本港就业辅导组信息concernant物品travail sur物品的PDA ,曲'是否受限制的ILS connectés坳网络国际互联网欧局首席助理局长。 d镳qu'ils乐souhaitent ,的ILS doivent pouvoir同步器组信息,倾诉pouvoir à remonter香格里拉航空营运督察组données saisies更多信息间alement redescendre本港就业辅导组données modifié ;部sur乐serveur中央。乐德源代码这一démonstration illustre : 
香格里拉充电英文oeuvre出版合并德类型simplela充电英文oeuvre出版合并德型配合物avec filtres dynamiquesla sécurisation complète万acc镳倒本港就业辅导组synchronisationsla决议德冲突的automatiquela的R & # 233 ;德冲突的解决方案通过联合国customresolver écrit恩。净额( C # )的l'使用率由香格里拉réplication倾诉transférer万德的文件类型的照片或其他签字万clientsla gé nération德snaphots dynamiquesla génération dynamique德基地, SQL Server的紧凑版( sqlce ) l'阿佩尔-其它服务( c omme的E TL, W ebS ervices的欧其它)英文鱼翅德同步倾诉p erp& # 233 ; tuer乐transfert和信息jusqu'à une目的地,最后不实际serait局首席助理局长的SQL Server ( comme联合国的任何其他主机欧) 
 这一démonstration a閠écrite杆帕斯卡尔belaud ,恩负责德香格里拉有关技术avec本港就业辅导组développeurs , chez微软法国: http://blogs.msdn 。最好的/帕斯卡尔。
文章来源:http://www.isheu.com/data_4596_2.aspx
posted @ 2008-08-20 13:34 Qingping&David 阅读(8) | 评论 (0)编辑
导言
 linqtocodemodel是一个范例图书馆提供linq设施filecodemodel对象图。它是基于codeelement迭代和推广的方法。更多信息VSX或访问vsx开发中心在http://msdn.com/vsx 。 
链接


 releases1.0释放

 先决条件

 
目标受众

 vsx developersvisual工作室爱好者
 
样本
 
找到班和打印的姓名

 
             filecodemodel流式细胞仪检测= dte.activedocument.projectitem.filecodemodel ; 
 
             foreach ( codeelement元素在fcm.codeelements ) 
             ( 
                如果(元素是codenamespace ) 
                 ( 
                     codenamespace @名字空间=元素作为codenamespace ; 
 
                     foreach ( codeelement子元素in@namespace.children ) 
                     ( 
                        如果(子元素是codeclass ) 
                         ( 
                             codeclass @级=子元素作为codeclass ; 
 
                            的Debug.WriteLine ( @ class.name ) ; 
 
                             / /党内班都是没有考虑到在这里
                         ) 
                     ) 
                 ) 
             ) 
 
找到班和打印的姓名使用linq 

             filecodemodel流式细胞仪检测= dte.activedocument.projectitem.filecodemodel ; 
 
             fcm.getienumerable <codeclass> ( ) 
                。 foreach ( @级= >的Debug.WriteLine ( @ class.name ) ) ; 
     
找到一类与“富”的名称

             filecodemodel流式细胞仪检测= dte.activedocument.projectitem.filecodemodel ; 
 
             foreach ( codeelement元素在fcm.codeelements ) 
             ( 
                如果(元素是codenamespace ) 
                 ( 
                     codenamespace @名字空间=元素作为codenamespace ; 
 
                     foreach ( codeelement子元素in@namespace.children ) 
                     ( 
                        如果(子元素是codeclass ) 
                         ( 
                             codeclass @级=子元素作为codeclass ; 
 
                            如果( @ class.name.equals ( “富” ) ) 
                             ( 
                                打破; 
                             ) 
 
                             / /党内班都是没有考虑到在这里
                         ) 
                     ) 
                 ) 
             ) 
 
找到一类与“富”的名称使用linq 

             filecodemodel流式细胞仪检测= dte.activedocument.projectitem.filecodemodel ; 
 
            无功myclass = 
                   fcm.getienumerable <codeclass> ( ) 
                      。 singleordefault ( @级= > @ class.name.equals ( “富” ) ) ; 
 
更多的样本
 
入门


先决条件

 这个项目是由clarius实验室

                    
                
 
 
         ZIP文件包含: 
来源codeunit测试
文章来源:http://www.isheu.com/data_4698_2.aspx
posted @ 2008-08-20 13:34 Qingping&David 阅读(9) | 评论 (0)编辑
资源页descriptionthis样本语言显示技术,以方便导航,在特定域的语言( “的DSL ” ) designers.in ,以建立范例,您将需要的Visual Studio 2008和的Visual Studio 2008年SDK的(虽然你可以适应样本的工作在vs2005 ) 。目前,样本中包含的代码同步的选择,在设计表面和示范总管。 
  其他可能的导航设备是: 
平移和缩放windowpan拖曳actionmoving项目提高到一个新图
注:这些都是目前没有包含在这个范例。 sychronize表面设计和模型总管--------------------------------------------所有的代码此功能是文件夹中包含的“ dslpackage \ customcode \ syncdiagramandexplorer ” 。见Readme.txt文件在该文件夹中获取更多信息。
文章来源:http://www.isheu.com/data_4769_2.aspx
posted @ 2008-08-20 13:34 Qingping&David 阅读(9) | 评论 (0)编辑

2008年8月13日

这里是介绍E文的

 

 

  Project Description
Sitemaps.NET is a website plugin that automatically generates an XML sitemap of your content. Sitemaps.NET reuses ASP.NET's sitemap functionality and automatically mirrors changes in your site to search engines. Features include:

- Quickly generate XML sitemaps for search engines
- Integrates with the ASP.NET sitemap functionality, automatically mirrors changes to search engines
- Specify the priority and update frequency of content within your site on a page by page basis.
- Simple plug in installation
 
My Blog
My blog can be found at http://james.newtonking.com where I post news and updates about Sitemaps.NET.

  下载地址:http://www.isheu.com/data_5812_1.aspx                  
                 
        
posted @ 2008-08-13 23:38 Qingping&David 阅读(130) | 评论 (0)编辑

导航

<2008年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

统计

与我联系

搜索

 

常用链接

留言簿

我参加的小组

我的标签

随笔分类

随笔档案

收藏夹

Blog收藏

C++ 标准库技术

友情链接

资源链接

最新评论

阅读排行榜

评论排行榜

60天内阅读排行