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

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 186

  • @RalfsBalodis
    @RalfsBalodis 4 ปีที่แล้ว +33

    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

  • @xx_shorbs
    @xx_shorbs 6 หลายเดือนก่อน

    I'm watching this video in 2024 and its so interesting to see all the formatting and workflow issues you noted during the publishing process are fixed exactly how you said they should be.

    • @IAmTimCorey
      @IAmTimCorey  6 หลายเดือนก่อน

      Yep, a lot of improvements have been made.

  • @zulhishamtan4308
    @zulhishamtan4308 4 ปีที่แล้ว +1

    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!

  • @Aphradity
    @Aphradity 4 ปีที่แล้ว +7

    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?

  • @ajazahmad2386
    @ajazahmad2386 4 ปีที่แล้ว +1

    So Much Thanks.Please Carry On telling us New Innovations of .NET

  • @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 4 ปีที่แล้ว

    Really Great Feature ClickOnce Deployment. I spent 1 week for this feature on .net core 3.1 wpf application

  • @brianhoskins1979
    @brianhoskins1979 4 ปีที่แล้ว +1

    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.

  • @AdamsTaiwan
    @AdamsTaiwan 4 ปีที่แล้ว +31

    Ctrl + d (duplicate) is much faster than copy/paste. Also, alt up/down to move lines instead of cut/paste.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +6

      Yep, I just use it so infrequently that I forget it.

    • @guilla5
      @guilla5 4 ปีที่แล้ว +2

      I believe this has been available since long, I remember start using it 3 years ago

    • @erik....
      @erik.... 4 ปีที่แล้ว

      I always have to think about it because it's shift+alt+down arrow in VS Code.

    • @AdamsTaiwan
      @AdamsTaiwan 4 ปีที่แล้ว +1

      @@erik.... I changed my vscode shortcuts to be the same as vs2019. It's an extension.

    • @AvgDan
      @AvgDan 4 ปีที่แล้ว

      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).

  • @troymitchel4790
    @troymitchel4790 4 ปีที่แล้ว +4

    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  4 ปีที่แล้ว

      That's mixing layout philosophies, though. WPF's philosophy is much more conducive to that concept.

  • @ahmedh2482
    @ahmedh2482 2 ปีที่แล้ว

    You are awesome man,
    Waiting for developer certificate

  • @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.

  • @stephan_smit
    @stephan_smit 4 ปีที่แล้ว +2

    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  4 ปีที่แล้ว

      Thanks for the suggestions, added my suggestions list

    • @kaidouz7756
      @kaidouz7756 2 ปีที่แล้ว

      @@IAmTimCorey would be good if you could do a full video about signing an application with a paid certificate

  • @RobertMunteanu105
    @RobertMunteanu105 4 ปีที่แล้ว

    Thanks for the highlights Tim!

  • @damiansuess
    @damiansuess 4 ปีที่แล้ว +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  4 ปีที่แล้ว +1

      I agree (and great analogy).

    • @JeloOW
      @JeloOW 3 ปีที่แล้ว

      True

  • @drstrangelove9851
    @drstrangelove9851 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน +1

      I don't think they will, although Microsoft would probably prefer to use an easier UI like a XAML-based one.

  • @laycoonz302
    @laycoonz302 4 ปีที่แล้ว +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  4 ปีที่แล้ว +1

      Noted, added to my list of suggestions

    • @matejskerjanc7703
      @matejskerjanc7703 4 ปีที่แล้ว

      @@IAmTimCorey I second that with Jorge, I've been still using newtonsoft since the lack of any useful doc

  • @salmanalikhan8290
    @salmanalikhan8290 4 ปีที่แล้ว

    Best video... I waited for.... Thanks alot

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Most welcome 😊

    • @salmanalikhan8290
      @salmanalikhan8290 4 ปีที่แล้ว

      @@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.

  • @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 ปีที่แล้ว +1

      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

  • @MaryamAv
    @MaryamAv 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว +1

      They have improved it and made it more stable. It is also now in Xamarin (again, a new version that works better).

  • @captainkassard1342
    @captainkassard1342 4 ปีที่แล้ว +4

    It would be nice, to have a Video about Squirrel.Windows and .Net 5. Install and Update similar to Click Once.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      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!

  • @jakubkubala8082
    @jakubkubala8082 2 ปีที่แล้ว

    Thanks, very helpful

  • @mohammedal-sabbagh8463
    @mohammedal-sabbagh8463 3 ปีที่แล้ว

    Awesome thank you very much

  • @Isra-p1
    @Isra-p1 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว

      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.)

  • @notdefined5768
    @notdefined5768 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว +1

      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 4 ปีที่แล้ว

      @@IAmTimCorey Much love sir...

  • @semosemo3827
    @semosemo3827 3 ปีที่แล้ว +1

    we need that video about sign my app and certificate stuff

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      I will add it to the list. Thanks for the suggestion.

  • @marvelcz8974
    @marvelcz8974 4 ปีที่แล้ว +2

    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  4 ปีที่แล้ว +2

      This is the video that discusses to overall path - th-cam.com/video/LUv20QxXjfw/w-d-xo.html. I also have most of my videos organized in playlists, so follow the playlist's order th-cam.com/users/IAmTimCoreyplaylists

  • @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.

  • @wayahedia9989
    @wayahedia9989 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      Excellent use, thanks for sharing.

    • @Christobanistan
      @Christobanistan 3 ปีที่แล้ว

      d:DataContext is for this.

    • @wayahedia9989
      @wayahedia9989 3 ปีที่แล้ว

      @@Christobanistan how?

  • @nnguyetnam
    @nnguyetnam 3 ปีที่แล้ว

    great content! Could you focus more on signing certificates as mentioned plan in video clip? many thanks Tim!

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +1

      I will add it to the list. Thanks for the suggestion.

    • @nnguyetnam
      @nnguyetnam 3 ปีที่แล้ว

      @@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

  • @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.

  • @elpe21
    @elpe21 4 ปีที่แล้ว

    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

  • @kevinlenoir2419
    @kevinlenoir2419 4 ปีที่แล้ว +1

    Hi there ! Does the winforms designer now works when project is built in x64 ?

    • @luislhg
      @luislhg 4 ปีที่แล้ว +1

      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 4 ปีที่แล้ว +1

      @@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

  • @StudentCompanion
    @StudentCompanion 4 ปีที่แล้ว

    Great tutorial. Thanks a lot

  • @czeysy
    @czeysy 4 ปีที่แล้ว

    Thanks for the great content !

  • @HollandHiking
    @HollandHiking 4 ปีที่แล้ว

    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.

  • @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 - th-cam.com/users/IAmTimCoreysearch?query=wpf

  • @luckyJYK
    @luckyJYK 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +2

      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 4 ปีที่แล้ว

      @@IAmTimCorey Thanks Tim I'll check it out

  • @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.

  • @lissa4080
    @lissa4080 3 ปีที่แล้ว

    Will ClickOnce work if used with something like a Github Pages repo?

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว +1

      I believe so but I haven't tried it.

  • @markosteubner9831
    @markosteubner9831 4 ปีที่แล้ว

    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.

  • @RobertMunteanu105
    @RobertMunteanu105 4 ปีที่แล้ว +2

    At this point in time, it would have been weird NOT to have a hot reload really :D

  • @zehsofficial
    @zehsofficial 3 ปีที่แล้ว

    Why do you have two cursors?

    • @IAmTimCorey
      @IAmTimCorey  3 ปีที่แล้ว

      I don't. Are you sure one of them isn't just your cursor on the video? Hopefully you aren't seeing double. 😀

  • @ameermansour_
    @ameermansour_ 4 ปีที่แล้ว

    Hi did you use app usage of DevOps for desktop applications ?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      I am sorry, I am not sure what you are asking.

    • @ameermansour_
      @ameermansour_ 4 ปีที่แล้ว

      Sorry if I used wrong idiom
      I meant application insights
      docs.microsoft.com/en-us/azure/azure-monitor/app/windows-desktop

  • @bobclemens8065
    @bobclemens8065 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      You should not, not.

  • @Ahmad_Hamdy_Hamdeen
    @Ahmad_Hamdy_Hamdeen 4 ปีที่แล้ว

    A lot of thanks 😍❤

  • @kevinfurst8163
    @kevinfurst8163 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +1

      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.

  • @jackkendall6420
    @jackkendall6420 4 ปีที่แล้ว +4

    26:50 this part had me howling, haha. C'mon microsoft!

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      That bug was a funny one.

  • @MarioStaats
    @MarioStaats 4 ปีที่แล้ว

    Everytime a great Information from you. @IAmTimCorey - Is on your Roadmap a overview of WinUI 3?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +2

      It is, although I am going to wait until it is close to release date, if not already released (sometime in 2021).

  • @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 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      Not sure what you mean. It seems fine to me.

  • @luislhg
    @luislhg 4 ปีที่แล้ว

    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 4 ปีที่แล้ว

      Features for .NET Framework may not always be available to other runtimes.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      They are bringing them back into .NET Core. They have also redone the hot reload so that it works better.

  • @hawarhekmat1174
    @hawarhekmat1174 4 ปีที่แล้ว

    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 4 ปีที่แล้ว

      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.

  • @RalfsBalodis
    @RalfsBalodis 4 ปีที่แล้ว

    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?

  • @bobclemens8065
    @bobclemens8065 4 ปีที่แล้ว

    Can you deploy WinForms and WPF apps through the Windows Store?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      You can now, yes. Check out my video on MSIX.

  • @swordblaster2596
    @swordblaster2596 4 ปีที่แล้ว +2

    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 4 ปีที่แล้ว +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.

  • @theMagos
    @theMagos 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      They just need to update the templates. They haven't done that yet for desktop apps.

  • @minchaudhary
    @minchaudhary 4 ปีที่แล้ว

    Can you make a video how to deploy wpf .net5 with component Microsoft.Web.WebView2.Wpf using ClickOnce Deployment

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Added to the suggestions list!

  • @AinurEru
    @AinurEru 3 ปีที่แล้ว

    I didn't count how many clicks were involved in the ClickOnce publishing, but it was more than one click... :P

  • @zuimelanieforno4654
    @zuimelanieforno4654 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +1

      Added onto the Suggested Topics list, thanks!

  • @ivandrofly
    @ivandrofly 4 ปีที่แล้ว

    thanks for tutorial :)

  • @Chatsworth1979
    @Chatsworth1979 4 ปีที่แล้ว

    Agghhhh, crushed my hope of ever seeing WinForms run on Linux+Mac.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Sorry. Not WinForms, but there will be a desktop application type that will work cross platform in .NET 6 (November 2021).

  • @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

  • @mustafakakac86
    @mustafakakac86 4 ปีที่แล้ว

    SO MUCH TANHK YOU!!! and

    • @mustafakakac86
      @mustafakakac86 4 ปีที่แล้ว

      could the next your video be about winform authentication and authorization form and event based?

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      Added to the suggestion list, thanks. I have a few videos on Authentication you may want to look at - th-cam.com/users/IAmTimCoreysearch?query=authent

  • @michelchaghoury870
    @michelchaghoury870 4 ปีที่แล้ว

    tnx a lot for your work, I learned a lot and still,
    will you make videos about ML.NET or IoT, and on Xamarin?

  • @andrewelmendorf2602
    @andrewelmendorf2602 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +2

      I've been debating doing a video on WiX.

    • @andrewelmendorf2602
      @andrewelmendorf2602 4 ปีที่แล้ว +1

      @@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..

  • @burtonrodman
    @burtonrodman 4 ปีที่แล้ว

    Great content. Super painful watching resize windows... learn snap

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      Not quite that easy with large font sizes for demonstration purposes.

  • @redaleta
    @redaleta 4 ปีที่แล้ว

    This new Click Once sounds a lot like the old Click Once which is not a bad thing

  • @markosteubner9831
    @markosteubner9831 4 ปีที่แล้ว

    When you create a .net 5 project and realize you are still on .net core 3.1 :D

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      oops!

    • @kcvinu
      @kcvinu 4 ปีที่แล้ว

      @@IAmTimCorey Well, is that a bug ?

  • @AvgDan
    @AvgDan 4 ปีที่แล้ว

    22:55 Haha, Windows 3.1. Haven't seen that in a long time.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      Yeah, you know. The latest version of Windows 3.1. Wasn't that Windows for Workgroups?

    • @AvgDan
      @AvgDan 4 ปีที่แล้ว

      @@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  4 ปีที่แล้ว +1

      Loved them, especially the gorilla game.

  • @wayahedia9989
    @wayahedia9989 4 ปีที่แล้ว

    I wish we could use comments anywhere in xaml. As well as conditionals to turn off large pieces of code.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      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 4 ปีที่แล้ว

      @@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.

  • @kcvinu
    @kcvinu 4 ปีที่แล้ว

    So there is nothing new in WinForms. It just works in dot net 5. That's all.

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว +1

      The editor is updated (to actually work better) but that's about it, yes.

  • @ramadanlives7815
    @ramadanlives7815 4 ปีที่แล้ว +3

    are you kidding me, all these stuff are old

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      I can see what you are saying but they are back and improved. ClickOnce wasn’t in .NET Core, hot reload was overhauled, etc.

  • @Wizatek
    @Wizatek 4 ปีที่แล้ว

    I would never use WPF, its horrible

    • @IAmTimCorey
      @IAmTimCorey  4 ปีที่แล้ว

      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 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +1

      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.

  • @satiesbasant7375
    @satiesbasant7375 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      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.

  • @lextr3110
    @lextr3110 4 ปีที่แล้ว

    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

  • @VladMihailescu
    @VladMihailescu 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +7

      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 4 ปีที่แล้ว

      @@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 4 ปีที่แล้ว +2

      @@IAmTimCorey Great response.