可以选择 Silverlight 3 或 2 创建项目
在我的计算机上根据“添加删除程序”我安装了: 微软银光 微软Silverlight 2 SDK Microsoft Silverlight 2 工具包 2009 年 7 月 微软Silverlight 3 SDK Microsoft Silverlight 3 工具包 2009 年 7 月 Microsoft Silverlight 3 Tools for VS 2008 SP1-ENU
当我创建 Silverlight 项目时,我猜它是使用 Silverlight 3 创建的。
有没有办法验证这一点?
另外,我是 Silverlight 新手,发现大多数教程、视频、书籍等仍然适用于 Silverlilght 2。当我尝试使用它们时,它们不起作用 - 似乎我无法遵循这些步骤,因为我在我的屏幕上看到的东西与他们所说的我应该看到的东西不同,我无法再进一步了。 这一直是试图理解数据访问的一个真正的问题。
有没有办法在开始新项目时选择使用哪个 Silverlight 版本,或者如果我想使用版本 2,是否需要卸载版本 3?
谢谢 迈克·托马斯
On my computer according to 'Add Remove Programs' I have installed:
Microsoft Silverlight
Microsoft Silverlight 2 SDK
Microsoft Silverlight 2 Toolkit July 2009
Microsoft Silverlight 3 SDK
Microsoft Silverlight 3 Toolkit July 2009
Microsoft Silverlight 3 Tools for VS 2008 SP1-ENU
When I create a Silverlight project, I am guessing it creates it using Silverlight 3.
Is there a way to verify this?
Also, I am new to Silverlight and have found that most of the tutorials, videos, books etc are still geared to Silverlilght 2. When I try to use them, they do not work - it seems like I cannot follow the steps because I am seeing something different on my screen than what they say I should be seeing, and I can't get any farther. This has been a real problem in trying to understand data access.
Is there a way to choose, when starting a new project, which Silverlight version to use, or do I need to uninstall version 3 if I want to use version 2?
Thanks
Mike Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
之前已介绍过如何判断已创建的内容无论如何通过查看 .csproj 文件判断项目是否在 Silverlight 3 中?。
创建新项目时,仅使用最新的 Silverlight Tools 版本来安装两者,但如果您通常进行多版本开发,您应该能够保存一个相对空的项目以用作模板。
您可以在创建 SL3 后更改项目文件中的语句,但项目中可能会有一些细微的差异(Page 重命名为 MainPage 等)
Telling which has been created was previously covered Anyway to tell if project is in Silverlight 3? by looking in the .csproj files.
Just the latest Silverlight Tools version will be used with both installed, when creating new projects, but you should be able to save a relatively empty project to use as a template if you're doing multi-version development usually.
You could just change the statement in the project file after creating a SL3 one, but there may be some small differences in the project (Page renamed to MainPage, etc.)
这并不能直接回答您的问题,但了解 Silverlight 项目的目标运行时的一种方法是主机 aspx 页面中 Silverlight 标记的标记。
参数名称=“minRuntimeVersion”值=“2.0.31005.0”== Silverlight2
参数名称=“minRuntimeVersion”值=“3.0.40624.0”== Silverlight3
This doesn't directly answer your question, but one way to tell what runtime your Silverlight project is targeting is the the markup for the Silverlight tag in the host aspx page.
param name="minRuntimeVersion" value="2.0.31005.0" == Silverlight2
param name="minRuntimeVersion" value="3.0.40624.0" == Silverlight3