SilverLight 5 and VS2019 - missing assembly reference?

1.5k views Asked by At

I have a SilverLight app and I'm trying to make it work with VS2019 and .NET 4.7.2, SilverLight - 5.0

I get following error while compiling:

Error   CS0234  The type or namespace name 'TabItem' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) 

How to fix this?

I tried to add reference to System.Windows.Controls from framework, but it doesn't exist, in order to support SilverLight in VS2019 i use this extension:

https://marketplace.visualstudio.com/items?itemName=RamiAbughazaleh.SilverlightProjectSystem

2

There are 2 answers

0
Rami A. On BEST ANSWER
1
Chris Barber On

Silverlight stopped being officially supported in VS2017, you should use VS2015 instead.

This is detailed in the VS2017 compatibility notes here

If you are using an plugin to make this work in 2019 I would recommend contacting the plugin owner for assistance.