We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d496c68 commit 73bd5efCopy full SHA for 73bd5ef
src/Shared/CertificateGeneration/CertificateManager.cs
@@ -314,7 +314,7 @@ public EnsureCertificateResult EnsureAspNetCoreHttpsDevelopmentCertificate(
314
// If the user specified a non-existent directory, we don't want to be responsible
315
// for setting the permissions appropriately, so we'll bail.
316
var exportDir = Path.GetDirectoryName(path);
317
- if (!Directory.Exists(exportDir))
+ if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
318
{
319
throw new InvalidOperationException($"The directory '{exportDir}' does not exist.");
320
}
0 commit comments