如果大家已经在使用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

使用Visual Studio 2005开发Silverlight 1.1应用

* 1
    *

如果你想尝试开发 Silverlight 1.1 应用,又对下载/安装推荐的Visual Studio Orcas Beta 1有点怕怕的话,你可以使用Visual Studio 2005和Expression Blend 2 五月份的预览版 (25.5M)来开发。

根据Bryant Likes的博客,在安装Silverlight 1.1 alpha运行时后,你可以在Visual Studio 2005里,

1. 创建一个类库
2. 删除该项目所有的引用
3. 右击项目,选择属性
4. 在项目属性页的Build页上,点击“高级”按钮,选择“别引用mscorlib.dll”复选框
5. 手工添加对 Silverlight 1.1 alpha 运行时的安装文件夹 (\Program Files\Microsoft Silverlight\ ) 里的 mscorlib, agclr, System, System.Core, System.Silverlight, 和 System.Xml.Core程序集的引用

他有一个例程你可以试一下。
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.

Download the sample code here

I've also posted the code to my server but I couldn't figure out how to setup IIS to allow DLL files to be downloaded. Maybe tomorrow.

Visual Studio 2005 开发 Silverlight 1.0相关推荐

  1. Visual Studio 2005结合Direct 9.0 SDK(Aug2007)时应该注意的事项

    要用DX SDK开发DX程序必然要用VC++ 6.0或者VS.但是现在的DX SDK VC++ 6.0已经不能胜任了,一般都是用VS2003或者VS2005来进行开发. 昨天,我开始搭建开发环境(前次 ...

  2. visual studio 2010 开发net 2.0 3.5项目

    安装了Visual Studio 2010后,打开,发现只能选择net4.0!我郁闷了--版本这么高,,让别人怎么兼容啊!经过努力查找-- 我发现真相只有一个那就是: 你再把net3.5 sp1 安装 ...

  3. Visual Studio 2005 插件编程(代码行数统计插件)之一

    原文:http://www.codeproject.com/useritems/LineCounterAddin.asp 注意:1.本文中的提到的"外接程序"等同与"插件 ...

  4. Visual Studio 2005 TFVC周年庆

    [已发表于<程序员>2006年第12期"Visual Studio 2005周年庆"特刊] 正是去年的这个时候,微软可谓重磅出击,一口气发布了多款重量级产品,其中最能加 ...

  5. Pro Engineer Pro/Toolkit dll工程二次开发设置(Pro Engineer 3.0+Visual Studio 2005(C++))

    Proe3.0+Visual Studio 2005 Release版本配置: 1.包含protk库文件 2.项目->属性: ->配置属性->常规->MFC的使用:在共享dll ...

  6. WSSv3 Technical Articles_使用Visual Studio 2005扩展创建Windows SharePoint Services 3.0 Web Part...

    WSSv3 Technical Articles_使用Visual Studio 2005扩展创建Windows SharePoint Services 3.0 Web Part 摘要:学习使用Mic ...

  7. 微软采用 Visual Studio 2005 Team System 进行集成软件开发 ---技术案例研究

    Microsoft® Visual Studio 2005 Team System (VSTS) 提供了一个集成软件开发环境,使 e*BIS(eBusiness Integration Service ...

  8. Visual SourceSafe 2005(VSS2005)与Visual Studio 2005的开发环境搭建

    Visual SourceSafe 2005(VSS2005)与Visual Studio 2005的开发环境搭建 文章来源(WEB开发技术知识库): http://cn-web.com/cnweb/ ...

  9. 在Visual Studio 2005里,用ActiveSync来同步模拟器(Windows Mobile 5.0 )

    一.前期环境搭建     1.Windows Mobile5.0模拟器安装步骤以及下载地址,如下: http://news.csdn.net/news/newstopic/22/22102.shtml ...

最新文章

  1. linux清除网卡计数
  2. 天体摇摆仪的工作原理
  3. python google drive api_Python管理Google Drive文件
  4. (46)FPGA同步复位与异步复位(异步复位)
  5. SQL语句将表中数据导入到另一个数据库表中
  6. 异常的继承关系与捕获关系(只有直系的继承关系时,下面的类才能被捕获,和辈分无关!!)
  7. 一位编辑人员给作者们的市场汇报——冰冰子组织的市场宣传活动介绍之交互设计篇
  8. flac怎样转换成mp3格式
  9. OPCClient远程连接OPC服务器配置手册
  10. Windows XP SP3 升级故障汇总
  11. 安装Linux时grub2安装失败,尝试安装Ubuntu作为计算机唯一的操作系统时,我收到错误'grub-install/dev/sda failed'。 - Ubuntu问答...
  12. 代码重复率检查工具jsinspect 检查重复代码,去掉冗余代码。
  13. jmeter4.0 统计结果次数 BeanShell Sampler,Debug Sampler
  14. MMORPG经济系统设计经验
  15. 面试宝典:破解最难回答的23个问题及8大面试通关考题
  16. 文正·高等数学每日一题(2)·一道“小学生”面积题
  17. 二分三分法--+++这一天的纪录
  18. 美业多门店收银系统源码saas
  19. Springboot+vue的医院门诊管理系统的设计与实现(也有SpringCloud版本)
  20. 怎么样修改照片格式?如何批量转化图片格式?

热门文章

  1. python ftp_Python FTP
  2. android mvvm_Android MVVM设计模式
  3. java i18n_Java i18n – Java的国际化
  4. 组合与继承c++_组合与继承
  5. 开课吧Java课堂之PrintWriter类的运用
  6. 国内搜索大哥iOS面试题
  7. 【转】Android Fragment 基本介绍--不错
  8. ssh -CT -o BatchMode=yes 用户名@主机名
  9. Activity内部Handler引起内存泄露的原因分析
  10. javascript事件代理(Event Delegation)