Skip to content

Commit

Permalink
Add xmldocs to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Oct 9, 2022
1 parent 1079c56 commit fad8ee2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions BepInEx.AutoPlugin/AutoPluginGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,19 @@ namespace {typeSymbol.ContainingNamespace.ToDisplayString()}
[{attributeName}({typeSymbol.Name}.Id, ""{name}"", ""{version}"")]
public partial class {typeSymbol.Name}
{{
/// <summary>
/// Id of the <see cref=""{typeSymbol.Name}""/>.
/// </summary>
public const string Id = ""{id}"";
/// <summary>
/// Gets the name of the <see cref=""{typeSymbol.Name}""/>.
/// </summary>
public static string Name => ""{name}"";
/// <summary>
/// Gets the version of the <see cref=""{typeSymbol.Name}""/>.
/// </summary>
public static string Version => ""{version}"";
}}
}}
Expand Down

0 comments on commit fad8ee2

Please sign in to comment.