diff --git a/.editorconfig b/.editorconfig
index 35e75d5..09e4837 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -74,6 +74,9 @@ dotnet_diagnostic.SA1503.severity = None
dotnet_diagnostic.SA1636.severity = None
dotnet_diagnostic.SA1640.severity = None
+# Allow new() constructor simplification
+dotnet_diagnostic.SA1000.severity = None
+
##
## SonarAnalyzers.CSharp
##
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 0000000..3a524a4
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ "recommendations": [
+ "ms-dotnettools.csharp",
+ "streetsidesoftware.code-spell-checker",
+ "davidanson.vscode-markdownlint",
+ "josefpihrt-vscode.roslynator",
+ "sonarsource.sonarlint-vscode",
+ "editorconfig.editorconfig"
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 46235d8..a2f92a7 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -15,5 +15,7 @@
"reporttypes",
"targetdir",
"Xunit"
- ]
+ ],
+ "editor.formatOnSave": true,
+ "prettier.documentSelectors": ["**/*.cs"]
}
diff --git a/AzureLiquid.Preview/PreviewProcess.cs b/AzureLiquid.Preview/PreviewProcess.cs
index 79393e5..9ad94b2 100644
--- a/AzureLiquid.Preview/PreviewProcess.cs
+++ b/AzureLiquid.Preview/PreviewProcess.cs
@@ -13,8 +13,19 @@ namespace AzureLiquid.Preview
///
public class PreviewProcess
{
+ ///
+ /// Handles writing console output to private persisted log.
+ ///
+ private readonly StringWriter _writer = new();
+
+ ///
+ /// Detects file system changes to the content file.
+ ///
private FileSystemWatcher? _contentWatcher;
+ ///
+ /// Detects file system changes to the template file.
+ ///
private FileSystemWatcher? _templateWatcher;
private readonly StringWriter _writer = new();
@@ -45,6 +56,12 @@ public PreviewProcess()
///
public string Content { get; set; }
+ ///
+ /// Gets the console output from the last render.
+ ///
+ /// The console output.
+ public string Log => _writer.ToString();
+
///
/// Gets or sets the output.
///
diff --git a/AzureLiquid.Tests/AzureLiquid.Tests.csproj b/AzureLiquid.Tests/AzureLiquid.Tests.csproj
index aaa6b35..f0eea16 100644
--- a/AzureLiquid.Tests/AzureLiquid.Tests.csproj
+++ b/AzureLiquid.Tests/AzureLiquid.Tests.csproj
@@ -22,6 +22,11 @@
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all