Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit b0eb646

Browse files
committed
Update LicenseUtils.cs
1 parent 1dfebd9 commit b0eb646

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceStack.Text/LicenseUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ public static void RegisterLicense(string licenseKeyText)
219219
var key = VerifyLicenseKeyText(licenseKeyText);
220220
ValidateLicenseKey(key);
221221
}
222+
catch (PlatformNotSupportedException pse)
223+
{
224+
// Allow usage in environments like dotnet script
225+
__activatedLicense = new __ActivatedLicense(new LicenseKey { Type = LicenseType.Indie });
226+
}
222227
catch (Exception ex)
223228
{
224229
//bubble unrelated project Exceptions

0 commit comments

Comments
 (0)