.NET Core 3.0 Desktop Apps - Creating and Publishing WPF and WinForm Apps in .NET Core

preview_player
Показать описание
.NET Core 3.0 promises to be a big update to how we build desktop applications in C#. With it comes upgrades to .NET Core for Winform apps and WPF apps. In this video, we are going to look at how to build and package WPF apps in .NET Core 3.0. We will also look at a .NET Framework WPF application for comparison to see what has changed. Finally, we will look at a WinForm app in .NET Core 3.0, although that will be a bit different.

This video uses the preview 7 release of .NET Core 3.0. We are looking ahead at what will be, not what you should be using today for production applications. WPF is now stable enough to demo, but you will notice that the WinForm app is more difficult to work with since it does not yet have a visual designer.

0:00 - Intro
1:36 - About .NET Core
3:44 - WPF App: .Net Core vs. .NET Framework
10:18 - WPF design
12:15 - ? Caliburn.Micro and WPF .NET core */
14:01 - ? .NET Core WPF cross-platform */
14:53 - ? Why .NET core */
18:02 - WPF builds: Core vs Framework
20:04 - Deploying WPF Core App: framework dependent
23:01 - Deploying WPF Core App: self contained
25:24 - Deploying WPF Core App: single exe
30:33 - Summary
33:06 - WinForms Core project
35:04 - Summary and concluding remarks

Thanks to Ralfs HBK for the Chapters breakdown
Рекомендации по теме
Комментарии
Автор

Great video, and really helpful in getting people to push toward .NET Core 3

computerchris
Автор

I would definitely like to see a conversion from framework to core. Especially, a program like Tournament Tracker, which is based on winforms and framework. Your videos are very descriptive and easy to understand. I will always go to your videos and classes when I'm trying to learn a new technology (Such as Core).

scottgodfrey
Автор

Really thanks Tim. I really like the quality. 🔥

renu
Автор

Excellent - thank you very much! I love how well you explain everything.

virtual
Автор

Thanks for sharing this video, it really helped me alot.

haizzengunn
Автор

great video. thanks for sharing this video.

AshProgHelp
Автор

but when it come to UI style is it still diff or it become the same as well ?
so should we drop wpf now or what ?

DoctorMGL
Автор

What if project have sql dependency can we do the same process with sql as well. How target machine configure sql settings. Do I need to set the connectionString with target machine CS?

KhalidMehmood-lmxd
Автор

11:30 if you look at those 4 blue lines attached to the top/bottom/side in the middle of the button, they stretch up to the parent container, and where the blue lines end there's a grey/white 'thing'. clicking those allows you to align/dealign components to those sides. e.g. if the top and left 'thing's are white but the other 2 are greyish then it's aligned to the top left. and it the top, left and right ones are white, then it stretches it's width and is aligned to the top. that's one handy thing about the designer if you didnt know

conkerconk
Автор

Thnx a lot. enlightening.
And:
Suddenly, a Properties folder appears. I suppose that is for the Publish Profile? Does Properties also contain the Resources? And are they handled like in Framework apps?

erikjansen
Автор

Hi Tim, I was stuck at 29:43, I am trying to condense the content in my publish folder and even after adding the three lines of code in my csproj file and publishing, the content is still not being condensed. I also get no errors on the build either.. I was wondering whether there was any alternative for getting the file content in the /publish folder reduced? Also, I am on the latest netcoreapp3.1 (would this make a difference)Thank you in advance

tajindersanger
Автор

Thanks, Tim. What I always wanted to learn, is to how to create the installer for the desktop app. Could you make a video about it? Not only in .Net Core 3.0.

krysh
Автор

I'd like to ask how to dynamically resize the UI of my application so it fills the rest of the window?

hyxzel
Автор

Hi Tim, I love your videos and have a suggestion:
Can you please create an entire course on software architecture and SOLID principles? As a beginner that is just gaining momentum in software development, learning about architecture and SOLID principles was the "AHA!" moment that really helped me progress. Thank you, and keep up the fantastic work!

zm
Автор

Beautifull !! Just what i needed 😊 Quick question if my app depends on a database file (SQLite) and wanna do the self contained and just the .exe file in it (.net core) then the db will be in the same directory of the exe ? Thanks in advance, as always thanks for your tremendous work !

zarokoshin
Автор

Now the WinForms designer is out but it still has severe issues working with TableLayourPanels that require lots of closing Visual Studio and redoing some parts of the interface. I mostly ended up doing these parts manually in the designer.cs Also the items in menustrips and similar controls is now down entirely in a separate window that for some reason is missing the events tab so you have to subscribe to those manually. You also can't do it in designer.cs since saving the interface from design view overwrites the file, removing the subscriptions.

TheBoxyBear
Автор

Hey Tim, I wanted to learn the C# language next, but I wasnt sure if I'd still be able to build desktop applications with a GUI & have them cross-platform compatible (Windows, MAC, & Linux). If I use the DotNET Core framework, would my C# desktop application (WinForms app) run on Windows, MAC, & Linux straight out the box without additional plugins or libraries in most scenarios? Is it pretty easy to Publish and deploy for all platforms?

AaronEstebanSEO
Автор

Tim, Wonderful informative video as usual. Do you have any suggestions for replacement of the App.config file for a strictly desktop, no internet, application? Is there a way to still use the configuration manager to set, get and modify key value pairs. I guess I could use a simple text file. But, is there a better option?
Many thanks
Harry

harryroper
Автор

thanks tim, awesome as always . can you please do a tutorial about, multithreading, semaphore...

pylvr
Автор

I'm still a little confused... Will .net core apps (such as WPF.core) run on Windows 10 IOT (on a raspberry pi 3 for example)? Regarding the Raspberry and win10 iot, previously only UWP projects could be loaded. While the nuts and bolts are the same (core/standard), is it supported?

Still watching, but need to crash out soon....

shootgp