是什么意思?是过时的意思吗?
我的批量构建有一个项目,我们称之为“My.Project”。该项目在其自己的独立项目中升级到 .NET 3.5(从 .NET 1.1)(这意味着它不属于此批量构建)。大部分都是一样的,有升级的调用,添加/删除的功能。我开始用新的调用替换所有其他项目对该项目使用的所有调用(现在是旧项目)。我首先删除旧的引用,然后添加新的引用。我的一个项目只有一个调用。当我进行更改时,新项目中的一个命名空间会抛出“My.Project.Namespace1 已过时”,而对该项目的另一次调用则不会抛出任何异常。有什么我应该寻找的吗?什么会导致这种情况?
My batch build has a project, lets call it 'My.Project'. That project got up-reved to .NET 3.5 (from .NET 1.1) in its own standalone project (meaning its not part of this batch build). Most of it is the same, there are calls that were upgraded, features added/removed. I go to start replacing all calls that all the other projects use to that, now old, project with new calls. I first remove the old reference and then add the new one. One of my projects only has one call. When I go to make the changes, one namespace in the new project throws a 'My.Project.Namespace1 is obsolete' while another call to that project throws nothing. Is there something I should be looking for? What would be causing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这通常意味着正在调用的方法已被标记为已过时,因此可能会在未来版本中被删除。
请参阅此和此来自 MSDN 的有关
ObsoleteAttribute
及其用法的文档。您应该查看对象上是否还有其他可以调用的方法,并且这些方法尚未过时。
This normally means that a method being called has been marked as obsolete and therefor might get removed in future versions.
See this and this documents from MSDN about the
ObsoleteAttribute
and its usage.You should see if there are other methods on the object that you can call instead and which are not obsolete.