diff --git a/Templates.csproj b/Templates.csproj index f7f2bbe..12aa81f 100644 --- a/Templates.csproj +++ b/Templates.csproj @@ -2,7 +2,7 @@ Template - 1.7.4 + 1.7.5 Keboo.Dotnet.Templates Keboo's .NET Templates Keboo diff --git a/templates/WPF/WpfApp/.github/workflows/build_app.yml b/templates/WPF/WpfApp/.github/workflows/build_app.yml index 6995497..ace97ad 100644 --- a/templates/WPF/WpfApp/.github/workflows/build_app.yml +++ b/templates/WPF/WpfApp/.github/workflows/build_app.yml @@ -56,7 +56,9 @@ jobs: - name: dotnet publish if: ${{ github.event_name != 'pull_request' }} - run: dotnet publish --configuration Release --no-build -p:Version="${{ env.version }}" -p:PublishDir=${{github.workspace}}/.build/publish + run: | + # If publishing single file, remove the --no-build below + dotnet publish --configuration Release --no-build -p:Version="${{ env.version }}" -p:PublishDir=${{github.workspace}}/.build/publish - name: Upload artifact for deployment job if: ${{ github.event_name != 'pull_request' }} diff --git a/templates/WPF/WpfApp/WpfApp/WpfApp.csproj b/templates/WPF/WpfApp/WpfApp/WpfApp.csproj index a65397b..280d4c6 100644 --- a/templates/WPF/WpfApp/WpfApp/WpfApp.csproj +++ b/templates/WPF/WpfApp/WpfApp/WpfApp.csproj @@ -16,6 +16,8 @@ The Condition on PublishSingleFile is to prevent debugging issues while running as a single file. Many debugging tools (Snoop, Visual Studio's UI debugging tools for XAML) will not function with PublishSingleFile set to true. https://github.com/dotnet/runtime/issues/3773 + + You will also need to remove the no-build option from the `dotnet publish` command on the "dotnet publish" step in .github/workflows/build_app.yml -->