From 558906b957d3b414b5fbb0a8d2bdd29f48af3bb9 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sun, 15 Oct 2023 18:00:14 -0500 Subject: [PATCH] Fix build --- .github/workflows/deploy.yml | 2 +- DesktopClock/OutlinedTextBlock.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0d7831..66ae4c1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/setup-dotnet@v2 - name: Build - run: dotnet publish -o "publish" -c Release -r win-x64 + run: dotnet publish .\DesktopClock\DesktopClock.csproj -o "publish" -c Release -r win-x64 - name: Create installer run: | diff --git a/DesktopClock/OutlinedTextBlock.cs b/DesktopClock/OutlinedTextBlock.cs index 176d517..1371083 100644 --- a/DesktopClock/OutlinedTextBlock.cs +++ b/DesktopClock/OutlinedTextBlock.cs @@ -184,7 +184,7 @@ public TextWrapping TextWrapping public OutlinedTextBlock() { UpdatePen(); - TextDecorations = []; + TextDecorations = new(); } protected override void OnRender(DrawingContext drawingContext)