From dc648ad46c03b49eb491a2b884c0a133633fe5d9 Mon Sep 17 00:00:00 2001 From: Martijn Scheepers Date: Wed, 12 Aug 2020 15:18:46 +0200 Subject: [PATCH] Spaces in folder name's break DemoContentGenerator.Generate() --- src/MatBlazor.DevUtils/DemoContentGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MatBlazor.DevUtils/DemoContentGenerator.cs b/src/MatBlazor.DevUtils/DemoContentGenerator.cs index e6bf8096..9b72a04c 100644 --- a/src/MatBlazor.DevUtils/DemoContentGenerator.cs +++ b/src/MatBlazor.DevUtils/DemoContentGenerator.cs @@ -110,7 +110,7 @@ public void Generate() if (doc.DocumentElement.Attributes != null && doc.DocumentElement.Attributes["SourcePath"] != null) { var sourcePath = new Uri(new Uri(fileInfo.FullName), - doc.DocumentElement.Attributes["SourcePath"].Value).AbsolutePath; + doc.DocumentElement.Attributes["SourcePath"].Value).LocalPath; sourceContent = System.IO.File.ReadAllText(sourcePath); }