gpt4 book ai didi

c# - 类型或命名空间名称 'Syndication' 不存在于命名空间 'System.ServiceModel' 更新到 VS2010 后

转载 作者:行者123 更新时间:2023-11-30 18:55:44 25 4
gpt4 key购买 nike

将项目从 vs2008 更新到 vs2010 后尝试编译我的 asp.net 站点时出现以下错误

命名空间“System.ServiceModel”中不存在类型或命名空间名称“Syndication”(是否缺少程序集引用?)

我有针对 3.5 框架的 asp.net 站点(就像在 vs2008 中一样)我还添加了对 System.ServiceModel.Web 的引用

我在类顶部也有这些 using 语句:使用系统服务模型;使用 System.ServiceModel.Description;使用 System.ServiceModel.Syndication;使用 System.ServiceModel.Web;

最后 2 个提示上面的错误,将它们注释掉会产生错误(找不到 WebGet 等),就像触发器一样。

有人有什么想法吗?

最佳答案

感谢下面的帖子,我通过添加 Web DLL 在 .NET 3.5 中实现了此功能。

DOTNET 3.5:添加对 System.ServiceModel.Web.dll 的引用

DOTNET 4.0:添加对 System.ServiceModel.dll 的引用

StackOverflow Post

关于c# - 类型或命名空间名称 'Syndication' 不存在于命名空间 'System.ServiceModel' 更新到 VS2010 后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2667985/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com