开发者

Visual studio 2010 adding SL project reference in non-SL project results in warning icon

I have a Silverlight class library project which is referenced (project reference) in Windows Console project. In visual studio 2010, I see warning icon next to the referenced p开发者_Python百科roject. I am using SL4 and .net 4.0.

When I build and run the console project, it works perfectly fine. I understand that silverlight library project can be referenced in Windows Console project or WPF project.

Will the warning cause any side effects? Do I have to take any corrective actions? Thanks. Screen capture attached.

Visual studio 2010 adding SL project reference in non-SL project results in warning icon

Warning message

Visual studio 2010 adding SL project reference in non-SL project results in warning icon


It's by design. see:

https://connect.microsoft.com/VisualStudio/feedback/details/557761/adding-a-project-reference-to-a-silverlight-project-from-a-net-project-results-in-misleading-warning

References between different frameworks is not supported, which is why you get the warning. This is because you will see runtime failures with projects that have references across different frameworks.

and a previous SO question:

VS2010: Warning on add project reference to Silverlight project from .NET project

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜