我有一个 Silverlight 类库项目,它在 Windows 控制台项目中被引用(项目引用)。 在 visual studio 2010 中,我在引用的项目旁边看到警告图标。我正在使用 SL4 和 .net 4.0。
当我构建并运行控制台项目时,它运行得非常好。我了解到可以在 Windows 控制台项目或 WPF 项目中引用 silverlight 库项目。
警告会导致任何副作用吗?我必须采取任何纠正措施吗?谢谢。附上屏幕截图。
警告信息
请您参考如下方法:
这是设计使然。见:
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.
和之前的 SO 问题:
VS2010: Warning on add project reference to Silverlight project from .NET project
