From d817f8b0ff7e9a0c94c3ee712042b98b48549806 Mon Sep 17 00:00:00 2001 From: Marcelo Carbonel <37982564+zaj-e@users.noreply.github.com> Date: Wed, 21 Apr 2021 23:46:10 -0500 Subject: [PATCH] Those 2 extra params create a directory that doesn't exist NET Core 5 System.IO.DirectoryNotFoundException https://github.com/EvAlex/ef-db-diagrams/issues/49 https://github.com/EvAlex/ef-db-diagrams/issues/48 --- .../EntityFrameworkCore.Diagrams/EfDiagramsOptions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/EfDiagramsOptions.cs b/EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/EfDiagramsOptions.cs index abf1c42..910697c 100644 --- a/EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/EfDiagramsOptions.cs +++ b/EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/EfDiagramsOptions.cs @@ -34,10 +34,10 @@ internal static string GetEfDiagramsContentRoot() if (!Directory.Exists(contentRoot)) { // NOTE: this means that we are not installed as NuGet packange - contentRoot = Path.Combine(dllPath, "..", "..", "..", "..", "EntityFrameworkCore.Diagrams"); + contentRoot = Path.Combine(dllPath, "..", "..", ".."); } contentRoot = Path.Combine(contentRoot, "wwwroot", "db-diagrams"); return contentRoot; } } -} \ No newline at end of file +}