Desktop Development Improvements in .NET 5 - WPF, WinForms, and ClickOnce

  Рет қаралды 54,938

IAmTimCorey

IAmTimCorey

Күн бұрын

With the latest version of Visual Studio and .NET 5, there have been a few really powerful changes to desktop development in C#. In this video, we are going to look at the changes specifically to WinForms and WPF development along with the re-introduction to ClickOnce deployment in .NET.
Purchase courses: www.iamtimcorey.com
Source Code: leadmagnets.app/?Resource=Des...
Publish.htm workaround: developercommunity2.visualstu...
Mailing List: signup.iamtimcorey.com/
Design-time binding docs: docs.microsoft.com/en-us/visu...
0:00 - Intro
0:55 - Windows Form App .NET
6:29 - WPF .NET
7:07 - WPF: intellisense
8:24 - WPF: XAML double quote
11:27 - WPF: Design time binding
15:58 - WPF: Live Visual Tree
19:49 - WPF: Hot Reload
23:30 - ClickOnce Deployment
33:59 - ClickOnce: publish.htm bug workaround
40:16 - /*Azure FTP*/
41:45 - Install the application
43:43 - ClickOnce: Application updates
45:37 - ClickOnce: Summary
47:50 - Concluding remarks
Thanks to Ralfs HBK for the chapters breakdown

Пікірлер: 189
@RalfsBalodis
@RalfsBalodis 3 жыл бұрын
0:00 - Intro 0:55 - Windows Form App .NET 6:29 - WPF .NET 7:07 - WPF: intellisense 8:24 - WPF: XAML double quote 11:27 - WPF: Design time binding 15:58 - WPF: Live Visual Tree 19:49 - WPF: Hot Reload 23:30 - ClickOnce Deployment 33:59 - ClickOnce: publish.htm bug workaround 40:16 - /*Azure FTP*/ 41:45 - Install the application 43:43 - ClickOnce: Application updates 45:37 - ClickOnce: Summary 47:50 - Concluding remarks
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks
@Aphradity
@Aphradity 3 жыл бұрын
I am so glad to hear you will be covering application signing and developer certificates, this has been a major source of confusion for a while. Is this the same certificate you would use for passing SSL / TLS certificates for secure communication connections? Also, do you plan on doing a video to discuss how to create the type of certificates needed for secure communication, and how to have applications accept your certificate?
@brianhoskins1979
@brianhoskins1979 3 жыл бұрын
I like the d: binding. I used to use the fallback value for that because the designer would display it, but that can have consequences at runtime as well if you forget to initialise in your model. So this is better.
@RobertMunteanu105
@RobertMunteanu105 3 жыл бұрын
Thanks for the highlights Tim!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You bet!
@ajazahmad2386
@ajazahmad2386 3 жыл бұрын
So Much Thanks.Please Carry On telling us New Innovations of .NET
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You bet!
@zulhishamtan4308
@zulhishamtan4308 3 жыл бұрын
Thanks Tim, great info.... I like ClickOnce.... It's super cool as it comes back in .Net5 again. I have using it since .Net Framework, it helps me distribute my software into the automation system I built. Even today I still using it for my Windows Desktop project under .Net Framework. Thanks again!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks for sharing!
@iancarr3923
@iancarr3923 3 жыл бұрын
Very useful section on click-once deployment.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad it was helpful!
@iancarr3923
@iancarr3923 3 жыл бұрын
@@IAmTimCorey As I am sure you know the Publish.htm issue has been fixed in VS 16.9. BTW: although I ftp all the files over to Azure and the App.html page displays correctly I get an error as it appears to fail to download the .application file. Frustratingly the log does not give any clues on why it is happening. Many thanks again.
@minchaudhary
@minchaudhary 3 жыл бұрын
Really Great Feature ClickOnce Deployment. I spent 1 week for this feature on .net core 3.1 wpf application
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yup
@AdamsTaiwan
@AdamsTaiwan 3 жыл бұрын
Ctrl + d (duplicate) is much faster than copy/paste. Also, alt up/down to move lines instead of cut/paste.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yep, I just use it so infrequently that I forget it.
@guilla5
@guilla5 3 жыл бұрын
I believe this has been available since long, I remember start using it 3 years ago
@erik....
@erik.... 3 жыл бұрын
I always have to think about it because it's shift+alt+down arrow in VS Code.
@AdamsTaiwan
@AdamsTaiwan 3 жыл бұрын
@@erik.... I changed my vscode shortcuts to be the same as vs2019. It's an extension.
@AvgDan
@AvgDan 3 жыл бұрын
I got so used to using Shift+Del to cut and then Shift+Insert twice to duplicate a line back in edit.com, I still use it, that and ctrl+arrows and shift+(ctrl+arrows|pgup|pgdown).
@damiansuess
@damiansuess 3 жыл бұрын
I still use, WinForms! You don't always need a sports car to haul dirt. It's great for quick prototyping and generic application use.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I agree (and great analogy).
@JeloOW
@JeloOW 3 жыл бұрын
True
@troymitchel4790
@troymitchel4790 3 жыл бұрын
It would be awesome if they made the Panel control behave just like a in winForms. That would solve a lot of typography issues.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
That's mixing layout philosophies, though. WPF's philosophy is much more conducive to that concept.
@salmanalikhan8290
@salmanalikhan8290 3 жыл бұрын
Best video... I waited for.... Thanks alot
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Most welcome 😊
@salmanalikhan8290
@salmanalikhan8290 3 жыл бұрын
@@IAmTimCorey you are really a good and a real educator. I have learned many complex topics from u. And I would say please make a video on entity framework code first approach including stored procedures in it.
@czeysy
@czeysy 3 жыл бұрын
Thanks for the great content !
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@jakubkubala8082
@jakubkubala8082 2 жыл бұрын
Thanks, very helpful
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@StudentCompanion
@StudentCompanion 3 жыл бұрын
Great tutorial. Thanks a lot
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome!
@mohammedal-sabbagh8463
@mohammedal-sabbagh8463 2 жыл бұрын
Awesome thank you very much
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@drstrangelove9851
@drstrangelove9851 Ай бұрын
I love WinForms. It's so easy to use and you can design forms quickly. Don't even think about getting rid of it.
@IAmTimCorey
@IAmTimCorey Ай бұрын
I don't think they will, although Microsoft would probably prefer to use an easier UI like a XAML-based one.
@ahmedh2482
@ahmedh2482 Жыл бұрын
You are awesome man, Waiting for developer certificate
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thank you!
@stephan_smit
@stephan_smit 3 жыл бұрын
This is great, thanks Tim, so practical. I hope they add the deployment webpage feature, all please go up vote it! If you create another video on this (and please do) it would be great if you could explain more about the signing of the app. Where is the best place to get the certificate from? What option (product) to choose from on the site? Can I sign more than one app with the same certificate? After a year I buy a new one and then replace the old one? Some questions about ClickOnce: Can I set my publish location to an Azure container? Is there an advantage to using Azure App Service over a public Azure container in this use case? Why does it give me (and you) an error when pasting the URL? Is that a bug? With Target runtime, is Portable just the way to go? When to use the other options? What is the lowest version of Windows that a .Net 5 WPF app will run on? If you only get to most of these questions in your next video, that's fine, I'll wait. :) Ps. Setting the minimum version to the same as the current version is a great way of not giving the end user the option of skipping the update, solved a lot of problems for me.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks for the suggestions, added my suggestions list
@kaidouz7756
@kaidouz7756 Жыл бұрын
@@IAmTimCorey would be good if you could do a full video about signing an application with a paid certificate
@elpe21
@elpe21 3 жыл бұрын
Thanks for the video. Tim , how to handle appsettings.json in this scenario? Let's assume there is one. User has updated the file manually and with the next update you want to add new setting to the file. ( something I've asked about before , but the videos for TimCo don't answer that ). Do we have to code something into the program to 'create' new settings but never overwrite the file ? Or perhaps create a different json file ? But this could lead to 100s of json files in big project. Thanks
@Ahmad_Hamdy_Hamdeen
@Ahmad_Hamdy_Hamdeen 3 жыл бұрын
A lot of thanks 😍❤
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Welcome!!
@jackkendall6420
@jackkendall6420 3 жыл бұрын
26:50 this part had me howling, haha. C'mon microsoft!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
That bug was a funny one.
@HollandHiking
@HollandHiking 3 жыл бұрын
Thank you for this demo! One comment. If you use .Net Core or .Net5.0 you will need to publish function anyway to collect all files as input for the installer. When I just migrated to .Net Core, my installed projects did not work very well, till I discovered the Publish function.
@laycoonz302
@laycoonz302 3 жыл бұрын
Could you make a tutorial about json deserializing with system text json?? I haven't found any quality content online with this topic, every video just cover very very basic stuff that does not apply to real world APIs Understanding how to deal with complex nested json structures would be awesome and I'm pretty sure you would do a fantastic job
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Noted, added to my list of suggestions
@matejskerjanc7703
@matejskerjanc7703 3 жыл бұрын
@@IAmTimCorey I second that with Jorge, I've been still using newtonsoft since the lack of any useful doc
@ivandrofly
@ivandrofly 3 жыл бұрын
thanks for tutorial :)
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You're welcome 😊
@MaryamAv
@MaryamAv 3 жыл бұрын
Thank you so much Tim for your good Video , just a question maybe i miss it in the Video , what is new in .net 5 for Hot Reload feature because this feature was availabe in previous versions
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
They have improved it and made it more stable. It is also now in Xamarin (again, a new version that works better).
@Isra-p1
@Isra-p1 3 жыл бұрын
Hi Tim, thanks for this wonderful video. So, as a .NET noob I wonder, what use cases would not be suited for click once and would better suited for an msi installer? Do you also have resources to learn how to deploy using msi installer?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
An MSI installer would be necessary if you wanted to install to a specific path or if you wanted to add additional resources (install a database engine, update the registry, etc.)
@luckyJYK
@luckyJYK 3 жыл бұрын
Thanks Tim for the recent rapid videos on .NET 5. About the ClickOnce, is appsetting.json file available with this deployment ? Because if I'm not mistaken, it's not available with deployment into single EXE file.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You would need to include that file with your project and exclude it from the single file (if you are doing single-file - ClickOnce does not create a single file unless you tell it to). We do this in the TimCo Retail Manager series.
@luckyJYK
@luckyJYK 3 жыл бұрын
@@IAmTimCorey Thanks Tim I'll check it out
@marvelcz8974
@marvelcz8974 3 жыл бұрын
Hello Tim. I will be returning to C# after 3 years now that it fits my needs with NET 5. I have pretty much forgotten everything. Do you have any recommanded order in your channel? I was planning so far to use my old text based resource which is pretty dated but quick + go through your retail manager. Good vid and thanks for update.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
This is the video that discusses to overall path - kzbin.info/www/bejne/gobZY2OHrb2dnNk. I also have most of my videos organized in playlists, so follow the playlist's order kzbin.infoplaylists
@markosteubner9831
@markosteubner9831 3 жыл бұрын
Does an application update download the full installation or is it also possible to do partial updates via click-once? In case of bigger applications it saves time and bandwidth.
@Christobanistan
@Christobanistan 3 жыл бұрын
Use Squirrel for Windows, gives your partial updates and you can embed your update UI inside your app.
@wayahedia9989
@wayahedia9989 3 жыл бұрын
I use fallback values in wpf to see what's goin' on in the designer. The live visual tree saved my butt last week while trying to follow datacontext through nested listviews.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Excellent use, thanks for sharing.
@Christobanistan
@Christobanistan 3 жыл бұрын
d:DataContext is for this.
@wayahedia9989
@wayahedia9989 3 жыл бұрын
@@Christobanistan how?
@MarioStaats
@MarioStaats 3 жыл бұрын
Everytime a great Information from you. @IAmTimCorey - Is on your Roadmap a overview of WinUI 3?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
It is, although I am going to wait until it is close to release date, if not already released (sometime in 2021).
@notdefined5768
@notdefined5768 3 жыл бұрын
Hello Tim Corey... loving your videos... especially for this one using WPF, do you think you could do an updated video on creating a WPF application? I am a student currently doig computer sciences (which godammit... its all maths)... but will be starting C# soon... thanks in advance
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Check out the TimCo Retail Manager series. We built a .NET Framework WPF app and then upgraded it to .NET Core. It talks to an API for its data after authenticating against that API.
@notdefined5768
@notdefined5768 3 жыл бұрын
@@IAmTimCorey Much love sir...
@captainkassard1342
@captainkassard1342 3 жыл бұрын
It would be nice, to have a Video about Squirrel.Windows and .Net 5. Install and Update similar to Click Once.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Added to my suggestions list, thanks!
@Christobanistan
@Christobanistan 3 жыл бұрын
Great package, used by VSCode, Discord, lots of well known apps. I like that it lets you get rid of the ClickOnce installer window and do all the UI in your app!
@kevinfurst8163
@kevinfurst8163 3 жыл бұрын
Hi Tim! Do you know if there will be an (easy) way to migrate a wpf app to a maui app once its released? I would like to make my windows desktop app crossplatform for macOS.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
MAUI isn't out yet, so we don't know yet what the upgrade path will be. My guess is that they will attempt something but we don't know how effective it will be.
@RalfsBalodis
@RalfsBalodis 3 жыл бұрын
What a great time to enter C#. So much cool stuff with C# 9 and .Net5... I had no idea that hot reload is a relatively new feature. For me - it was there forever. (That is 2020 start of summer) You have a designer pane next to your xaml but still, I found that it's just not the same when you can use hot reload. I just can't explain why that is... Also, ClickOnce. Looks very handy. Design time binding, kind of nice. But then - what the x: stands for? I use simply "Name" not "x:Name" if I have to reference element in my code. Seems to work just fine. not to mention xmlns:x... xmlns:d... xmlns:mc... What is a that?
@tchpowdog
@tchpowdog 3 жыл бұрын
Is your clickoncedemo app service a .Net 5 container? Because I just published an app service and .NET 5 nor .Net Core 5.0 was an option. I had to select 3.1.. I think.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
At 29:10, I show off switching to .NET 5 before I created the ClickOnce app so yes, it is .NET 5.
@leriosindane720
@leriosindane720 2 жыл бұрын
very good video In the past I saw a video where you recommended Squirrel. I wonder, with the current ClickOnce Deployment Which do you recommend?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I haven't used the current ClickOnce enough to know yet. That would probably be a good suggestion to add to the suggestion site: suggestions.iamtimcorey.com
@leriosindane720
@leriosindane720 2 жыл бұрын
@@IAmTimCorey i will do that
@bradbernhardt750
@bradbernhardt750 2 жыл бұрын
When I first created a project I chose to deploy to a file path (but not ClickOnce). Now ClickOnce isn't an option when I publish. Is there a way to reset the publish options so I can use ClickOnce?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You can delete the existing publish options but it sounds like you just need to add a new publish option instead of using the existing one.
@kevinlenoir2419
@kevinlenoir2419 3 жыл бұрын
Hi there ! Does the winforms designer now works when project is built in x64 ?
@luislhg
@luislhg 3 жыл бұрын
I don't think so. That is because VS instance itself is x86 so it must execute a x86 project to be able to run it inside and display anything.
@kevinlenoir2419
@kevinlenoir2419 3 жыл бұрын
@@luislhg Indeed, you got a good point there, maybe a x64 version someday, fingers crossed ! But anyway I rarelly will be doing designer stuff anymore, went back to WinForms for a job afters years of WPF, hard times... Back to Xaml soon :D
@mustafakakac86
@mustafakakac86 3 жыл бұрын
SO MUCH TANHK YOU!!! and
@mustafakakac86
@mustafakakac86 3 жыл бұрын
could the next your video be about winform authentication and authorization form and event based?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Added to the suggestion list, thanks. I have a few videos on Authentication you may want to look at - kzbin.infosearch?query=authent
@bobclemens8065
@bobclemens8065 3 жыл бұрын
Even if you sign your app with a certificate, don't you run into issues where the user still gets warnings based on how many downloads you've had, or some other criteria?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You should not, not.
@swordblaster2596
@swordblaster2596 3 жыл бұрын
I gather from the way you skipped over it, that Winforms "just works" as you'd expect? I've personally got no interest in WPF etc (I'm still sulking and ignoring new UI platforms after Silverlight ;))
@BittermanAndy
@BittermanAndy 3 жыл бұрын
Last I heard, the Winforms form designer still has some significant bugs. Though at least it actually exists now I guess. Can't believe they put the designer so low on the priority list every time. I mean just look at the WPF experience that immediately follows in the video. "I want my form to look like THIS, so I type in THIS and THIS and need to remember to type in THIS..." Why would anyone want that in any kind of visual UI designer? It's like making an image with command line switches instead of Photoshop. Terrible experience.
@madaralives
@madaralives 2 жыл бұрын
@IAmTimCorey, Just a quick question, I work for a company that is transitioning from using a 4gl language (Genero/Informix) to dotnet. I have been working in C# personally for years but never bothered learning windows forms or WPF. I do have Win32 programming experience, but that's been 10+ years. My question is; should I spend my time learning WPF, or should I focus on a different UI technology? Thanks! -- Just to expand add detail; my concern is that WPF will be replaced after I have spent the time to get somewhat proficient in it.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
I'm pretty sure Tim would tell you "Learn C#" then, whether its WPF, Blazor or another C# based UI, you are covered. If you really know C#, you can handle any of them. I you want to dive deeper, you can email me at Help@iamtimcorey.com
@madaralives
@madaralives 2 жыл бұрын
@@tomthelestaff-iamtimcorey7597 Thanks Tom for the response. I have been using C# for backend applications for years, we are just transitioning as a company for our client software from an older language to .net, so now I have to start brushing up on frontend code, and wanted to make sure WPF is still what the majority of the market is using and its not going to be marked depreciated in the next few months due to MAUI etc.. etc.. Thanks again for the response!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
@@madaralives Well, I can't say what the world will do (but I would love to be King for a day, LoL), but know that Tim does have some free WPF video to help you! Please check out - kzbin.infosearch?query=wpf
@RobertMunteanu105
@RobertMunteanu105 3 жыл бұрын
At this point in time, it would have been weird NOT to have a hot reload really :D
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Good point
@BigBassti
@BigBassti 3 жыл бұрын
Hi Tim! I started using Entity Framework about 1,5 years ago. I decided to use Ef 6. 4, because the core variant was not really ready.could you make a Video on how it is possible to use ef 6 under .Net 5? Or is it nessessary to port my code to ef core 5 now? If so, can you explain how to do this? That would be a great Tutorial on ef and.Net 5!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I'm not sure you can use it under .NET 5 but I know that you want to be on EFCore now. It is a lot more efficient than EF6.
@girornsveinsson7970
@girornsveinsson7970 3 жыл бұрын
What on earth happened to Azure Devops in the VS update??? I have been trying to google that but unfortunately found no answers! :(
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Not sure what you mean. It seems fine to me.
@DSilvandoBlade
@DSilvandoBlade 3 жыл бұрын
7:00 Everytime I make a new WPF.NET project it doesn't give me a display at all. I don't know how to go about adding it and there isn't any online help. Please help.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Are you sure you are creating a WPF app and not a WCF app? You should always get a UI like that in the MainWindow.xaml file.
@ameermansour_
@ameermansour_ 3 жыл бұрын
Hi did you use app usage of DevOps for desktop applications ?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I am sorry, I am not sure what you are asking.
@ameermansour_
@ameermansour_ 3 жыл бұрын
Sorry if I used wrong idiom I meant application insights docs.microsoft.com/en-us/azure/azure-monitor/app/windows-desktop
@nnguyetnam
@nnguyetnam 2 жыл бұрын
great content! Could you focus more on signing certificates as mentioned plan in video clip? many thanks Tim!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@nnguyetnam
@nnguyetnam 2 жыл бұрын
@@IAmTimCorey we are small start-up company, I see it cost # more than 230 $/year just to own a Extended Validation certificate to remove the "ugly smart screen filter" . Could you also giving us some tips how to do it with lowest/lower possible cost? great thanks in advance
@ryandaley8927
@ryandaley8927 3 жыл бұрын
Not sure if this is even possible since I havent found any info on it yet, but is it still possible to self host SignalR server in Winforms apps anymore and broadcast to clients? I have an old Winforms application in .NET Framework that needs to be migrated to .NET 5.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I haven't tried it so I'm not sure.
@ryandaley8927
@ryandaley8927 3 жыл бұрын
@@IAmTimCorey Was able to self host in .NET Framework Winforms but havent been able to successfully port to .NET 5. Wasnt sure if that was even possible to begin with lol.
@bclaminack
@bclaminack Жыл бұрын
You would be surprised how many SaaS are now implementing WinForms!
@IAmTimCorey
@IAmTimCorey Жыл бұрын
That's an interesting choice, for sure.
@bclaminack
@bclaminack Жыл бұрын
@@IAmTimCorey I am a WinForms Specialist and have been seeking a new position since the first of the year. I was worried if I would find another good WinForms position but was surprised at how many are available. I came across a handful of VB apps that need to be converted to C# WinForms. A dozen or so new projects implementing WinForms for SaaS. And a handful of WinForms written in the early 2000s needing to be updated. I was surprised. I have landed a new position and start next Monday on a 1 year contract. Like you I have been programming since late 1990's beginning with Visual Basic 6 and converting to C# in 2001.
@lissa4080
@lissa4080 3 жыл бұрын
Will ClickOnce work if used with something like a Github Pages repo?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I believe so but I haven't tried it.
@bobclemens8065
@bobclemens8065 3 жыл бұрын
Can you deploy WinForms and WPF apps through the Windows Store?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You can now, yes. Check out my video on MSIX.
@hawarhekmat1174
@hawarhekmat1174 3 жыл бұрын
the only problem that I have with C# is it have a lot of class and don't know which one is right thing, for example if i want make http request in javascript i just use fetch but in C# i don't know how many classes should I use and which one
@Kirides
@Kirides 3 жыл бұрын
Tl;Dr: use HttpClient. If you got that working, fine. If you plan on doing serious stuff: read up on "HttpClientFactory". in JavaScript you have XMLHttpRequest, fetch and then some other libraries that abstract things away even more. in C# you have "WebClient" which should not be used in any modern HTTP development and HttpClient which as the name implies, is a client for any sorts of HTTP-Requests and the only class that should be used for HTTP requests in C#. While you _can_ use the "HttpWebRequest" class to build and execute HTTP requests, it does not allow you to "plug-in" functionality like, eg. Polly, or any kind of Http-DelegateHandller as with the HttpClient.
@luislhg
@luislhg 3 жыл бұрын
Aren't all of these wpf features a visual studio 2019 thing? And it works for regular. NET framework. I never used. NET 5 yet, but I have been using all of those features for a couple years now.
@boomurtv
@boomurtv 3 жыл бұрын
Features for .NET Framework may not always be available to other runtimes.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
They are bringing them back into .NET Core. They have also redone the hot reload so that it works better.
@semosemo3827
@semosemo3827 2 жыл бұрын
we need that video about sign my app and certificate stuff
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@zuimelanieforno4654
@zuimelanieforno4654 3 жыл бұрын
Hello Mr. Corey. Again it is a pleasure to watch your Videos. Your new .NET 5 Videos are really helpful for me. I am an old (very old) Visual Basic user, but now I will switch finally to C#. You gave me the last "CheckBox" for the Decision to make... :) "CheckBoxCSharp.checked = true" Can You please do a WinUI 3 (Preview) with a .NET 5 Video? I wanted to create a "UWP Blank App with Packaging", that did not worked as expected. If You have any Tips I would be Greatful (not Dead... :). Could You also Talk about how we as .Net Framework Devs should approach the "Big Consolidation Change" to ".NET" ? I wish You a easy .NET life, and also a super IntelliCode Suggestion... ;) Greetings from Hamburg, Germany.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Added onto the Suggested Topics list, thanks!
@theMagos
@theMagos 3 жыл бұрын
Why does new projects create as dot net core instead of dot net 5? You have to manually change it every time, and then you get some warnings that you have to hack the project file to get rid of.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
They just need to update the templates. They haven't done that yet for desktop apps.
@yourdailydoseofcode
@yourdailydoseofcode 3 жыл бұрын
After installation my application does absolutely nothing only a dialog shows up for about a second saying that it is checking something: prnt.sc/zly8ld
@minchaudhary
@minchaudhary 3 жыл бұрын
Can you make a video how to deploy wpf .net5 with component Microsoft.Web.WebView2.Wpf using ClickOnce Deployment
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Added to the suggestions list!
@Chatsworth1979
@Chatsworth1979 3 жыл бұрын
Agghhhh, crushed my hope of ever seeing WinForms run on Linux+Mac.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Sorry. Not WinForms, but there will be a desktop application type that will work cross platform in .NET 6 (November 2021).
@zehsofficial
@zehsofficial 2 жыл бұрын
Why do you have two cursors?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I don't. Are you sure one of them isn't just your cursor on the video? Hopefully you aren't seeing double. 😀
@AinurEru
@AinurEru 3 жыл бұрын
I didn't count how many clicks were involved in the ClickOnce publishing, but it was more than one click... :P
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
lol true.
@burtonrodman
@burtonrodman 3 жыл бұрын
Great content. Super painful watching resize windows... learn snap
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Not quite that easy with large font sizes for demonstration purposes.
@andrewelmendorf2602
@andrewelmendorf2602 3 жыл бұрын
I used to love clickonce until I switched to dotnet core 3 for wpf development. I switched to WiX and don't think I'll ever look back
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I've been debating doing a video on WiX.
@andrewelmendorf2602
@andrewelmendorf2602 3 жыл бұрын
@@IAmTimCorey that would probably help a lot of people. WiX looks intimidating from the outside and I think scares a lot of new developers off. I was surprised how simple and flexible it was once I finally gave it a chance..
@AvgDan
@AvgDan 3 жыл бұрын
22:55 Haha, Windows 3.1. Haven't seen that in a long time.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yeah, you know. The latest version of Windows 3.1. Wasn't that Windows for Workgroups?
@AvgDan
@AvgDan 3 жыл бұрын
@@IAmTimCorey "windows for workgroups" 3.11 rings a bell, that and DOS Shell. Did you ever play nibbles.bas and gorilla(s).bas?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Loved them, especially the gorilla game.
@redaleta
@redaleta 3 жыл бұрын
This new Click Once sounds a lot like the old Click Once which is not a bad thing
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
True
@michelchaghoury870
@michelchaghoury870 3 жыл бұрын
tnx a lot for your work, I learned a lot and still, will you make videos about ML.NET or IoT, and on Xamarin?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Those are on the suggestion list.
@michelchaghoury870
@michelchaghoury870 3 жыл бұрын
@@IAmTimCorey tnx alot 🙏
@markosteubner9831
@markosteubner9831 3 жыл бұрын
When you create a .net 5 project and realize you are still on .net core 3.1 :D
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
oops!
@kcvinu
@kcvinu 3 жыл бұрын
@@IAmTimCorey Well, is that a bug ?
@wayahedia9989
@wayahedia9989 3 жыл бұрын
I wish we could use comments anywhere in xaml. As well as conditionals to turn off large pieces of code.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
As far as I know, you can use comments anywhere in XAML. I routinely comment out chunks of code. As for conditionals, you can do that. Use the Visible property and set it to "Visible", "Hidden", or "Collapsed" to show, hide, or "remove" your XAML chunk at runtime.
@wayahedia9989
@wayahedia9989 3 жыл бұрын
@@IAmTimCorey I can't use them inside of controls. I usually have to move that line out and I place it above or below the control, out of the < /> container or my xaml won't work. Makes my code messy but I like to leave reminders of what I have changed while I am developing and unsure of what might have worked or not. Sometimes, I would like to be able to just turn off larger areas of xaml where even setting visibility to hidden doesn't take enough old code temporarily out of the picture.
@reg-net8956
@reg-net8956 3 жыл бұрын
Those clipping textboxes in the click-once menus are really bush league; Microsoft should be excoriated for that type of BS!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Sounds like you must have some awesome personal libraries you could share with everyone to replace those "bush league" tools. 😉
@ramadanlives7815
@ramadanlives7815 3 жыл бұрын
are you kidding me, all these stuff are old
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I can see what you are saying but they are back and improved. ClickOnce wasn’t in .NET Core, hot reload was overhauled, etc.
@kcvinu
@kcvinu 3 жыл бұрын
So there is nothing new in WinForms. It just works in dot net 5. That's all.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
The editor is updated (to actually work better) but that's about it, yes.
@Wizatek
@Wizatek 3 жыл бұрын
I would never use WPF, its horrible
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You don't have to use it. It is not, however, horrible. It is a viable option that provides tons of power and flexibility. Not everyone can deal with the power and flexibility it provides, and that is ok.
@vandeljasonstrypper6734
@vandeljasonstrypper6734 3 жыл бұрын
Nope sorry With latest Apple M1 Microsoft had been forced to make Win32 obsolete. Windows on Arm is going to be a replacement and developers MUST move to WinRT UWP Another bad new XAML is now an old UI Framework language. Everyone now moving from MVVM to MVU Android: Jetpack compose Swift: Already there Windows: the reason why Microsoft had been invest so much in React Native to make UWP is because they realize how outdated MVVM is and they started making our own RxNet which is MAUI and it's not even close stable. .NET now are all about making dotnet core and the cloud .NET desktop developer now is completely 3 years fall behind compare to web technologies, leave Win32 and move on
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Well, this is a bad take. Here's why - you assume that all development is only for the latest trend. The investment in WinForm/WPF has nothing to do with cross-platform development or running on ARM. It has everything to do with supporting the tens of thousands of applications and application developers who are building, maintaining, and improving desktop applications on Windows. As for MAUI being not close to stable, that's because it doesn't exist yet. That comes with .NET 6. Some of the work in .NET 5 was about laying the groundwork. MAUI is not some type of extension of UWP. It is the next evolution of .NET itself with the unification of Xamarin and .NET Core. This also has nothing to do with MVVM, which is a pattern, not a technology. In fact, Blazor Server implements a type of MVVM. The different types of patterns (MVVM, MVC, MVU, etc.) have their uses and values. They are not technology-specific.
@lextr3110
@lextr3110 3 жыл бұрын
design time binding like this to enter design data is f. stupid ... hate that they add stuff like this that will bloat the code ex. xml doc just show how clueless MS coders are they dont even know that you can bind designviewmodel at the root of the binding tree and load this one at design time
@satiesbasant7375
@satiesbasant7375 3 жыл бұрын
Dear Corey you make me a littlebit crazy with the summary and the strange arguments you give just show what to do and say this is the procedure, dont explain every stupid choice microsoft did made, because it is all preliminary, I am not so keen on your youtubes, but there is nobody else to display / demo the latest stuff. But i need to stop watching your youtubes, it drives me crazy and mad/angry man, i think i am impatient or something? did you have people with the similair reaction as i have. All dotnet .conf stuff from all microsoft presentors i realy can digg , but you not. Sorry.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
No one is forcing you to watch. My content is different because I have a different focus. Instead of just telling you about new stuff, my goal is to prepare you for the real world. Knowing what something can do is cool, but knowing when to use it, when not to use it, what the best practices are, and what pitfalls to avoid enable you to make better choices about if you are going to use a feature in your specific situation. You see, just because you have the option to use something does not mean you should. I teach you how to make that choice.
@VladMihailescu
@VladMihailescu 3 жыл бұрын
Try and stop double and triple explaining everything and stop emphasizing so much on 'do you see this button, this button right here, these pixels I'm hovering over right this moment ...' just explain once and move on. Stop thinking that your audience is mentally incapacitated when first of all you post technical stuff. Overall this video shouldn't have been more than 10 minutes.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Doing this would be limiting my audience to a small sub-section of people. Instead of sharing "just the facts" and keeping it to 10 minutes, I make sure I am clear in what I am saying, I emphasize important points, and I explain context. By doing so, I ensure that a larger group of people understand the topic and know how to use it in production. If you wanted a quicker version of this video, go to Channel 9 and watch the video from .NET Conf on it. I took that content, plus some blog content, plus some research on my own and contextualized it into a cohesive whole.
@VladMihailescu
@VladMihailescu 3 жыл бұрын
@@IAmTimCorey I can see your point and understand that this is the direction you want to go and won't argue any further. At the end of the day it is your time and effort spent for us and for free, for that I am grateful be it long or short video. Stay healthy, stay strong!
@focl2003
@focl2003 3 жыл бұрын
@@IAmTimCorey Great response.
Intro to Redis in C# - Caching Made Easy
1:27:29
IAmTimCorey
Рет қаралды 171 М.
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2,3 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 727 М.
30+ String Manipulation Techniques in C#
1:44:07
IAmTimCorey
Рет қаралды 100 М.
15 crazy new JS framework features you don’t know yet
6:11
Fireship
Рет қаралды 392 М.
Worker Services in .NET Core 3.0 - The New Way to Create Services
47:09
10 C# Libraries To Save You Time And Energy
33:59
IAmTimCorey
Рет қаралды 203 М.
The AI Humanoid Robots Race is getting CRAZY
1:20:32
AI Search
Рет қаралды 14 М.
What Are Some Major Mistakes Developers Make in Their Career?
37:32
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2,3 МЛН