c# - 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
解决方案
Silverlight 在 VS2017 中不再被官方支持,你应该改用 VS2015。
如果您在 2019 年使用插件来完成这项工作,我建议您联系插件所有者寻求帮助。
推荐阅读
- node.js - 对于格式错误的 json 响应,我应该发送什么 http 状态?
- scala - 在从 MongoDB 加载大量数据以触发数据帧时,获取“查询超过了 40 MB 的最大允许内存使用量”
- laravel - 如何从 laravel 的节点模块导入库
- php - 如何为此 SQL Server 连接应用程序安装正确的 PHP ODBC 驱动程序
- flutter - 如何配置 VS Code 以在 URL 中使用查询参数启动 Flutter Web 应用程序?
- python - Python,第一个列表索引 - 前一个列表索引然后打印
- javascript - 函数可以包装一个类并知道何时调用最后一个方法吗?
- c# - 根据值更改 WPF DataGrid 列上的图像
- javascript - 访问 WordPress 中两个短代码之间的会话变量
- python - 在 cvxpy 中指定约束时违反了 DCP 要求,可能需要重新考虑问题的整个表述