Skip to content

Commit 311f65d

Browse files
committed
Bug fix for RequireLicenseAcceptance
1 parent bd21da6 commit 311f65d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/code/PublishPSResource.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,8 @@ private string CreateNuspec(
575575
}
576576

577577
// defaults to false
578-
string requireLicenseAcceptance = psData.ContainsKey("requirelicenseacceptance") ? psData["requirelicenseacceptance"].ToString() : "false";
578+
// boolean value needs to be a lowercase string for it to be correctly parsed
579+
string requireLicenseAcceptance = psData.ContainsKey("requirelicenseacceptance") ? psData["requirelicenseacceptance"].ToString().ToLower() : "false";
579580

580581
metadataElementsDictionary.Add("requireLicenseAcceptance", requireLicenseAcceptance);
581582

0 commit comments

Comments
 (0)