为F#记录值生成的IntelliSense XML不正确(VS2013) [英] Incorrect IntelliSense XML generated for F# record values (VS2013)

查看:98
本文介绍了为F#记录值生成的IntelliSense XML不正确(VS2013)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:如注释中所述,这是一个错误.我已经报告了它发送给Microsoft ,并已路由到VS开发团队进行调查.如果有新闻,我会更新此答案.

Update: as noted in the comments, this is a bug. I've reported it to Microsoft and it has been routed to a VS development team for investigation. I'll update this answer if and when there's news.

进一步的更新:已将修复程序提交给了该项目CodePlex ,是的!

Further update: a fix has been committed to the project on CodePlex, yay!

给出记录类型:

namespace Rather.Deep.Namespace

type TestRecord = {
    /// Property summary
    Prop : string
}

VS2013为此字段生成以下IntelliSense XML:

VS2013 generates the following IntelliSense XML for this field:

<member name="F:Rather.Deep.Namespace.Rather.Deep.Namespace.TestRecord.Prop">
 <summary>Property summary</summary>
</member>

我知道将记录值视为字段而不是属性的记录值.我可以解决.我无法理解的是:为什么名称空间要加倍?

I know about record values being treated as though they are fields and not properties. I can deal with that. What I can't understand is: why is the namespace being doubled?

(如果要尝试复制,请在VS2013中创建一个仅包含该文件的新库项目,然后查看bin文件夹中生成的XML文件.我刚刚更新为VS2013.1,但仍然没有骰子.)

(If you want to try for a repro, create a new library project in VS2013 containing nothing but that file, and look at the generated XML file in the bin folder. I just updated to VS2013.1—still no dice.)

推荐答案

我怀疑,并且有一些评论者同意,这是一个错误.我提交了错误报告在Microsoft Connect 上并附加了一个最小的测试项目,不久之后修复了

As I suspected, and a couple of commentators agreed, this is a bug. I submitted a bug report on Microsoft Connect with a minimal test project attached, and not too long later a fix was committed to the project on CodePlex. Good job, F# team!

这篇关于为F#记录值生成的IntelliSense XML不正确(VS2013)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆