0

如果我要在 Reference.cs 文件中为 Web 引用添加备注或摘要,备注或摘要会在构建或运行时被删除或覆盖吗?我问这个是因为 Microsoft Visual Studios 2010 中的 Reference.cs 文件是由 Microsoft.VSDesigner 自动生成,因此,我不确定它是否会删除我输入的任何备注或摘要。注意:有,

    /// <remarks/>

躺在 Reference.cs 文件中。

当我说摘要或评论时,我的意思是:

    /// <summary>
    /// Clears the log file
    /// </summary>
    /// <param name="sender">this instance of the form</param>
    /// <param name="e">Event Arguments</param>
    /// <remarks> Hello </remarks>
    public void mudkip(Object cheese) {...}
4

1 回答 1

0

是的,如果您对Reference.cs文件进行任何更改,这些更改将在您更新 Web 参考时被覆盖。

Reference.cs它在顶部文件的评论中说了很多:

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.296
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
于 2013-06-10T18:30:48.710 回答