Skip to content

Commit 3c0f97c

Browse files
authored
Fix: Add missing title property to nuspec (#511)
1 parent d9ba904 commit 3c0f97c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/cmd/package/nuget/create/create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ func GenerateNuSpec(opts *NuPkgCreateOptions) (string, error) {
305305
sb.WriteString(" <metadata>\n")
306306
sb.WriteString(" <id>" + opts.Id.Value + "</id>\n")
307307
sb.WriteString(" <version>" + opts.Version.Value + "</version>\n")
308+
if opts.Title.Value != "" {
309+
sb.WriteString(" <title>" + opts.Title.Value + "</title>\n")
310+
}
308311
sb.WriteString(" <description>" + opts.Description.Value + "</description>\n")
309312
sb.WriteString(" <authors>" + strings.Join(opts.Author.Value, ",") + "</authors>\n")
310313
if releaseNotes != "" {

0 commit comments

Comments
 (0)