33

Suppose I have a method as follows:

    /// <summary>
    /// Here I want to reference the parameter <see cref="personId"/>.
    /// </summary>
    /// <param name="personId">
    /// The person id.
    /// </param>
    /// <returns>
    /// The <see cref="Person"/>.
    /// </returns>
    public Person GetPerson(int personId)
    {
        
    }

When I publish my XML documentation using Sandcastle, the cref:

<see cref="personId"/>

gets converted to [!:personId].

The warning in Sandcastle is:

Unknown reference link target

Any advice?

Pang
  • 9,564
  • 146
  • 81
  • 122
user2078938
  • 947
  • 1
  • 9
  • 22

1 Answers1

41

Use <paramref>

<paramref name="personId"/>
Pang
  • 9,564
  • 146
  • 81
  • 122
dcastro
  • 66,540
  • 21
  • 145
  • 155