1

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 project. 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.

enter image description here

Warning message enter image description here

Sandeep G B
  • 3,957
  • 4
  • 26
  • 43
  • possible duplicate of [VS2010: Warning on add project reference to Silverlight project from .NET project](http://stackoverflow.com/questions/2792207/vs2010-warning-on-add-project-reference-to-silverlight-project-from-net-project) – Sandeep G B May 06 '11 at 09:26

1 Answers1

4

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

Community
  • 1
  • 1
Mark Staff
  • 721
  • 3
  • 6