我无法弄清楚如何摆脱基本上不应在Visual Studio 2010中停止编译并且不应该显示停止符的错误,或者至少我稍后会修复它们,但我不希望编译仅导致错误和停止这些问题。
例如,我收到以下错误:
错误1错误警告:“ ScrewTurn.Wiki.SearchEngine.Relevance.Finalize(float)”上的XML注释具有“ IsFinalized”的paramref标记,但没有名称为C:\ www \ Wiki \ Screwturn3_0_2_509_SearchEngine的参数\ Relevance.cs 60 70 SearchEngine
对于此代码:
/// <summary>
/// Normalizes the relevance after finalization.
/// </summary>
/// <param name="factor">The normalization factor.</param>
/// <exception cref="InvalidOperationException">If <paramref name="IsFinalized"/> is <c>false</c> (<see cref="M:Finalize"/> was not called).</exception>
public void NormalizeAfterFinalization(float factor) {
if (factor < 0)
throw new ArgumentOutOfRangeException("factor", "Factor must be greater than or equal to zero");
if (!isFinalized)
throw new InvalidOperationException("Normalization can be performed only after finalization");
value = value * factor;
}
我查看了菜单工具 -> 选项,但看不到在哪里可以调整编译器,并告诉它不要担心注释或基于XHTML的错误。