首页 > 解决方案 > SilverLight 5 和 VS2019 - 缺少程序集参考?

问题描述

我有一个 SilverLight 应用程序,我正在尝试使其与 VS2019 和 .NET 4.7.2、SilverLight - 5.0 一起使用

编译时出现以下错误:

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

如何解决这个问题?

我尝试添加对System.Windows.Controls来自框架的引用,但它不存在,为了在 VS2019 中支持 SilverLight,我使用了这个扩展:

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

标签: c#silverlight-5.0

解决方案


Silverlight 在 VS2017 中不再被官方支持,你应该改用 VS2015。

这在此处的 VS2017 兼容性说明中有详细说明

如果您在 2019 年使用插件来完成这项工作,我建议您联系插件所有者寻求帮助。


推荐阅读