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... - Наука
Best WPF channel on RUclips
oooo god. bro, i was looking for this today. again an unpredictable tutorial. tnx a lot 🙏👍
Hahaha that's great to hear MOIEN! Glad you enjoyed.
THANKS finally a easy way to export that works! :D
Glad you enjoyed it Kartoffel! I was surprised that it is indeed this easy.
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!
Amazing
Thank you very much :)
Is there any differences between Github and Gitlab for publishing?
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?
this simple the application becomes
How would you be able to publish an application (any type) that requires a database (SQL Server) connection.
What if you want to the whole solution since the main project depends on the other projects?
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!
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
@@SingletonSean would be very interested in that! Would introduce a complete CI/CD workflow for WPF apps!
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
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
Having the same problem
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
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.
@@SingletonSean So I'll try it and at the same time I'll wait for your tutorial. Thank you so much😊✌👍
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.
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 😁
Great video. However, I still end up with several .dll files in the "Publish" folder but it still works.
Thanks Ian, I think I've run into this too! In terms of seeing several .dll files, is there still less than usual?
@@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".
did you get a fix to it yet?
@@swagz6440 It's a while ago now. I didn't see much value in pursuing it. See SingletonSean's comment above. All the best.
@@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.
how to do this with a service-based database? I can't seem to find any resources online ;(
ruclips.net/video/1PWnehfCh2U/видео.html
@@itsQuark the video you sent me was not about publishing it on github actions
make a tutorial GITHUB actions with wixtoolset for making installers
The automatic translation of subtitles is in Vietnamese, can the author set it to English?