Skip to content

Commit

Permalink
Adding documentation for publishing WPF single file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo authored Nov 16, 2024
1 parent 120c6e9 commit 9efecdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>1.7.4</PackageVersion>
<PackageVersion>1.7.5</PackageVersion>
<PackageId>Keboo.Dotnet.Templates</PackageId>
<Title>Keboo's .NET Templates</Title>
<Authors>Keboo</Authors>
Expand Down
4 changes: 3 additions & 1 deletion templates/WPF/WpfApp/.github/workflows/build_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
2 changes: 2 additions & 0 deletions templates/WPF/WpfApp/WpfApp/WpfApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
<!--
<PropertyGroup>
Expand Down

0 comments on commit 9efecdf

Please sign in to comment.