分类目录
文章索引模板
Silverlight开发环境 - 二月 20, 2010 by yippee

构建Silverlight开发环境,.Net技术文章,Asp.net系列教程,Asp.net
http://www.diybl.com/course/4_webprogram/asp.net/netjs/2008410/108944.html



Silverlight 4 Beta : The Official Microsoft Silverlight Site
http://www.silverlight.net/getstarted/silverlight-4-beta/
Silverlight 4 Beta Information


On November 18, 2009, at the Professional Developer’s Conference in Los Angeles, Microsoft Corp. unveiled a Beta version Silverlight 4. This latest version delivers hundreds of features and controls that, when combined with the continued innovation in Microsoft’s world-class tools for designers and developers — Microsoft Visual Studio and Microsoft Expression Blend – present the leading edge in rapid, powerful application development. With printing support, rich reporting and charting, and integration with back-end systems and server products including Microsoft SharePoint, Silverlight is ready for business.


What’s New in Silverlight 4? | Get the Tools | Getting Started with Silverlight 4


Note


This is a developer beta release only! This release of Silverlight 4 Beta is a developer release. What this means is that there is no “go-live” licensing available and the end-user runtime of Silverlight 4 is not available. The tools below are intended for software developers only.
What’s New in Silverlight 4 Beta?


Silverlight 4 delivers a full suite of powerful capabilities to business application developers, bringing the best-of-breed .NET platform to browser-based experiences. Silverlight provides an ideal platform for developing and deploying modern business applications for both customer facing and staff-facing applications.
Business Application Development


Silverlight 4 consolidates its position as the natural choice for building business applications on the Web:
New Features for Application Developers


    * Comprehensive printing support enabling hardcopy reports and documents as well as a virtual print view, independent of screen content.
    * A full set of forms controls with over 60 customizable, styleable components. New controls include RichTextbox with hyperlinks, images and editing and Masked textbox for complex field validation. Enhanced controls include DataGrid with sortable/resizeable columns and copy/paste rows.
    * WCF RIA Services introduces enterprise class networking and data access for building n-tier applications including transactions, paging of data, WCF and HTTP enhancements.
    * Localization enhancements with Bi-Directional text, Right-to-Left support and complex scripts such as Arabic, Hebrew and Thai and 30 new languages.
    * The .NET Common Runtime (CLR) now enables the same compiled code to be run on the desktop and Silverlight without change.
    * Enhanced databinding support increases flexibility and productivity through data grouping/editing and string formatting within bindings.
    * Managed Extensibility Framework supports building large composite applications.
    * Exclusive tooling support for Silverlight, new in Visual Studio 2010. Including a full editable design surface, drag & drop data-binding, automatically bound controls, datasource selection, integration with Expression Blend styling resources, Silverlight project support and full IntelliSense.


Developer tools


    * Fully editable design surface for drawing out controls and layouts.
    * Rich property grid and new editors for values
    * Drag and drop support for databinding and automatically creating bound controls such as listbox, datagrid. New datasources window and picker.
    * Easy to pick styles and resources to make a good looking application based on designer resources built in Expression Blend.
    * Built in project support for Silverlight applications
    * Editor with full intellisense for XAML and C# and VB languages.


Empowering richer, more interactive experiences


Silverlight is already in use as a comprehensive platform for building rich experiences both for application and pure media scenarios including HD quality, interactive video through Smooth Streaming. Silverlight 4 introduces additional capabilities to enable creation of ever more rich, appealing high-performance interactive experiences and innovative media experiences:


    * Fluid interface enhancements advance application usability through animation effects.
    * Webcam and microphone to allow sharing of video and audio for instance for chat or customer service applications.
    * Audio and video local recording capabilities capture RAW video without requiring server interaction, enabling a wide range of end-user interaction and communication scenarios for example video conferencing.
    * Bring data in to your application with features such as copy and paste or drag and drop.
    * Long lists can now be scrolled effortlessly with the mouse wheel.
    * Support conventional desktop interaction models through new features such as right-click context menu.
    * Support for Google’s Chrome browser.
    * Performance optimizations mean Silverlight 4 applications start quicker and run 200% faster than the equivalent Silverlight 3 application.
    * Multi-touch support enables a range of gestures and touch interactions to be integrated into user experiences.
    * Multicast networking, enabling Enterprises to lower the cost of streaming broadcast events such as company meetings and training, interoperating seamlessly with existing Windows Media Server streaming infrastructure.
    * Content protection for H.264 media through Silverlight DRM powered by PlayReady.
    * Output protection for audio/video streams allowing content owners or distributors to ensure protected content is only viewed through a secure video connection.


Move beyond the browser


Silverlight 3 pioneered the delivery of a new class of Rich Internet Applications to work on the desktop without additional code or runtimes. Silverlight 4 extends this capability:
For Sandboxed applications


    * Place HTML within your application enabling much tighter integration with content from web servers such as email, help and reports.
    * Provide support for ‘toast’ notification windows, allowing applications to communicate status or change information while the user is working on another application through a popup window on the taskbar.
    * Offline DRM, extending the existing Silverlight DRM powered by PlayReady technology to work offline. Protected content can be delivered with a persistent license so that users can go offline immediately and start enjoying their content.
    * Control over aspects of UI include window settings such as start position, size and chrome.


For Trusted applications


    * Read and write files to the user’s MyDocuments, MyMusic, MyPictures and MyVideos folder (or equivalent for non-windows platforms) for example storage of media files and taking local copies of reports.
    * Run other desktop programs such as Office, for example requesting Outlook to send an email, send a report to Word or data to Excel.
    * COM automation enables access to devices and other system capabilities by calling into application components; for instance to access a USB security card reader.
    * A new user interface for requesting application privileges access outside the standard Silverlight sandbox.
    * Group policy objects allow organizations to tailor which applications may have elevated trust.
    * Full keyboard support in fullscreen mode richer kiosk and media applications.
    * Enhancements to networking allow cross-domain access without a security policy file.


To learn more about these features, visit the PDC09 site to view sessions from the conference!


Below is more detailed information on where you can get the Beta and resources to help you get started learning.
Get the Tools!


To get started you’ll first want to download the tools to make Silverlight 4 Beta development productive for you.


IMPORTANT DEVELOPER NOTE:


Visual Studio 2010 can be installed side-by-side with Visual Studio 2008 SP1. For Silverlight 4 development, you will need Visual Studio 2010. Please read the known issue on installing Visual Studio 2010 if you already have the Silverlight 3 SDK installed.


Ensure that you have Visual Studio 2010 Beta 2 or Visual Web Developer Express 2010 Beta 2 installed as it is a prerequisite for developing Silverlight 4 Beta applications using Visual Studio. Below are the additional tools you’ll want to get started:


    * Silverlight 4 Beta Tools for Visual Studio 2010
      This will install the developer runtime of Silverlight 4 Beta, the Visual Studio project support and the Silverlight 4 SDK. If you are developing Silverlight 4 Beta applications, this will be the minimum you want to install!


    * Windows Runtime or Mac Runtime
      If you installed the tools above, you will get the developer runtime and there is no need to install again. These downloads are being made available for test machines for the Windows and Mac platforms for your applications.


    * Microsoft Expression Blend for .NET 4 Preview
      This is a preview version of Expression Blend that will enable authoring of Silverlight 4 Beta applications.


    * Silverlight Toolkit
      The toolkit has been updated to provide support for Visual Studio 2010 and Silverlight 4 beta development. The Toolkit provides numerous controls for your application and source code is also included for these controls using an Open Source license.


    * WCF RIA Services
      Microsoft WCF RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.


    * Online Silverlight 4 Beta Documentation


    * Offline CHM help Silverlight 4 Beta Documentation file download


Once you have the tools you need to get started, view more information below to walk you through some of the new features in detail and download some sample code.


Balder 0.8.8.6 is out
http://www.ingebrigtsen.info/post/2010/02/08/Balder-0886-is-out.aspx



Silverlight demo show(众多可在线欣赏的好例子) – innhyul – 博客园
http://www.cnblogs.com/innhyul/archive/2010/02/08/1665915.html



建立类似Office 2010界面的silverlight 应用 step-3 – 我和未来有约会 – 博客园
http://www.cnblogs.com/nasa/archive/2010/02/06/create-Office2010UI-silverlight-app-step-3.html



Prism研究(for WPF & Silverlight) 1-3 – 包建强的开源地带 – 博客园
http://www.cnblogs.com/Jax/archive/2009/05/25/1488797.html



Prism研究(for WPF & Silverlight)4.从Hello World开始(实战篇) – 包建强的开源地带 – 博客园
http://www.cnblogs.com/Jax/archive/2009/05/30/1491921.html



Silverlight 3 中“宋体”等中文字体的使用 – 洪星的博客(原创版,新闻除外) – 博客园
http://www.cnblogs.com/hongcing/archive/2010/02/02/1662140.html



Prism研究(for WPF & Silverlight) 1-3 – 包建强的开源地带 – 博客园
http://www.cnblogs.com/Jax/archive/2009/05/25/1488797.html



 

标签:
Silverlight push - 二月 18, 2010 by yippee

如何用VS2008配置silverlight 开发环境
http://topic.csdn.net/u/20090730/09/23bed5e0-822c-4ddf-ae49-45528a6ba8bf.html



构建Silverlight开发环境,.Net技术文章,Asp.net系列教程,Asp.net
http://www.diybl.com/course/4_webprogram/asp.net/netjs/2008410/108944.html



Silverlight Push
http://www.udaparts.com/document/Tutorial/slpush.htm



Pushing Data to a Silverlight Client with a WCF Duplex Service – Part II – Dan Wahlin’s WebLog
http://weblogs.asp.net/dwahlin/archive/2008/06/19/pushing-data-to-a-silverlight-client-with-a-wcf-duplex-service-part-ii.aspx



利用 WCF duplex Service 【推送】数据到Siliverlight客户端 的双向通讯例子 – Shareach – 博客园
http://www.cnblogs.com/yinpengxiang/archive/2009/03/21/1418133.html



Pushing Data to a Silverlight Client with a WCF Duplex Service – Part I – Dan Wahlin’s WebLog
http://weblogs.asp.net/dwahlin/archive/2008/06/16/pushing-data-to-a-silverlight-client-with-wcf-duplex-service-part-i.aspx



[转贴]Silverlight Socket 实现收发信息 – 菩提树下的杨过.Net – 博客园
http://www.cnblogs.com/yjmyzz/archive/2009/11/23/1608522.html



C# SilverLight Socket 客户端 核心代码(此代码有BUG只能收到一次数据) – skybot的专栏 – CSDN博客
http://blog.csdn.net/daonidedie/archive/2008/10/14/3075443.aspx



Silverlight Socket 实现收发信息 – 待缘-周飞 – CSDN博客
http://blog.csdn.net/banmuhuangci/archive/2009/05/16/4192031.aspx



求一个Silverlight Socket通信的例子 或者帮我改改我写的类,谢谢
http://topic.csdn.net/u/20090916/09/6d3f77a0-c915-4c14-b1cb-479a051e5645.html
_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); _SendSocketAsyncEvntArgs = new SocketAsyncEventArgs(); _SendSocketAsyncEvntArgs.RemoteEndPoint = new DnsEndPoint(Application.Current.Host.Source.Host, port); _SendSocketAsyncEvntArgs.Completed += new EventHandler<SocketAsyncEventArgs>(SocketAsync_Completed); _Socket.ConnectAsync(_SendSocketAsyncEvntArgs);


CLR & Silverlight上海研发团队的Blog : Silverlight3的7个新功能
http://blogs.msdn.com/silverlightshanghai/archive/2009/03/24/silverlight3-7.aspx



 

标签:
Silverlight OpenFileDialog - 二月 17, 2010 by yippee

在silverlight中使用OpenFileDialog浏览本地图片 – 代震军BLOG – 博客园
http://www.cnblogs.com/daizhj/archive/2008/06/03/1212084.html



silverlight能够访问本地硬盘的资源么? | Silverlight中文社区
http://silverlight.cn/node/1796



http://funsl.com/blog
http://funsl.eblhost.cn/drupal/content/silverlight-4-%E6%9C%AC%E5%9C%B0%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E8%AE%BF%E9%97%AE%E6%94%AF%E6%8C%81



http://funsl.com/blog
http://funsl.eblhost.cn/drupal/content/silverlight-4-beta-%E5%BC%80%E5%8F%91%E5%B9%B3%E5%8F%B0%E5%AE%89%E8%A3%85
1.visual studio 2010 beta2


http://www.microsoft.com/downloads/details.aspx?FamilyID=dc333ac8-596d-41e3-ba6c-84264e761b81&displaylang=en


2.Silverlight 4 Beta Tools for Visual Studio 2010


http://go.microsoft.com/fwlink/?LinkID=177508


3.Siverlight 4 developer runtime for windows


http://silverlight.dlservice.microsoft.com/download/F/6/5/F653F7FD-AD4D-411D-8B1F-9C4B1BD69881/Silverlight_Developer.exe


4.Microsoft Expression Blend for .NET 4 Preview


http://go.microsoft.com/fwlink/?LinkId=169446


5.silverlight toolkit for silverlight 4 beta


http://silverlight.codeplex.com/


请安装所有工具前先把IIS功能添加到系统再开始按以上的顺序安装开发平台!


http://funsl.com/blog
http://funsl.eblhost.cn/drupal/content/silverlight-4-beta-%E5%BC%80%E5%8F%91%E5%B9%B3%E5%8F%B0%E5%AE%89%E8%A3%85



silverlight如何在客户端写入文件-ASP.NET教程-数字生活
http://www.22333.com/webdevelop/30340_3.html



Save to local file system in Silverlight : The Official Microsoft Silverlight Site
http://forums.silverlight.net/forums/p/16183/68401.aspx



Tutorial: Reading Local Files in Silverlight
http://www.insidercoding.com/post/2008/08/17/Reading-Local-Files-in-Silverlight.aspx



Shri Borde’s WebLog : Saving a file to the local disk in Silverlight
http://blogs.msdn.com/shrib/archive/2007/09/25/saving-a-file-to-the-local-disk-in-silverlight.aspx



How To Read File On Local Disk : The Official Microsoft Silverlight Site
http://forums.silverlight.net/forums/p/11391/36549.aspx



Open File Dialog in Silverlight
http://www.silverlightexamples.net/post/Open-File-Dialog-in-Silverlight.aspx



Tutorial: Reading and Writing Files in Silverlight
http://www.insidercoding.com/post/2008/08/08/Tutorial-Reading-and-Writing-Files-in-Silverlight.aspx
IsolatedStorageFile


Currently Watching : The Official Microsoft Silverlight Site
http://silverlight.net/learn/videos/all/local-file-access/



详解Silverlight 2中的独立存储
http://soft.zdnet.com.cn/software_zone/2009/0204/1332042.shtml
IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings; appSettings.Add(“mykey”,”myValue”); appSettings.Save(); IsolatedStorageSettings siteSettings = IsolatedStorageSettings.SiteSettings; siteSettings.Add(“mykey1″,”myValue1″); siteSettings.Save();


It should be fun | Accessing the local file system in Silverlight 3
http://blog.rag.no/post/Accessing-the-local-file-system-in-Silverlight-3.aspx



Jeff Prosise’s Blog : Loading Images from the Local File System in Silverlight 2.0
http://www.wintellect.com/cs/blogs/jprosise/archive/2008/03/15/loading-images-from-the-local-file-system-in-silverlight-2-0.aspx
OpenFileDialog ofd = new OpenFileDialog();


ofd.Filter = “JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg | All Files (*.*)|*.*”;


ofd.FilterIndex = 1;


 


if (ofd.ShowDialog() == DialogResult.OK)


{


    Stream stream = ofd.SelectedFile.OpenRead();


    BitmapImage bi = new BitmapImage();


    bi.SetSource(stream);


    MyImage.Source = bi;


    stream.Close();


}


 

标签:
Silverlight info - 二月 16, 2010 by yippee

using MediaElement play video issue : The Official Microsoft Silverlight Site
http://betaforums.silverlight.net/forums/p/108465/250221.aspx#250221



SilverBullet #8 – Accessing local files
http://geekswithblogs.net/tkokke/archive/2009/07/21/silverbullet-8-ndash-accessing-local-files.aspx



Since Silverlight 4 can read files on local machine, could it access a SDF file? – Stack Overflow
http://stackoverflow.com/questions/2109848/since-silverlight-4-can-read-files-on-local-machine-could-it-access-a-sdf-file



Pro Silverlight 2 in C# 2008 – Google Books
http://books.google.com/books?id=ehQuNr8DaFEC&pg=PA504&lpg=PA504&dq=silverlight+read+local+file+openfiledialog&source=bl&ots=9AhB0P2hYp&sig=Wp6ezaUkhxRHQiLFMTrRw_WfXug&hl=en&ei=0NlwS6f3Hs6HkAWDycD5CQ&sa=X&oi=book_result&ct=result&resnum=9&ved=0CCUQ6AEwCA#v=onepage&q=silverlight%20read%20local%20file%20openfiledialog&f=false



Silverlight Push
http://www.udaparts.com/document/Tutorial/slpush.htm



Push (Comet) or pull ? – Florent Clairambault
http://florent.clairambault.fr/push-comet-or-pull
On PHP, you can use The Ajax Push Engine.
On pure .Net environnement, you can use WCF WsDualHttpBinding to serve data.
The CometD is a stable opensource comet server project. JQuery and Dojo can consume it.
You have LightStreamer, a commercial product with a free license. It can be connected with nearly anything (the only unsupported type of server seems to be PHP) or StreamHub which has a very restrictive free license.


Using Silverlight to push data to the browser : The Official Microsoft Silverlight Site
http://forums.silverlight.net/forums/p/59294/220722.aspx



使用silverlight实现服务器推送消息_My Sight_百度空间
http://hi.baidu.com/aoca/blog/item/937e59f41de373e97709d755.html



Silverlight(23) – 2.0通信之调用WCF的双向通信(Duplex Service)(3) – 技术应用 – 豆豆网
http://tech.ddvip.com/2008-12/1229572932100964_3.html



Silverlight 3.0 “Push” Capability information – Stack Overflow
http://stackoverflow.com/questions/678504/silverlight-3-0-push-capability-information
duplex channel


Web服务器推送技术 – daojunzeng的专栏 – CSDN博客
http://blog.csdn.net/daojunzeng/archive/2009/05/12/4170516.aspx



AJAX推送与拉取方式的比较_web吧_百度贴吧
http://tieba.baidu.com/f?kz=515375247



ASP.NET and Comet: Bringing Sockets Back – CodeProject
http://www.codeproject.com/KB/aspnet/wxv_comet.aspx



Comet Daily » Blog Archive » .Net and Comet?
http://cometdaily.com/2008/02/19/net-and-comet/



Silverlight Screencasts and Training Videos : The Official Microsoft Silverlight Site
http://silverlight.net/learn/videos/silverlight-videos/



Comet Daily » Blog Archive » .Net and Comet?
http://cometdaily.com/2008/02/19/net-and-comet/



Silverlight Examples – Michael’s Blog
http://www.silverlightshow.net/items/Silverlight-Examples-Michael-s-Blog.aspx



Silverlight and push notifications – Stack Overflow
http://stackoverflow.com/questions/640488/silverlight-and-push-notifications



Comet Daily » Blog Archive » Ajax, Flex or Silverlight?
http://cometdaily.com/2009/03/30/comet-ajax-flex-and-silverlight/



Comet Daily » Blog Archive » Silverlight and Comet?
http://cometdaily.com/2008/05/16/silverlight-and-comet/



Comet:基于 HTTP 长连接的“服务器推”技术
http://www.ibm.com/developerworks/cn/web/wa-lo-comet/



 

标签:
Silverlight 开发 环境 - 二月 15, 2010 by yippee

构建Silverlight开发环境,.Net技术文章,Asp.net系列教程,Asp.net
http://www.diybl.com/course/4_webprogram/asp.net/netjs/2008410/108944.html
 一. 基于 Visual Studio 2008 构建 Silverlight 开发环境 (以下链接都是微软官方下载,需要序列号或者其他的请自己网上搜索一下)


1. 下载并安装 Visual Studio 2008


    安装 Visual Studio 2008 系统要求:


    * 操作系统: Windows Server 2003; Windows Vista; Windows XP
    * 最低配置:1.6 GHz CPU,384 MB 内存,1024×768 显示分辨率,5400 RPM 硬盘
    * 建议配置:2.2 GHz 或更快的 CPU,1024 MB 或更大的内存,1280×1024 显示分辨率,7200 RPM 或更快的硬盘
    * 在 Windows Vista 上运行的配置要求:2.4 GHz CPU,768 MB 内存


  
2. 下载并安装 Microsoft Silverlight Tools Beta 1 for Visual Studio 2008
    安装 Microsoft Silverlight Tools Beta 1 for Visual Studio 2008 系统要求:


    * 操作系统: Windows Server 2003; Windows Vista; Windows XP
    * Microsoft Visual Studio 2008 标准版以上
    * Microsoft Expression Blend [可选]



3. 下载并安装 Microsoft Expression Blend Free Trial [可选, 但是建议安装,在UI开发的时候还是比较好用的]
    安装 Microsoft Expression Blend Free Trial 系统要求:


    * 支持的操作系统: Windows Vista; Windows XP Service Pack 2


    * 最低系统要求:
          o Intel® Pentium® 或 AMD 处理器,1 GHz(带 MMX 功能)或相当的处理器
          o 512 MB RAM
          o 350 MB 可用硬盘空间
          o 支持 DirectX® 9 的图形处理器
          o 显示器分辨率 1024 x 768,24 位色


    * 建议使用以下系统:
          o Intel Pentium 或 AMD 处理器,2 GHz(带 MMX 功能)或相当的处理器
          o 1GB RAM
          o 支持 Microsoft® DirectX® 9.0 的视频卡,带 256 MB 或更多内存,例如与 ATI Radeon® X300 或 NVIDIA® GeForce 5600 级别相当或更好的视频卡
          o 显示器分辨率 1280 x 1024 或更高,32 位色


    * Windows XP 图形要求:
          o 单击“控制面板”中的“显示”。
          o 单击“设置”选项卡,然后在“颜色质量”之下,确保选中“最高(32 位)”。
          o 下一步,单击“高级”按钮,然后在“适配器”选项卡上,单击“属性”按钮。
          o 单击“驱动程序”选项卡,并查看“驱动程序日期”旁边的内容,检查日期是否晚于 11/1/2004。如果不晚于该日期,则除非升级视频驱动程序,否则系统上的视频和硬件加速不能正常使用。


    * Windows Vista图形要求:
          o 在“控制面板”的“外观和个性化”之下,单击“调整屏幕分辨率”。
          o 在“颜色”之下,确保选中“最高(32 位)”。
          o 下一步,单击“高级设置”按钮,然后在“适配器”选项卡上,单击“属性”按钮。
          o 单击“驱动程序”选项卡,并查看“驱动程序日期”旁边的内容,检查日期是否晚于 11/1/2004。如果不晚于该日期,则除非升级视频驱动程序,否则系统上的视频和硬件加速不能正常使用。



4. 创建你的第一个 Silverlight 程序


    * 创建 Silverlight 工程
          o 启动 Visual Studio 2008.
          o 打开创建工程窗口,选择 Silverlight
          o 在模板列表,选择 Silverlight Application
          o 输入保存路径,确定建立工程


    * 创建 Silverlight 宿主程序
          o 在添加Silverlight程序的窗体上,选择宿主程序类型
          o 创建一个新的Web程序作为Silverlight的宿主 或 生成一个测试网页作为Silverlight的宿主



    * 编写属于你自己的代码


轻松建立Silverlight开发环境_银光中国 – Silverlight资源社区
http://www.silverlightchina.net/html/learn/2009/0706/5.html
建立Silverlight开发环境分以下四个步骤:


1. 首先需要安装开发工具,对于Silverlight 3项目开发,必须使用 Visual Studio 2008 SP1 或者 Visual Web Developer Express with SP1 作为开发工具。在安装过程中,.Net Framework 3.5 sp1同时被安装,如果没有安装.Net Framwork 3.5 sp1需要独立下载安装。


 


2. 安装开发工具后,需要下载安装Silverlight工具开发包. 点击下载: Silverlight Tools for Visual Studio 2008 SP1, 完成Silverlight开发包安装后,Visual Studio 2008中将自动更新添加Silverlight项目开发模板,以及Silverlight SDK和相关开发环境.


 


3. 针对Silverlight 3项目,用户界面设计人员来讲,还需要安装Microsoft Expression Blend 3 . Blend是Expression配套软件,可以让界面设计人员很轻松的开发出专业的Silverlight用户界面.


 


4. 最后,需要下载Silverlight Toolkit. 该控件是微软开发的Silverlight控件扩展包.


 


完成以上安装后,即可进行Silverlight开发了.


请注意,Silverlight开发环境对于语言环境要求比较严格,在中文开发环境中,不能安装英文版本的Silverlight开发包。


 


最新Silverlight 3 英文开发包下载:  http://silverlightchina.net/html/download/books/2009/0710/56.html


最新Silverlight 3 中文开发包下载: http://silverlightchina.net/html/download/2009/0730/132.html


Silverlight Toolkit – Release: November 2009
http://silverlight.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=36060



Expression系列软件破解方法以及附件下载_银光中国 – Silverlight资源社区
http://silverlightchina.net/html/download/code/2009/0928/197.html



 

标签:
令人抓狂的silverlight3开发环境构建 - 九月 1, 2009 by yippee

令人抓狂的silverlight3开发环境构建


想弄下silverlight 3 ,我已经安装了VS2008 SP1。
到官网一看:东西不少
Microsoft® Silverlight™ 3 Tools for Visual Studio 2008 SP1
Microsoft® Silverlight™ 3 SDK
Microsoft Silverlight 3 脱机文档


不过SDK还不到10M。而2.0版本的却有
Microsoft® Silverlight™ 2 软件开发工具包 55.8 MB



安装了SDK,说我原有版本更高。这也是我登录MS网站提示我安装的。
于是就卸载。然后安装了SDK


再安装TOOLS,结果提示:
Action: Downloading Items…


[9/1/2009, 11:35:39] (IronSpigot::CompositeDownloaderT<class IronSpigot::RetryingDownloaderT<class IronSpigot::WinHttpDownloader,class IronSpigot::BitsDownloader,class IronSpigot::UrlMonDownloader,class IronSpigot::FileAuthenticity> >::PerformAction) Downloading http://go.microsoft.com/fwlink/ to R:\TEMP\Silverlight 3.0 Tools\Silverlight_Developer.exe
[9/1/2009, 11:35:39] (IronSpigot::RetryingDownloaderT<class IronSpigot::WinHttpDownloader,class IronSpigot::BitsDownloader,class IronSpigot::UrlMonDownloader,class IronSpigot::FileAuthenticity>::UseHttp) Determine the protocol to use


去下载了一个,安装了后继续:
提示版本不对,只好卸载,再重新安装TOOLS


亏我还是官网下载的:http://download.microsoft.com/download/0/D/7/0D76C405-E0E5-43CC-89D3-18243A4FCA86/Silverlight.3.0_Developer.exe
下载SDK的时候看到的:
在安装 Silverlight 3 SDK 前,请删除 Silverlight 3 SDK Beta。


如果您已安装或计划安装 Microsoft Silverlight Tools for Visual Studio 2008,请直接跳过 Silverlight SDK 的安装。Microsoft Silverlight Tools 将安装 Silverlight 3 SDK。有关此方面的更多信息,请单击此处。


若要生成 Silverlight 3 应用程序,您可以在此处安装 Silverlight 3 for Developers



结果提示安装失败
WINHTTP_CALLBACK_STATUS_REQUEST_ERROR error: error=12002, result= 2. Percentage downloaded=19
[9/1/2009, 12:1:19] (IronSpigot::RetryingDownloaderT<class IronSpigot::WinHttpDownloader,class IronSpigot::BitsDownloader,class IronSpigot::UrlMonDownloader,class IronSpigot::FileAuthenticity>::PerformAction) Download failed at attempt 4 of 4 for http://go.microsoft.com/fwlink/?LinkID=150219 using http:
[9/1/2009, 12:1:19] (IronSpigot::LogUtils::LogFinalResult) Final Result: Installation failed with error code: (0×80072EE2).


[9/1/2009, 12:1:19] Action complete



只好又重新手工下载··然后安装


结果这个···
居然还是要下载······
我彻底无语了········


~~~~~~~~~
1. 先打VS2008Sp1的包
http://www.microsoft.com/downloadS/details.aspx?familyid=27673C47-B3B5-4C67-BD99-84E525B5CE61&displaylang=zh-cn


2. 装 Silverlight3_Tools.exe
http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=c22d6a7b-546f-4407-8ef6-d60c8ee221ed


3. 装silverlight_sdk.exe


http://www.microsoft.com/downloads/details.aspx?familyid=8D933343-038F-499C-986C-C3C7E87A60B3&displaylang=zh-cn


1:安装VS2008


下载地址:http://msdn.microsoft.com/en-us/vs2008/products/cc268305.aspx


 


2:给VS2008打SP1补丁


下载地址:http://www.microsoft.com/downloads/details.aspx?FamilyID=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en



3:安装VS2008专用SilverLight开发插件


VS2008 SP1默认不安装Silverlight模版。需要手动下载Microsoft Silverlight Tools for Visual Studio 2008下载地址是:


http://www.microsoft.com/downloads/details.aspx?FamilyID=50a9ec01-267b-4521-b7d7-c0dba8866434&DisplayLang=en


有多种语言版本。


下载前请按网页上的,提示卸载以前任何SL1.1或以前版本的 相关补丁。


下载安装后,新建工程,会出现SilverLight模版选项,此时,VS2008也能和Microsoft Expression Blend 结合使用了。


(图用的博客园一位同仁的)


最后,注意安装顺序。


(1),卸载Silverlight Runtime(客户端插件),经过个人测试,这步好像是必须的,不然第2步到最后会失败。如果失败,从第1步重来


(2),安装Microsoft Silverlight Tools for Visual Studio 2008


(3),然后安装Silverlight Runtime

标签:, ,
20070724 IronPython Silverlight WSADuplicateSocket ICE ACE - 四月 24, 2008 by yippee

20070720 IronPython Silverlight WSADuplicateSocket ICE ACE
http://www.yippeesoft.com

http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=2573
 1.1 Production

Release name is required
IronPython v1.1 is a minor update to IronPython including both new functionality as well as a number of targeted bug fixes. The new functionality in v1.1 includes several new modules (array, SHA, MD5, and select), support for XML Doc comments within the help system and _doc_ tags, as well as support for loading cached pre-compiled modules.

http://msdn2.microsoft.com/en-us/asp.net/bb187452.aspx
Silverlight Downloads

http://www.codeproject.com/useritems/Call_ironpython__in_C_.asp
Call ironpython in C#

http://www.fish888.com/IronPython-Net-t123690
用IronPython作为.Net的脚本语言。

http://mail.python.org/pipermail/pythondotnet/2007-June/000619.html
Could you tell me how to call python from c#?

http://lists.ironpython.com/pipermail/users-ironpython.com/2006-August/003139.html
Debugging support PythonEngine

http://blog.bittercoder.com/PermaLink,guid,653e6795-9974-47b7-910e-9e4a2d1b4112.aspx
More IronPython and delegates…

ADO.NET Entity Framework June 2007 CTP
http://www.microsoft.com/downloads/details.aspx?FamilyID=5C12FE07-E646-49C2-887F-8CC070B37247&displaylang=en
This CTP contains updates to the ADO.NET Entity Framework since the Visual Studio Codename "Orcas" Beta 1 release, including changes in Object Services, Query, Entity Client, and the Entity Data Model Wizard in Visual Studio. Some of the new features include IPOCO, detaching from long-running ObjectContext instances, multiple entity sets per type, support for referential integrity constraints, span support, transactions, serialization, no more default constructors in code-generated classes, improvements to stored procedure support, access to the underlying store connection, directory macros in the entity connection string to support hosted scenarios, native SQL read-only views, UNICODE support in Entity SQL, query plan caching, and canonical functions in Entity SQL.

http://msdn2.microsoft.com/en-us/library/aa697427(vs.80).aspx
The ADO.NET Entity Framework Overview

http://www.cnblogs.com/Ring1981/archive/2006/08/21/420550.html
ADO.NET Entity Framework简介

 C#与IronPython脚本进行数据交互示例
http://blog.csdn.net/yefanqiu/archive/2007/06/04/1637222.aspx

http://www.rainsts.net/article.asp?id=379
Embedding IronPython

http://www.cnblogs.com/perhaps/archive/2005/12/27/305253.html
不可错过的MSDN TV —— IronPython: Python on the .NET Framework (上)

WSADuplicateSocket()
简述:为一个共享套接口创建一个新的描述字。

          #include <winsock2.h>

          SOCKET WSAAPI WSADuplicateSocket ( SOCKET s,
          WSATASK hTargetTask );
        
s:指定本地套接口描述字。
hTargetTask:指定使用共享套接口的目标任务的句柄。

返回值:
  若无错误发生,WSADuplicateSocket()返回新的套接口描述字。否则的话,将返回INVALID_SOCKET错误,应用程序可通过WSAGetLastError()来获取相应的错误代码。

错误代码:
WSANOTINITIALISED                在调用本API之前应成功调用WSAStartup()。
WSAENETDOWN                        网络子系统失效。
WSAEINVAL                                参数中有非法值。
WSAEINPROGRESS                一个阻塞的WinSock调用正在进行中,或者服务提供者仍在处理一个回调函数
WSAEMFILE                                无可用套接口描述字。
WSAENOBUFS                        无可用缓冲区空间,套接口未创建。
WSAENOTSOCK                        描述字不是一个套接口。

给个delphi的例子 
  
  //   发送方 
                                  New(lpProtocolInfo); 
                                  if   WSADuplicateSocket(Session.s,WokeModeRec^.mProcessID,lpProtocolInfo)<>SOCKET_ERROR   then 
                                  begin 
                                        Getmem(CopyData,sizeof(TCOPYDATASTRUCT)); 
                                        CopyData.dwData:=2;                                           //   文字消息 
                                        CopyData.cbData:=SizeOf(lpProtocolInfo^); 
                                        CopyData.lpData:=lpProtocolInfo; 
                                        Sendmessage(WokeModeRec^.mMainHandel, 
                                                                WM_COPYDATA, 
                                                                0, 
                                                                LPARAM(CopyData)); 
                                        FreeMem(CopyData); 
                                  end; 
                                  Dispose(lpProtocolInfo); 
  //   接收方 
  GetMem(pData,PCOPYDATASTRUCT(Msg.LParam)^.cbData); 
  CopyMemory(lpProtocolInfo,PCOPYDATASTRUCT(Msg.LParam)^.lpData,PCOPYDATASTRUCT(Msg.LParam)^.cbData); 
                                  FShareSocket   :=   WSASocket(AF_INET,   SOCK_STREAM,   IPPROTO_IP,   lpProtocolInfo,   0,   WSA_FLAG_OVERLAPPED); 
                                  if   (INVALID_SOCKET   =   FShareSocket)   then 
                                  begin 
                                      Raise   Exception.CreateFmt(\’%d\’,[WSAGetLastError]); 
                                      WSACleanup(); 
                                  end; 
  FreeMem(pData);

ICE和ACE拿在一起比较不合适,他们的目标都不一样,ICE还是和SOAP之类的东西比较吧。   
  网络性能当然是ACE好,ICE的强项是RPC,也就是说它实现了一个协议+运行时,而且跨平台跨语言,比起CORBA来说,ICE不知道轻了多少。   
  如果是写一些网络性能要求较高的C/S程序,我觉得还是ACE合适,毕竟还可以选择各种网络模型。如果编写服务,还是选ICE吧,特别是3.0还支持网格。java环境下我比较过SOAP和ICE的性能,同样一个登录服务,ICE一秒钟强调用300次,SOAP只调用了40次。

  分布式中间件开发VS分布式开发之ACE
2006-08-24 15:39

ICE(Internet Communications Engine)是ZeroC提供的一款高性能的中间件,基于ICE可以实现电信级的解决方案。前面我们提到过在设计网站架构的时候可以使用ICE实现对网站应用的基础对象操作,将基础对象操作和数据库操作封装在这一层,在业务逻辑层以及表现层(java,php,.net,python)进行更丰富的表现与操作,从而实现比较好的架构。基于ICE的数据层可以在未来方便的进行扩展。ICE支持分布式的部署管理,消息中间件,以及网格计算等等。

不同平台之间互操作的利器–ice

ice是目前非常流行的分布式技术。虽然不是国际标准,虽然它只是由一家不到100人的小公司开发,但是其应用的广泛却令人惊讶。
ice的开发者,有多名corba标准小组的专家,因为不满corba越来越复杂的臃肿架构,而开发了ice协议。
ice功能非常强大,可以用于一台机器上不同进程的通讯,也可以用于一个集群。但是体积却异常小巧,安装包不到20M。
学习ice非常简单,一个小时的时间,就可以令你掌握它的编写和配置。
ice支持多种编程语言,从c++到java,c#,delphi,几乎所有的主流编程语言,都可以使用ice。
ice是我所知道的分布式技术中最易于学习的一种。几乎是傻瓜式的。可以说,用分布式技术,从来没有这么爽过。
ice只要用其接口定义语言定义好一个接口,然后用ice的slice工具生成存根和代理,然后分别实现,就可以用了。
这种接口定义语言非常简单,类似于java的语法,不需要什么解释,一看就懂。
定义好接口以后把它保存成一个xxxxxx.ice文件,然后用ice的工具slice2xx.exe,可以生成存根和代理的声明文件。xx是你要生成的语言的缩写。比如要生成c#的声明,就用slice2cs.exe。
可以用任何语言来实现其存根和代理。
比如,可以用c#实现代理,而用java实现其存根,这样,c#就可以调用java编写的程序。
ice除了要设置一下几个简单的配置信息之外(如对象名,服务器地址,端口),不需要写任何多余的代码。你只要写你实现的那部分就可以了。
ice的官方地址是:
http://www.zeroc.com
目前版本是3.1。下载时可以下载一下ice的文档,里面有ice的示例。
google也可以搜索到很多ice的例子。

ACE主要提供跨平台、可移植的基础实现(OS Adaptive Layer),并且通过一些OO framework、并发通信软件的设计模式来简化开发者的开发,提供高层抽象接口;而ICE中则可处处看到CORBA的影子,完全可理解为ICE是其作者不满意CORBA臃肿、庞大的规范而制定的类CORBA的简约实现,为什么这么说呢?后续将给出概述。因而,ICE和ACE并不是一个层次的东西,若要相比,ICE应该和ICE中的TAO进行比较,TAO是基于ACE框架组件和设计模式构建的、遵循标准的OMG CORBA规范和参考模型实现。

标签:, , ,

20070715 Silverlight JSON ajax ironpython 资料链接1 - 四月 13, 2008 by yippee

20070715 Silverlight JSON ajax ironpython 资料链接1
http://www.yippeesoft.com

ORCAS WPF WCF WWF AJAX LINQ IRONPYTHON 动态编译

~~~~~~

http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=2573
IronPython v1.1 is a minor update to IronPython including both new functionality as well as a number of targeted bug fixes. The new functionality in v1.1 includes several new modules (array, SHA, MD5, and select), support for XML Doc comments within the help system and _doc_ tags, as well as support for loading cached pre-compiled modules.

http://www.gamedev.net/reference/articles/article2275.asp
Using Lua with C# 

http://www.ccw.com.cn/htm/center/prog/02_10_23_3.asp
C#中动态编译应用程序

http://www.rainsts.net/article.asp?id=265
C# 动态代码执行

http://www.rainsts.net/article.asp?id=106
使用CodeDom生成程序集

http://blog.csdn.net/yefanqiu/archive/2007/06/04/1637222.aspx
C#与IronPython脚本进行数据交互示例

http://blog.csdn.net/yefanqiu/archive/2007/06/07/1642081.aspx
IronPython脚本调用C#dll示例

http://blog.csdn.net/yefanqiu/archive/2007/06/01/1634226.aspx
C#嵌入IronPython脚本示例(hello world)

http://blog.csdn.net/yefanqiu/archive/2007/05/28/1627782.aspx
C#GDI+图元组态和IronPython脚本应用之LED影像系统

http://www.newbooks.com.cn/info/130293.html
ASP.Net 2.0+AJAX+Orcas构建简易的RSS新闻阅读器

http://www.newbooks.com.cn/info/130292.html
用简易Ajax框架实现"省市二级联动下拉菜单"

http://blog.csdn.net/lyskyly/archive/2007/06/29/1671271.aspx
 将Orcas下的wpf项目迁移到VS2005

 http://www.microsoft.com/downloads/details.aspx?FamilyId=36B6609E-6F3D-40F4-8C7D-AD111679D8DC&displaylang=en
 Microsoft Pre-release Software Visual Studio Code Name "Orcas" Beta 1 Team Suite (Virtual PC version)

 http://www.microsoft.com/downloads/details.aspx?familyid=5d9c6b2d-439c-4ec2-8e24-b7d9ff6a2ab2&displaylang=en
 Microsoft Pre-release Software Visual Studio Code Name "Orcas" Beta 1 (Professional Edition – self-extracting install)

 http://download.microsoft.com/download/9/F/7/9F79D1D8-72FD-407C-88F7-D2254EB4E0AD/VSNETSDKcontents.htm
 Visual Studio Codename "Orcas" Beta 1 Readme

http://arigstoulee.spaces.live.com/default.aspx?_c02_owner=1
ASP.NET中数据库链接
    4. microsoft sql server database file
          o 首先,在SQL Server Management Studio Express建立数据库,设置好用户名、密码
          o asp.net中,data connections ->add connection
          o 设置:data source 选择microsoft sql server database file
                     data file name 选择建立的数据库
                      log on the server
           1. use windows anthentication
           2. use sql server anthentication 键入设置的用户名、密码!最好save password,否则就经常会要球输入密码。
            最后 test connection,ok即可。
  
目前遇到的问题是在“microsoft sql server database file”中只能使用“use windows anthentication”能够成功的链接,“use sql server anthentication”不能链接!

http://www.microsoft.com/expression/products/download.aspx?key=blend2maypreview
Microsoft Expression Blend 2 Free Trial
Windows XP

   1. Install .NET Framework 3.0 first before attempting to install Expression Blend 2
   2. Install a version of Silverlight:
          * Silverlight 1.0 Beta for WindowsSilverlight 1.0 Beta for MacSilverlight 1.1 Alpha for WindowsSilverlight 1.1 Alpha for Mac
   3. Install Expression Blend 2 May Preview* (25.5 MB)
   4. [Optional] Do one of the following:
          * Install Visual Studio 2005 Express for developing JavaScriptSilverlight-based applications.
          * Install Visual Studio Code Name "Orcas" Beta 1 for developing managedSilverlight-based applications.
          * Install Silverlight Tools Alpha for Visual Studio Code Name "Orcas" Beta 1.

http://blogs.msdn.com/mharsh/archive/2006/12/06/what-is-wpf-e-really.aspx
What is WPF/E really?

http://ajax.asp.net/Default.aspx
ASP.NET AJAX is a free framework for quickly creating a new generation of more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers.

http://www.microsoft.com/china/net/products/client.mspx
智能客户端软件和 .NET

http://www.microsoft.com/china/MSDN/library/enterprisedevelopment/softwaredev/SmartClients.mspx?mfr=true
用于构建集成式桌面应用程序的新指南和新工具

http://blog.joycode.com/dflying/archive/2007/04/19/101382.aspx
在PHP中使用ASP.NET AJAX

http://msdn2.microsoft.com/en-us/library/bb428859.aspx
Silverlight Architecture Overview

JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。易于人阅读和编写。同时也易于机器解析和生成。它基于JavaScript Programming Language(http://www.crockford.com/javascript), Standard ECMA-262 3rd Edition – December 1999(http://www.ecma-international.org/publications/files/ecma-st/ECMA-262.pdf)的一个子集。JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C, C++, C#, Java, JavaScript, Perl, Python等)。这些特性使JSON成为理想的数据交换语言。

JSON建构于两种结构:

“名称/值”对的集合(A collection of name/value pairs)。不同的语言中,它被理解为对象(object),纪录(record),结构(struct),字典(dictionary),哈希表(hash table),有键列表(keyed list),或者关联数组 (associative array)。

值的有序列表(An ordered list of values)。在大部分语言中,它被理解为数组(array)。

这些都是常见的数据结构。事实上大部分现代计算机语言都以某种形式支持它们。这使得一种数据格式在同样基于这些结构的编程语言之间交换成为可能。

http://java-cs-bridge.sourceforge.net/
Java C# Bridge is a tool for Serlializing/Deserlializing between Java object and C# object.

http://silverlight.net/Default.aspx
Microsoft® Silverlight™ is a cross-browser, cross-platform plug-in for delivering the next generation of .NET based media experiences and rich interactive applications for the Web. Silverlight offers a flexible programming model that supports AJAX, VB, C#, Python, and Ruby, and integrates with existing Web applications. Silverlight supports fast, cost-effective delivery of high-quality video to all major browsers running on the Mac OS or Windows.

http://weblogs.asp.net/scottgu/archive/2007/07/11/linq-to-sql-part-4-updating-our-database.aspx
 LINQ to SQL (Part 4 – Updating our Database)

 http://dev2dev.bea.com.cn/techdoc/2005110103.html
 Ajax简介

 http://blog.csdn.net/heiyeshuwu/archive/2006/04/20/670713.aspx
 Ajax中XML和JSON格式的优劣比较

标签:, , , , ,

20070628 diff patch Silverlight - 三月 9, 2008 by yippee

20070628 diff patch Silverlight
http://www.yippeesoft.com

VPatch 允许你创建补丁文件来把你的软件的老版本更新到新版本。GenPat 工具可以产生补丁文件。而这个插件可以使用生成的补丁文件来更新老的文件。使用补丁你可以减少更新时占用的文件体积,因为补丁文件里只包含了和旧版本的文件不同的部分。
如何使用
生成补丁文件

首先确认你已经有了原始文件(老版本的文件)和目标文件(新版本的文件)。例如: DATA.DTA 是用户现在使用的文件而 DATA_20.DTA 是新版本 2.0 的文件。现在使用如下命令行来生成补丁文件:

GENPAT data.dta data_20.dta data.pat

不出意外的话过一些时间后补丁就生成了。

对 GenPat 工具使用 /B=(区块大小) 参数(放到文件名后边)可以调整区块的大小。小的区块可以得到更小的补丁,但是会需要更多的时间来生成(默认的区块大小为 64)。

Patch: WTL application for creating patches and patching files
By SGarratt.

WTL application for creating patches and patching files
http://www.codeproject.com/tools/patch.asp

Larry Wall的patch程序。patch是用来查找文件之间差异的GNU diff命令的一个接口;diff有很多选项,但是该命令最常用的用途是用来生成一个文件,该文件中列出了内容发生改变的行,显示两个原始文件、修改过的行以及由于内容没有变化而忽略掉的行。patch典型地用于把一个目录下的源代码文件更新到新的版本,从而就避免了下载整个新的源代码档案的必要。下载一个有效的patch仅仅需要下载发生变化的那些代码行就可以了。

Silverlight Hello World in C# from VS 2005

Well I\’ve been downloading the VS Orcas for a few days and it still isn\’t done. I really wanted to try out the .NET support in Silverlight 1.1 and so I asked if this could be done with VS 2005 and Scott Louvau replied:

    Well, in VS2005 you can create a class library which will build against the Silverlight runtime, but it\’s a little work.

    1. Create a Class Library.
    2. Remove all references from it.
    3. Right-click on the Project and pick Properties.
    4. On the Build tab, click Advanced and check \’Do not reference mscorlib.dll\’
    5. Manually add references to mscorlib, agclr, System, System.Core, System.Silverlight, and System.Xml.Core from the Silverlight install folder (\\Program Files\\Microsoft Silverlight\\)

    At this point your build outputs should be Silverlight consumable binaries. It looks like the equivalent command line call to csc.exe (the C# compiler) should include the references to the mentioned binaries and the /nostdlib option but may require others as well.

     -Scott

I tried it out and it work pretty well. If you\’re interested I\’ve uploaded my project so that you can download it and try it out. You will need Silverlight 1.1 installed and VS studio 2005.

使用Visual Studio 2005开发Silverlight

如果大家已经在使用Visual Studio 2005做开发,现在又需要学习开发Silverlight应用程序。下面我们简单的介绍一下如何在VS2005中开发Silverlight。

首先需要下载Silverlight 1.0 Beta SDK。安装Silverlight开发模板

方法如下:

1、确认VS2005已经安装SP1,如果没有安装请下载安装(强烈建议安装SP1)。下载地址:http://www.microsoft.com/downloads/details.aspx?FamilyID=bb4a75ab-e2d4-4c96-b39d-37baf6b5b1dc&DisplayLang=en
2、安装Silverlight项目模板。确认关闭VS2005,将Silverlight1.0SDK\\ SilverlightBetaToolsForVS2005.zip压缩包中的SilverlightJSApplication.zip复制到 <Documents>\\Visual Studio 2005\\Templates\\ProjectTemplates\\Visual C#目录下。
3、再次打开VS2005,打开新建项目对话框,你将看到Silverlight Javascript Application的项目模板

就这么简单,大家可以试一下。

注意:这个环境还不能开发Silverlight 1.1 alpha程序。如果需要建议安装Orcas beta

   使用patch

   patch附带有一个很好的帮助,其中罗列了很多选项,但是99%的时间只要两个选项就能满足我们的需要:

   patch -p1 < [patchfile]

   patch -R < [patchfile] (used to undo a patch)

   -p1选项代表patchfile中文件名左边目录的层数,顶层目录在不同的机器上有所不同。要使用这个选项,就要把你的patch放在要被打补丁的目录下,然后在这个目录中运行path -p1 < [patchfile]。来自Linux内核patch的一个简短的引用可以这样实现:

   diff -u –recursive –new-file v2.1.118/linux/mm/swapfile.c linux/mm/swapfile. c— v2.1.118/linux/mm/swapfile.c Wed Aug 26 11:37:45 1998 +++ linux/mm/swapfile.c Wed Aug 26 16:01:57 1998 @@ -489,7 +489,7 @@

   int swap_header_version;

   int lock_map_size = PAGE_SIZE;

   int nr_good_pages = 0; – char tmp_lock_map = 0; + unsigned long tmp_lock_map = 0;

  应用来自本段中使用-p1开关拷贝的patch可以有效地减短patch定位的路径;patch会查找当前目录下一个名为/mm的子目录,接着应该会在这儿发现swapfile.c文件,然后等待打补丁。在这个过程中,以破折号(“-”号,译者注)开始的行会被一个以加号(“+”号,译者注)开始的行代替。一个典型的patch会包含对多个文件的更新,每个部分中都由对两个版本的文件运行diff -u命令的输出结果组成。

   patch在操作时把自己的输出结果显示在屏幕上,但是这种输出通常都滚屏太快,来不及观看。原来准备patch的文件名为*.orig,新的patch文件会覆盖这个初始文件名。

patch文件的结构

补丁头

补丁头是分别由—/+++开头的两行,用来表示要打补丁的文件。—开头表示旧文件,+++开头表示新文件。

一个补丁文件中的多个补丁

一个补丁文件中可能包含以—/+++开头的很多节,每一节用来打一个补丁。所以在一个补丁文件中可以包含好多个补丁。

块是补丁中要修改的地方。它通常由一部分不用修改的东西开始和结束。他们只是用来表示要修改的位置。他们通常以@@开始,结束于另一个块的开始或者一个新的补丁头。

块的缩进

块会缩进一列,而这一列是用来表示这一行是要增加还是要删除的。

块的第一列

+号表示这一行是要加上的。

-号表示这一行是要删除的。

没有加号也没有减号表示这里只是引用的而不需要修改。

************************************************************

为内核打补丁。前面在创建交叉编译工具链时,其中有一步就是为内核打补丁。当时还不是特别了解,现在很清晰了。参考前面的文章《基于ARM+Linux嵌入式开发的开发工具链的建立》。

1、首先是解压,因为发布的补丁文件都是使用gzip压缩的。

$gunzip ../setup-dir/ patch-2.4.21-rmk1.gz

2、然后进入你的内核源代码目录

$cd linux-2.4.21

3、打补丁

$patch –p1 < ../../setup-dir/patch-2.4.21-rmk1

       打完补丁后,需要检查一下有没有拒绝执行的文件,即检查.rej文件的存在。使用命令:

       $find  .  -name  *.rej

       如果发现,会将其输出到标准输出终端,默认屏幕。当然,你也可以采用重定向,输出到指定文件,比如reject。

       $fine  .  -name  *.rej  >reject

       然后可以查看reject的内容了。

标签:, ,