简体   繁体   English

便携式类库-目标Silverlight 5

[英]Portable Class Library - target Silverlight 5

The "change target framework" dialog in the portable class library properties has a link pointing to this page: 可移植类库属性中的“更改目标框架”对话框具有指向此页面的链接:

http://msdn.microsoft.com/en-us/hh487282.aspx http://msdn.microsoft.com/en-us/hh487282.aspx

Said page indicates that there is a silverlight 5 'targeting pack' included in 'Silverlight 5 RC Tools Visual Studio 2010 SP1'. 该页面指示“ Silverlight 5 RC工具Visual Studio 2010 SP1”中包含了silverlight 5“目标包”。

My assumption is that the RC tools are replaced by the release Silverlight 5 tools - and I definitely don't have the option to choose silverlight 5 despite having these tools. 我的假设是RC工具已由发布的Silverlight 5工具取代-尽管拥有这些工具,但我绝对没有选择Silverlight 5的选择。

Thinking they may have left the targeting pack out of the release tools, I tried uninstalling them and installing the RC tools to see if the option to target silverlight 5 would show up - however that didn't seem to work either. 考虑到他们可能已经将目标包从发行工具中删除了,我尝试卸载它们并安装RC工具,以查看是否将针对Silverlight 5的选项显示出来-但这似乎也不起作用。

How can I target Silverlight 5 with my portable class library? 如何通过可移植类库定位Silverlight 5?

Also I should add, I know that silverlight 4 assemblies are compatible with silverlight 5, however referencing silverlight 4 libraries from within a silverlight 5 application has other side affects (such as code analysis / metrics not working) which I'm trying to resolve ("could not unify the platforms") So a fix to that would be equally appreciated :) 我还要补充一点,我知道Silverlight 4程序集与Silverlight 5兼容,但是从Silverlight 5应用程序中引用Silverlight 4库有其他副作用(例如代码分析/指标不起作用),我正在尝试解决( “无法统一平台”),对此的修复将同样受到赞赏:)

Portable Class Libraries supports Silverlight 5 out-of-the-box, choosing Silverlight 4 will enable you to run on Silverlight 5. The Visual Studio 11 Beta out next week adds full support for Silverlight 5 (if you install it on a box with Visual Studio 2010, it will also add Siverlight 5 support to it) 可移植类库开箱即用地支持Silverlight 5,选择Silverlight 4将使您能够在Silverlight 5上运行。下周发布的Visual Studio 11 Beta将完全支持Silverlight 5(如果将其安装在装有Visual Studio的盒子上) Studio 2010,它还将向其中添加Siverlight 5支持)

The Code Analysis issue is a known issue (the same problem occurs if you reference RIA Services and attempt to run Code Analysis), unfortunately, there's no known workaround. 代码分析问题是一个已知问题(如果您引用RIA Services并尝试运行代码分析,则会发生相同的问题),但是,没有已知的解决方法。 Sadly, we could not get the fix into time to make it into the Visual Studio 11 Beta. 遗憾的是,我们无法及时修复此问题以使其进入Visual Studio 11 Beta。 It will, however, be fixed by the time we ship. 但是,它将在我们发货时确定。

David Kean (BCL Team) David Kean(BCL团队)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM