Publishing/Deploying WPF Applications (feat. GitHub Actions) - EASY WPF (.NET Core)

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Learn how to publish and deploy a WPF application. I explain how to use the dotnet publish command to create the application's EXE. I also explain some different dotnet publish parameters to configure the published EXE. Lastly, I show off how to setup a GitHub Actions workflow to automate the deployment and setup a download link.
    TIMESTAMPS:
    0:00 - Introduction
    1:23 - Publishing
    1:52 - Publishing Self Contained
    3:28 - Publishing Single File
    4:39 - GitHub Actions Publish Setup
    9:57 - GitHub Actions Releasing EXE
    13:56 - Downloading and Running the EXE
    14:42 - Conclusion
    RUNTIME IDENTIFIERS: docs.microsoft.com/en-us/dotn...
    OTHER GITHUB ACTIONS VIDEO: • Deploy NuGet Packages ...
    SOURCE CODE: github.com/SingletonSean/wpf-...
    OTHER LINKS:
    Donations: www.paypal.com/biz/fund?id=UB...
  • НаукаНаука

Комментарии • 36

  • @basharfocke
    @basharfocke 5 месяцев назад +2

    Best WPF channel on RUclips

  • @the_null
    @the_null 3 года назад

    oooo god. bro, i was looking for this today. again an unpredictable tutorial. tnx a lot 🙏👍

    • @SingletonSean
      @SingletonSean  3 года назад

      Hahaha that's great to hear MOIEN! Glad you enjoyed.

  • @TheTCommander
    @TheTCommander 3 года назад

    THANKS finally a easy way to export that works! :D

    • @SingletonSean
      @SingletonSean  3 года назад +1

      Glad you enjoyed it Kartoffel! I was surprised that it is indeed this easy.

  • @chrischoo3038
    @chrischoo3038 3 года назад +5

    What a great tutorial!
    I have a question: How could I let people who is using my application to check for update whenever they run the application based on this github action publishing concept?
    Thanks in advance!

  • @iamnot664
    @iamnot664 3 месяца назад +1

    Amazing

  • @8-P
    @8-P 3 года назад

    Thank you very much :)
    Is there any differences between Github and Gitlab for publishing?

  • @zerosandones7547
    @zerosandones7547 2 года назад +2

    If we already installed the app on our pc, how do we get updates for this app, like when we add a new feature or something?

  • @ramsey2155
    @ramsey2155 2 года назад

    this simple the application becomes

  • @windowsbuilderthegreat3121
    @windowsbuilderthegreat3121 2 года назад

    How would you be able to publish an application (any type) that requires a database (SQL Server) connection.

  • @ahappybadger302
    @ahappybadger302 5 месяцев назад

    What if you want to the whole solution since the main project depends on the other projects?

  • @Jeremygrmn
    @Jeremygrmn Год назад

    Hey Sean, what are your thoughts on MSIX? Where would be a good place to host MSIX packages so that we can have the program search for any updates? In leiu of having a website to host it on, would blob storage do the trick? Sorry if this is a bit out of scope from the video!

    • @SingletonSean
      @SingletonSean  Год назад +1

      Hi Jeremy! I haven't experimented with MSIX for WPF applications, but I think that's a great option nowadays. Blob storage or any storage provider would certainly work for auto updates! I'm interested in experimenting with this deeper

    • @Jeremygrmn
      @Jeremygrmn Год назад

      @@SingletonSean would be very interested in that! Would introduce a complete CI/CD workflow for WPF apps!

  • @kipchickensout
    @kipchickensout 2 года назад +1

    For me Single File doesn't work. .NET 6.0 with WPF
    I've looked online and it seems to be some kind of bug that I just have to wait for being fixed
    Edit: Okay nice video and really entertaining to watch, although I don't like so many lines of stuff that need to be written first in order to just make a release

  • @charliegilliland4250
    @charliegilliland4250 2 года назад +1

    I have completed all the steps and have a release published on my GitHub
    However, when i download it and run it nothing happens
    I've noticed that the exe file I download is only 171KB whereas the single file application in the projects folder is 150MB
    Could you help as to why this is im fairly new to GitHub

  • @the_null
    @the_null 3 года назад +1

    Hi bro. I have a question : How to create an installation file that also installs program requirements such as sqlserver, fonts and...? tnx for your toturials

    • @SingletonSean
      @SingletonSean  3 года назад +2

      Good question MOIEN. This would require some kind of installer software. The only installer software I've used for WPF is WiX.
      It feels wrong to recommend WiX since that's all I've used, but at the same time it has always gotten the job done. That said, I'll recommend it anyways, haha. The learning curve is a bit steep, so I also expect to create a couple of tutorials on it.

    • @the_null
      @the_null 3 года назад

      @@SingletonSean So I'll try it and at the same time I'll wait for your tutorial. Thank you so much😊✌👍

  • @kwb9872
    @kwb9872 4 месяца назад

    Great tutorial. I wonder if there is an alternative for actions/create-release@v1. I seems to be retired and github seems to disable some code of the action: Warning: The `set-output` command is deprecated and will be disabled soon.

    • @SingletonSean
      @SingletonSean  4 месяца назад +2

      Thanks! As for the deprecated action, I've been using this one: github.com/softprops/action-gh-release
      I actually have a whole CI / CD series coming out soon 😁

  • @iancarr3923
    @iancarr3923 2 года назад +2

    Great video. However, I still end up with several .dll files in the "Publish" folder but it still works.

    • @SingletonSean
      @SingletonSean  2 года назад

      Thanks Ian, I think I've run into this too! In terms of seeing several .dll files, is there still less than usual?

    • @iancarr3923
      @iancarr3923 2 года назад +1

      @@SingletonSean Hi Sean. I end up with 10 .dlls + .pdb files which can, of course, be deleted. Not sure whether this is a .Net 5.0 thing. The cli instructions are great as the interface route is a real "faff".

    • @swagz6440
      @swagz6440 2 года назад

      did you get a fix to it yet?

    • @iancarr3923
      @iancarr3923 2 года назад +1

      @@swagz6440 It's a while ago now. I didn't see much value in pursuing it. See SingletonSean's comment above. All the best.

    • @florinchess
      @florinchess 2 года назад +3

      @@swagz6440 I have had the same issue and only recently found a solution.
      If you add -p:IncludeNativeLibrariesForSelfExtract=true to the command Sean used in the tutorial the output is only one .exe file. I hope this helps.

  • @zerosandones7547
    @zerosandones7547 2 года назад

    how to do this with a service-based database? I can't seem to find any resources online ;(

    • @itsQuark
      @itsQuark 2 года назад

      ruclips.net/video/1PWnehfCh2U/видео.html

    • @zerosandones7547
      @zerosandones7547 2 года назад

      @@itsQuark the video you sent me was not about publishing it on github actions

  • @amanrohilla8820
    @amanrohilla8820 Год назад

    make a tutorial GITHUB actions with wixtoolset for making installers

  • @his6214
    @his6214 Год назад

    The automatic translation of subtitles is in Vietnamese, can the author set it to English?