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

  Рет қаралды 120,964

IAmTimCorey

IAmTimCorey

Күн бұрын

.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.
Newsletter signup (with exclusive discounts, giveaways, and more): signup.iamtimcorey.com/
Source Code Download: leadmagnets.app/?Resource=Cor...
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

Пікірлер: 255
@computerchris1296
@computerchris1296 4 жыл бұрын
Great video, and really helpful in getting people to push toward .NET Core 3
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thank you!
@scottgodfrey7855
@scottgodfrey7855 4 жыл бұрын
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).
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I'm fairly certain I'll be doing an upgrade to Tournament Tracker.
@renu3463
@renu3463 3 жыл бұрын
Really thanks Tim. I really like the quality. 🔥
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@virtual0017
@virtual0017 3 жыл бұрын
Excellent - thank you very much! I love how well you explain everything.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad it was helpful!
@haizzengunn9350
@haizzengunn9350 3 жыл бұрын
Thanks for sharing this video, it really helped me alot.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@Vagelis_Prokopiou
@Vagelis_Prokopiou 4 жыл бұрын
Nice stuff Tim. Thanx.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@zarokoshin4090
@zarokoshin4090 3 жыл бұрын
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 !
@GeminiLearning
@GeminiLearning 4 жыл бұрын
Great information. Thanks men
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@StudentCompanion
@StudentCompanion 4 жыл бұрын
Great tutorial. Thanks
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@AshProgHelp
@AshProgHelp 4 жыл бұрын
great video. thanks for sharing this video.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@conkerconk3
@conkerconk3 3 жыл бұрын
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
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks for sharing.
@nandkishorsonwale69
@nandkishorsonwale69 4 жыл бұрын
Thanks, great work...
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@erikjansen9149
@erikjansen9149 3 жыл бұрын
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?
@dawidbiell
@dawidbiell 3 жыл бұрын
Cool video! Looking forward more :)
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thanks for watching and sharing your thoughts!
@krysh7213
@krysh7213 4 жыл бұрын
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.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@suchabs
@suchabs 3 жыл бұрын
For people who watch it now, .net core is now named .net 5, so you need to create "WPF App (.NET)" now.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yep. Isn't naming fun?
@zm12123
@zm12123 4 жыл бұрын
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!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You mean beyond the SOLID videos I've already done? kzbin.info/aero/PLLWMQd6PeGY3ob0Ga6vn1czFZfW6e-FLr
@TheBoxyBear
@TheBoxyBear 3 жыл бұрын
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.
@mjaguilar923
@mjaguilar923 4 жыл бұрын
Thank you
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@zangwoosung
@zangwoosung 4 жыл бұрын
I have been waiting for you.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I'm glad you found it.
@harryroper9659
@harryroper9659 4 жыл бұрын
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
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You would use appsettings.json to store your settings.
@chezchezchezchez
@chezchezchezchez 4 жыл бұрын
did that work for u?
@DoctorMGL
@DoctorMGL 2 жыл бұрын
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 ?
@KhalidMehmood-lm5xd
@KhalidMehmood-lm5xd Ай бұрын
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?
@RalfsBalodis
@RalfsBalodis 3 жыл бұрын
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 ??:?? Publishing WinForm App ??
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thank you.
@pylvr8021
@pylvr8021 4 жыл бұрын
thanks tim, awesome as always . can you please do a tutorial about, multithreading, semaphore...
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@MusfiqFahadAmin
@MusfiqFahadAmin 4 жыл бұрын
Anybody can follow Tim's tutorials and become a good developer; amazing mentor and truly experienced developer!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I appreciate the kind words.
@dondada4205
@dondada4205 3 жыл бұрын
Great Video ! Joe Rogan for devs My .exe wasnt able to create the single file into one folder, Things have changed a little since this tutorial. When in the Publish menu -> Edit -> dropdown arrow 'File publish options' -> Produce Single File Until I done this (Even though I had PublishSingleFile and PublishTrimmed as true in the csproj) I couldn't produce a single run file.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks for sharing!
@levteck
@levteck 4 жыл бұрын
In Core3.1 The publish to a single file tags did not work until I clicked on the "new" corresponding checkboxes in the Edit window of the Publish screen under the new little down arrow sign under the last text box titled File Publish Options. I run Microsoft Visual Studio Community 2019 Version 16.5.0 . Now it works and I use a setup project to deploy the exe with an icon.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I'm glad you figured it out. They changed a few things during the upgrades.
@Sladeofdark
@Sladeofdark 3 жыл бұрын
Love it!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Great!
@leosilva0411
@leosilva0411 3 жыл бұрын
Nice video Tim! Just a question, would it be faster an app in which the .EXE contains everything (dll's, the app, etc) or the app running in a pc with .Net Core already installed?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
There shouldn't be a speed difference.
@leosilva0411
@leosilva0411 3 жыл бұрын
@@IAmTimCorey Thanks!
@AaronEstebanSEO
@AaronEstebanSEO 2 жыл бұрын
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?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
.NET Desktop apps do not work cross-platform yet. In the future with .NET MAUI, there will be a desktop project type that will deploy to Mac, Windows, iOS, Android, and the web all from the same app and codebase. However Windows Forms and WPF (Windows Presentation Foundation) both have Windows in their name for a reason - they depend extensively on the Windows dlls. That is not something that can be changed so they will never work cross-platform, even though they are powered now by .NET Core and .NET Core can be cross-platform.
@tajindersanger2953
@tajindersanger2953 4 жыл бұрын
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
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I believe they made some changes in 3.1. Check the advanced options when you publish. There should be an option to make it self-contained.
@facundopugliese9632
@facundopugliese9632 3 жыл бұрын
Hi! I couldn't get it too. I'm also working on .NET Core 3.1 and tried several things to get just one .exe file like in Tim's video (he did it targeting .NET Core 3.0). Could be a .NET Core 3.1 issue? Please I appreciate any info (if there is something new to solve this or if I'm missing something). Thanks both!
@oneTwo-qr7ok
@oneTwo-qr7ok 3 жыл бұрын
Hello guys, When opened profile setting window, there is "File publish options" on the bottom . You hit the button and check "Produce single file" check-box then there are just two files appears in publish folder.
@hawnyawk1
@hawnyawk1 4 жыл бұрын
Great video as always. How would you move to different versions of Core? At work I'm always having to remove old versions of Core runtime for security reasons. If my app is written in one of the old versions, will it still work, or how would I move it to the new version? The .Net framework never had this problem, it was just patched and I never had to remove anything.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Moving to a new version of .NET Core is typically quite easy. You just install the new version on your machine and then target the new version in your project. References should update and you should be good to go. Actually a very similar process to what we did in .NET Framework.
@hawnyawk1
@hawnyawk1 4 жыл бұрын
@@IAmTimCorey Thanks Tim, I'm just guessing that Core doesn't get patched like Framework, it just goes to a new version? If it's easy to move , no big deal, but it would be different than Framework, where I have used the same version for years without needing to update, with Core it's like every week.
@RealKeithernet
@RealKeithernet 4 жыл бұрын
I’m really excited about having a modern web viewer and media controls in WPF. Maybe you could show how XAML islands work?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@andywalter7426
@andywalter7426 4 жыл бұрын
There is also one more major advantage of core that was not mentioned. Currently, core is the only one that supports a new c# 8 feature that changes the way we do programming called default implemented interfaces.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yeah, the jury is still out on how I feel about that one.
@andywalter7426
@andywalter7426 4 жыл бұрын
What are the drawbacks about the new default interface implementations. There was many cases where an interface was designed and other things had to be added to it. The only setback though I have found is if you have the properties one, then you still have to implement it unless the default implementation would be a blank method. This can be a good workaround for the fact that c# does not support multi inheritance. Would have been good if you have several classes where the properties are the same but the classes are different. Currently, a person has to repeat themselves quite a bit.
@andywalter7426
@andywalter7426 4 жыл бұрын
I have. I found a few workarounds even for the fact it shows more warnings than expected.
@roycelithgo3968
@roycelithgo3968 4 жыл бұрын
On .NET Core 3.1 the .csproj settings had no effect - you need to enable the options from within the publish profile settings. They are hidden behind File Publish Options underneath Target Location. I enabled Produce single file and Trim unused assemblies (in preview).
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Hmmm, I'll look into that.
@amigoface
@amigoface 4 жыл бұрын
Hi, can you suggest please a good MVVM framework for august 2019 ? something with a good balance between ease of use and features and that work with wpf and .net core . a little search gave me a few : reactive UI, caliburn micro, mvvm light .... etc so any advices is welcome thanks.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I love Caliburn Micro and definitely recommend it. It has been stable for years and it is actively being maintained.
@amigoface
@amigoface 4 жыл бұрын
@@IAmTimCorey Cool i will check that . do you have experience with reactiveUI as well ?, i have very good things about it ...
@hyxzel2226
@hyxzel2226 4 жыл бұрын
I'd like to ask how to dynamically resize the UI of my application so it fills the rest of the window?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Play around with the Columns and Rows in the Grid. Use the * value to make the row or column will up the remaining space. Use it for multiple columns/rows to fill the space evenly. Don't assign widths/heights to items. Let them fill the available space.
@hyxzel2226
@hyxzel2226 4 жыл бұрын
@@IAmTimCorey Thanks, I'll try it immediately. I've tried using the grid functions like HorizontalAlignment="Stretch" and VerticalAlignment="Stretch" but it works for just some part like the home page of my application.
@StephenJWalter
@StephenJWalter 4 жыл бұрын
Great video, as ever. One question I have is whether every, and I do mean every, namespace in the BCL be migrated to .NET Core 3.0? If not, will it be possible to consume such legacy namespaces from within at .NET Core executable. I’m thinking of System.Speech for example.
@shootgp
@shootgp 4 жыл бұрын
From my understanding, which could be incorrect!!! is that .NET core is intended to be platform independent. As is grows, platform specific packages will become available via Nuget (i.e. Windows specific, Linux specific, et). In the mean time, have a look at: docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-dotnet-text-to-speech
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Not sure about the BCL but yes, you can call legacy code from .NET Core but you can't then take that project cross-platform.
@StephenJWalter
@StephenJWalter 4 жыл бұрын
shootgp Thanks @shootgp. I had already found Ms Cognitive services and plan to have my app support that and other cloud-based STT’s (eg IBM Watson, Google etc). A System.Speech option remains attractive though for zero cost and offline capability with the obvious limitation of single speaker recognition. Thanks again for taking the time.
@StephenJWalter
@StephenJWalter 4 жыл бұрын
IAmTimCorey Thanks for taking the time to answer. Yeah I get that it wouldn’t be cross platform but DI is the gift that keeps on giving here. The initial WPF version of my app would surface a service using System.Speech (as long as .NET framework 3.0 or greater was found). Later Xamarin.Forms versions targeting Mac OS/X and iOS and Android just wouldn’t have that service compiled in let alone available. Again, thanks for both your quick reply and more generally your most generous and highly valuable tutorials; I’ve learnt so much in the last year.
@jimkeifer135
@jimkeifer135 3 жыл бұрын
While I am learning C#, should I attempt to transition my example code and practice apps into net core?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yep, that’s a good idea now.
@dingdong141
@dingdong141 4 жыл бұрын
This is cool all we need now is some UI that works cross platform
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yeah, that would be nice.
@MaximilienNoal
@MaximilienNoal 4 жыл бұрын
AvaloniaUI is getting there.
@dingdong141
@dingdong141 4 жыл бұрын
@@MaximilienNoal never heard of this ui but this looks interesting.
@scottgodfrey7855
@scottgodfrey7855 4 жыл бұрын
Xamarin Forms works on MacOS, iOS, Android, and UWP (Windows 10 and, I believe, 8). Linux isn't there...yet.
@Glearian
@Glearian Жыл бұрын
First of all, hi, when it comes to creating a project for WPF, only the (.NET Framework) part appears, the WPF App(.NET Core) template does not. I installed .NET on the PC, the latest version, but it does not appear in visual studio. I would be very happy if you could help.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
First, check to see if you have a WPF App template that does not specify the .NET type - that is now going to be the .NET 6 version, if your Visual Studio is up to date. If your Visual Studio is not up to date, you can go to www.visualstudio.com and download the latest version of Visual Studio 2022 Community Edition for free (some exceptions apply, but almost everyone qualifies to use it for personal use). That's the edition I use for all of my videos now. It is the full version. In fact, it is the same as the professional edition except the pro edition costs money (if you don't qualify for the community edition). When you install it, it will install the latest frameworks and versions for you.
@MauricioCaterino
@MauricioCaterino 4 жыл бұрын
Hey Tim, I keep asking what option do we have to build desktop applications that are really Cross Platform . I mean that runs in Windows, Linux and Mac. Do we have to learn Java?, do we have to use another UI tool and a different IDE. For mobile We have Xamarin. But, for desktop I can't see any.
@zakaria4988
@zakaria4988 4 жыл бұрын
I really recommend ElectronJS or Kivy they are cross platform (specially Kivy it works as a desktop and a mobile App)
@MauricioCaterino
@MauricioCaterino 4 жыл бұрын
@@zakaria4988 Thanks, I'm going to find oud.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Xamarin can create Mac applications but a true cross-platform desktop application is more difficult. That is where a lot of people are turning to Electron (including VSCode). Blazor might be the next step in the evolution but I'm hoping that .NET 5 or 6 will bring us true cross-platform desktop apps.
@MauricioCaterino
@MauricioCaterino 4 жыл бұрын
@@IAmTimCorey Yeah, I realized that. But Electron is not for c#. There is a project called avalonia which is a framework for wpf and is cross platform for Linux and Mac but still in beta.
@scottgodfrey7855
@scottgodfrey7855 4 жыл бұрын
@@MauricioCaterino Windows 10 (If it doesn't already) will have a linux kernel built into it. I see plans in the future for Xamarin to include building for linux too. Microsoft is REALLY pushing Xamarin and .NET as it's core technologies.
@mohamedchaabouni4477
@mohamedchaabouni4477 4 жыл бұрын
Hello ! thanks for this ! So personnaly I want to see a section for Screen, conductors and navigation inside WPF app in the net i didn't find any relevent sources :(
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Look at the TimCo Retail Manager. We deal with screens, navigation, eventing, etc.
@KouroushMetal
@KouroushMetal 4 жыл бұрын
I Think a video about convert from Asp.Net MVC Framework to Core would be great in future.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It is coming.
@Dasutein
@Dasutein 4 жыл бұрын
How is versioning handled in .NET Core 3 since the Assembly file is not present anymore unlike in .NET Framework?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
The target version for the application is stored in the csproj file in a tag called "TargetFramework".
@David-id6jw
@David-id6jw 4 жыл бұрын
You have two options. You can set all the version/copyright/etc information under the Package tab that's available when you look at a project's properties. Or you can continue to use the assembly.cs file, and set false in the main group of the project file itself to make sure it doesn't try to generate the info automatically, but instead use the info you put in the assembly.cs file. The former is fine if all you're doing is setting version numbers (not including AssemblyInformationalVersion). The latter may be needed for setting certain project settings, like InternalsVisibleTo, ComVisible, etc. TargetFramework obviously has nothing to do with your own project version information.
@bigpego90
@bigpego90 3 жыл бұрын
Hi Cory, thanks again for you video, but I don't know if I missed it, there is any way to edit a little bit of informations like you explain in msix installer video. I'm try to deploy my to clients, but without the necessity to acce internet or have certificates (it's quite internal), I see that is the best way to do it, but I want to edit the informations, like: icon, author and so on. Thank you very much!!!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You would set those in the properties for the UI project (WPF or WinForms).
@bigpego90
@bigpego90 3 жыл бұрын
@@IAmTimCorey thank you very much!!
@shootgp
@shootgp 4 жыл бұрын
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....
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No, they will not. UWP is still your go to solution for IoT at the moment. WPF will only run on Windows (full Windows).
@munkhn73
@munkhn73 4 жыл бұрын
First, I wanna say “thanks to you, i need to recreate most of my works now” (well in a good way, of course. Your lessons are eye opener) Second I have few questions. - I need to make application that can run on windows xp(without needing to install net frameworks additionally). So somewhat i have to depend on .net 2.0. But some things(functions and methods etc.) i need are not in the 2.0. And the question is if i understood it correctly .net core application will run on xp without any problem? - you added trimmed something tag in the project file which should remove all unused components. If the trimmed version of blank white window is 100mb, how much will the decent application size be? How big is the .net core? If it was console demo app, will the “trimmed” will trim everything except System and Console or will it be same as wpf and have size like 50mb? - imho web application may benefit from the .net core, but i don’t really see any advantage on desktop apps since they can’t be platform independent. Will it really have a noticable speed boost? There was a debate on python for a long time, which is should you be switching to python 3 or stay with the python 2. I was on the stay with the python 2 side until python 3 developed to the point like python 2, at least package wise. I’m assuming same with .net framework and .net core. Why rush, when you can for it to grow?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Excellent questions. I'll do my best to answer. XP is so old, I'm not sure if it would run or not. I would love to hear the results of a test. If you do test it, email me and let me know the results. As for the trimmed application, yes it is large but it won't get a lot bigger. Even a Console app is 29mb. The reason for the size is because of how much of the base libraries it needs. That won't change by adding five more forms or even data access. Yes, there will be a noticeable speed boost. Also, you get the continued development. For instance, Microsoft has improved how we store secrets (a layered approach). They have also made web authentication plug and play. Logging and dependency injection are also very easy. I would definitely encourage you to start planning the move to .NET Core. For all new development, move now. You can always use the .NET Framework code as well and the move is not difficult. For legacy apps, plan the transition now and perform it over the next couple years. As for the idea of "why rush", this isn't a rush. .NET Core is on its third major version. Yes, desktop apps are just now appearing but that is mostly about the tooling, not the code that powers them. That code has been complete, or nearly so, for months.
@munkhn73
@munkhn73 4 жыл бұрын
IAmTimCorey thanks for all the advice. So even though i didn’t use anything except from System and or Console namespace microsoft will add other crucial libraries anyway? Or System alone that big? Noticable speed boost sounds great. There are some badly made applications here (where i work) take ages to load and operate. So i guess at least they(those who made) could convert their applications to net core if they can’t fix and/or improve. by rush i meant wait for the third party and user created packages. A rookie programmer like myself depends on them most of the times. Also like you said in your video. Why recreate something when somebody has already created it. For example this caliber micro. The application i said earlier uses 3rd party packages, so i can’t recreate my app using net core until they (third party) make their package avalaible on net core, i guess. I can use something like dotnetpeek and create my own version of their package. But that’s too much hassle and whether that will be considered as stealing other’s work or not. Of course this doen’t mean stay away from net core. And lastly you have probably noticed, i’m from country where english isn’t the native language. So, sorry for the broken english?
@gselby8107
@gselby8107 4 жыл бұрын
Hey Tim. Really good stuff.Thanks. I have a problem in a WinForm project. I created a class library in .NET Core. Then when I went to add my forms library, I wasn't paying attention and created that in .NET Framework. I have a SQL connection, and when I run it the app is trying to load the assembly System.Data.SqlClient 4.8 (in Core), but Framework uses 4.6 so it blows up. What is the best way to "convert" my .NET Framework forms library to Core? (please don't say start over in Core) :-( Thanks Tim.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
If you look at the TimCo Retail Manager series, I show how to upgrade a WPF project to .NET Core. The way to do it is practically the same for WinForms. The process is actually quite easy to do. I do have a course on it as well, that includes upgrading WinForms: www.iamtimcorey.com/p/upgrading-to-net-core-from-start-to-finish
@facundopugliese9632
@facundopugliese9632 3 жыл бұрын
Hi Tim, I would like to ask you how to publish or deploy a WPF app but with a connection to a SQL Server DataBase. Do you have any video showing this? I really tried to understand the process but I'm not getting any answers in my search. Thanks for share your knowledge.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I'll be publishing my WPF app in the TimCo Retail Manager series soon. It doesn't have a connection string but it does have a URL to update (very similar concept). Basically, you just need to update the connection string during publish (if it is going to change).
@chezchezchezchez
@chezchezchezchez 4 жыл бұрын
Just got CORE 3.0 Is this video still TOTALLY relevant? Or do we need an update? Thanks!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yep, this video was based on .Net Core 3.0, just a pre-release version.
@tanmaysinghal8370
@tanmaysinghal8370 3 жыл бұрын
Visual studio 2019 not showing me any .NET FRAMEWORK option? even though I've .net frameworlk installed. What can i do?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
It sounds like you have the filter turned on for only .NET Core project types. Since .NET Framework comes with Windows, you should be able to see .NET Framework project types (unless maybe you didn't install those project types when you configured Visual Studio).
@howardwalowitz3600
@howardwalowitz3600 3 жыл бұрын
Thanks for sharing. I would like to see a video on WinUI
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I’ve got it on the suggestion list.
@davidwhite2011
@davidwhite2011 4 жыл бұрын
So what about MVVM frameworks? What is supported now? Is Caliburn going to be supported in Core 3.0?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Caliburn Micro is supported in version 4, which is only in preview mode right now. You can see me upgrade the TimCo Retail Manager WPF UI to .NET Core 3.0 (which uses Caliburn Micro) this week.
@MakoMako1234321
@MakoMako1234321 4 жыл бұрын
Awesome video. Are you planning on making videos about blazor?
@andywalter7426
@andywalter7426 4 жыл бұрын
I would also like to see a video about blazor. I would suggest for the timco one to use blazor instead of javascript. The purpose of blazor is to allow more people to build web pages who don't know java script . Since javascript is a low level language and c# is a high level language.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I do intend to do a video (a few, actually) on Blazor once it becomes a bit more stable.
@kareemsakr41
@kareemsakr41 4 жыл бұрын
Hi guys, is .NET Core WPF production ready ? I have a greenfield project and not sure if i should stick with vanilla WPF or go with core for longevity
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yes, it is ready for production. It has been production-ready for about 9 months and is fully supported by Microsoft. Go with the .NET Core version.
@kareemsakr41
@kareemsakr41 4 жыл бұрын
IAmTimCorey thank you for responding. Would your pre .NET core WPF courses be relevant for the core version as well ? My goal is to find a complete course stack that will cover everything from wpf itself then MVVM custom controls etc
@examplewastaken
@examplewastaken 4 жыл бұрын
Hey Tim, I ran in a problem no one seems to have. I made a WPF application, and wanted to deploy/publish it (self-contained, win-x64, single file, trimmed, ready to run). No problem, runs really well on my computer. But I cant start it on any other computer than the one I developed it on. On others, than my own, I see it starting in the task manager for about 2 seconds and then it closes again. The GUI never showed up, nor did the icon in the taskbar. Any idea what the reason could be?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
That's an interesting one. Try disabling the trimmed and ready to run off and run it again. Maybe something is getting missed in the tree shaking. If that doesn't work, try putting in logging, especially around the startup events. That might reveal something. It sounds like either a tree-shaking issue or that you have something on your computer that the application is expecting that is not on other computers (file path, etc.)
@examplewastaken
@examplewastaken 4 жыл бұрын
@@IAmTimCoreyThank you very much for your answer! there are now two ways to enable/disable ready to run etc. 1. In the project file and 2. When editing the publish profile. But I couldn't figure out which one counts. Also the app is just calculating. There are no files or anything like that.
@mishashins
@mishashins 4 жыл бұрын
hi, please tell me if you can use 2.1 instead of .net core 3.0, because you can't choose the version
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
If you cannot choose .NET Core 3.0 (or 3.1), you will need to update your version of Visual Studio (which should bring down the newest .NET Core versions) or install the .NET Core 3.0 (and 3.1) SDK manually. Desktop apps did not have .NET Core until .NET Core 3.0.
@mishashins
@mishashins 4 жыл бұрын
@@IAmTimCorey thanks
@ameskeoh
@ameskeoh 4 жыл бұрын
Hello Tim, Interesting video however PublishTrimmed gives me an error, it still compiles but when run...nothing. When I remove the PublishTrimmed statement everything works but of course the file is much larger. I'm running Core 3.0 Preview 7
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Make sure you specified win-x64 as well and that you spelled everything correctly. Maybe try my source code and compare them.
@ameskeoh
@ameskeoh 4 жыл бұрын
@@IAmTimCorey I received your files but they will not load "Expected imports missing". I was able to read the csproj file which reads identical to mine.
@ameskeoh
@ameskeoh 4 жыл бұрын
OK, I got it open but it still throws the same error regarding the PublishTrimmed line
@DamianWalczak
@DamianWalczak 4 жыл бұрын
why not an example with .net fx 4.8 ? since it has been released for the good few weeks now ?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for the suggestion. I'll add it to the list.
@illmtoloko
@illmtoloko 4 жыл бұрын
Is it possible to create WPF Desktop Apps (self-contained) in linux with visual studio core?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No, because WPF is still Windows-only even though it is powered by .NET Core. It still uses Windows-specific items to render and that isn't something that is easily removed. It would basically require a full rewrite.
@illmtoloko
@illmtoloko 4 жыл бұрын
@@IAmTimCorey thank you. Another question, is there another way of achieving that using other thing then WPF?
@AdamsTaiwan
@AdamsTaiwan 4 жыл бұрын
I'm having problems porting. My WPF app worked with Preview 6, but broke with Preview 7. The line: var wa = System.Windows.Forms.Screen.GetWorkingArea(new System.Drawing.Point()); Errors with: error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) Not sure how to fix, so it seems that porting will not be easy. System.Drawing.Image moved to System.Drawing.Common and I had to get that from nuget.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
When you reference the System.Windows.Forms namespace, that is WinForms. They may have changed where that is located or changed that functionality. You will need to look at what was changed an if it was replaced or removed (unlikely).
@AdamsTaiwan
@AdamsTaiwan 4 жыл бұрын
@@IAmTimCorey I couldn't find anything in their documentation regarding this change.
@claasdev
@claasdev 4 жыл бұрын
I am really looking forward to (client side) Blazor even though that might not make it to .NET Core 3. To imagine we might be able to run .NET applications cross platform using Electron just amazes me. Would really be interested in a video about Blazor in general (might have missed one)
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It is coming in the somewhat near future.
@chrisspellman5952
@chrisspellman5952 4 жыл бұрын
Saw we just signed up for your newsletter, is it too late for Christmas?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yeah, sorry, the sale ended July 31st at midnight. More sales will be coming though.
@eliezerportillo7
@eliezerportillo7 4 жыл бұрын
Hi! ¿What about Crystal Reports compatibility?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Not sure. I haven't used Crystal Reports in years.
@metekaba6532
@metekaba6532 3 жыл бұрын
Hello sir. Thank you for this wonderful tutorial :) I was going to create a WPF App (.NET Core) project, however it is not listed on my visual studio. I've tried everything including installing .NET Core 3.1 SDK and updating the VS but still the same. I can only see WPF App (.NET Framework) and WPF App (.NET) :/ Once again, thank you for such a brilliant tutorial!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
OK, I think the problem is that with the .NET 5 update, they changed the template names. You would want the (.NET) version, which is .NET 5, which is really a minor revision from .NET Core 3.1.
@metekaba6532
@metekaba6532 3 жыл бұрын
@@IAmTimCorey Yes, I think so. I have selected one option called "Show all .NET Core templates in the New project dialog" in Tools/Options/Preview Features and now there is a WPF app template with .Core but a different name as you said. There are three templates .NET Framework, .NET Core, and just .NET. However, I could not find any resources includes just ".NET" WPF.
@kstevenson3504
@kstevenson3504 4 жыл бұрын
I want to learn .NET Core. NOt sure what flavor I should learn. I'm working on a desktop application at work. Should I expand to other types or focus on moving desktop to .NET core?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I am assuming you know C# well (because that's the place to start). After that, learn what you need for your job. Learning the rest is a good idea so you have options down the road. Even if you are using just desktop apps, knowing API, for example, will help you improve your desktop applications and prepare for a broader future.
@user-eq5bw7mc7x
@user-eq5bw7mc7x 3 жыл бұрын
Hi, I'm a leaner from China. I really like this series. Many chinese wpf tutorial use old .net framework in an old environment(even in xp and vs 2010), so can I bring this series to a Chinese video platform?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I'm sorry, but that's not something I permit at this time. My content stays on KZbin. If you want to link to videos, that's fine, but I don't permit them to be removed from KZbin to be used elsewhere.
@user-eq5bw7mc7x
@user-eq5bw7mc7x 3 жыл бұрын
@@IAmTimCorey Okay. Anyway, thank you for your lessons.
@sc100200090
@sc100200090 4 жыл бұрын
Quite a good comprehensive source of info. However, unfortunately haven't found the App.Config file, although added manually to a WPF Core app, to be working in case of Connection Strings, as the same used to be working successfully in case of WPF Framework. It goes on reflecting the "Object reference not set to an instance of an object" error with the line being highlighted being as clear as one like: optionsBuilder.UseSqlServer(System.Configuration.ConfigurationManager.ConnectionStrings["CONNECTIONNAME"].ConnectionString);
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
In the .NET Core, things have changed as far as configuration. We now use appsettings.json to store configuration information, including connection strings. We can access those settings using the Microsoft.Extensions.Configuration NuGet package. In some of my other .NET Core videos, I demonstrate how to do this. I also demonstrate how to do this in a .NET Core WPF app in the TimCo Retail Manager app when we upgrade it to .NET Core.
@sc100200090
@sc100200090 4 жыл бұрын
@@IAmTimCorey Well! Well! That's for the first time I have received such a reply! Thanks Tim! Do see if you can share links to your valuable videos upon the same as well! Thanks again!
@officialspock
@officialspock 4 жыл бұрын
Does this mean you can't deploy .net core and .net framework when its combined in your solution?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You can but not the same way.
@dsalodki
@dsalodki 4 жыл бұрын
What with Linux embedded in Windows? I mean in core of Windows. Linux is for me working bad but I saw fixes for it (for CPU). Is it possible to install not only for installed OS but other place than disk (hdd)? Can I try VM with Linux to install the patch for CPU for real CPU? I know that only CPU cores dedicated for VM and sometimes parts of cores.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I'm not familiar enough with the WSL to help you out there. It won't allow WPF to run on Linux, though.
@santiagopiaggio2099
@santiagopiaggio2099 4 жыл бұрын
Do you have any video about .net Core 3.0 MVC?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
This comparison video covers MVC: kzbin.info/www/bejne/bWq4iKmIbJhnras
@diyaCricketStar
@diyaCricketStar 4 жыл бұрын
Can this will work Linux and Mac OS? I would like to create a desktop application which will work all cross platform with .net core 3.0. please suggest?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No it will not. You will need to look at third-party solutions like Uno or Avalonia for that.
@diyaCricketStar
@diyaCricketStar 4 жыл бұрын
Can you please share demo for OS and Linux also?
@diyaCricketStar
@diyaCricketStar 4 жыл бұрын
As you suggested
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Demos of those platforms are on my todo list.
@zangetsu2k8
@zangetsu2k8 4 жыл бұрын
Please make a video on Blazor.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It is coming.
@leapingblackcat
@leapingblackcat 4 жыл бұрын
On .NET I could run up a single WPF .exe app. Core WPF apps compile to three files an .exe, a 6KB .dll and a 1KB JSON. This is additional complexity. At what point will a programmer decide to edit the JSON without changing the source code for the .exe? Rarely I suspect. Why is there separate .dll? If I do not know what it does, without doing research, I am not going to replace it. It is like the app was needlessly dismembered.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
The issue here is one of how you create your EXE. There is a setting to pack all of that into the EXE and just have the one file - even if you have an appsettings.json. That's tighter than a .NET Framework EXE can do (it will have the app.config that needs to be separate plus any DLLs that it depends on). A .NET Core EXE can also bundle in the .NET Core runtime itself into the EXE so that you don't have to have .NET Core installed on the target machine. With .NET Framework, we got what we got. With .NET Core, you get a lot of options. The default might not be what you want but there is almost certainly a setting for you.
@elirannissani914
@elirannissani914 3 жыл бұрын
So i dont get it. CAN I MAKE THE APP THAT I AM CREATING IN WPF .NET CORE RUN ON MAC AND LINUX OR NOT??? YOU REALLY CONFUZED ME...
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I mentioned this in the video but no, you cannot. They are powered my .NET Core but they are still bound to Windows. The reason for the upgrade is the massive speed improvements in .NET Core.
@elirannissani914
@elirannissani914 3 жыл бұрын
@@IAmTimCorey ok
@andywalter7426
@andywalter7426 4 жыл бұрын
There is one more thing that was not mentioned that needs to be considered when deciding on deploying. There is one major drawback of making all as one exe. Suppose somebody has a game package that has around 120 games. If they are all in one folder and every one is one exe alone, then there would be lots of duplicates and the sizes for each one would be much larger than normal. If somebody is creating several apps to deploy to one folder and the person does not have core, then you need all those files. So for each additional app, you only need one extra exe and maybe an extra dll or two if having a cross platform version of a dll.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yes, there are drawbacks to deploying the framework in a bundle. This wouldn't be something I do with multiple applications, although I also don't think I would deploy several applications into one folder to share the .NET Core files. That would cause major problems with versioning. Each application would need to use the same version of every shared package. For example, if they used different versions of Dapper, that would cause a conflict and break applications. If you are deploying an application with .NET Core, you need to do it independently of other applications that also do so.
@andywalter7426
@andywalter7426 4 жыл бұрын
What is your opinion on the best way to handle if a game package for example is being built that has over 100 games. They are tested one by one. Currently, on the computer that does not have visual studio, they go into one folder. For that case, they would obviously use the same version of the dapper for example.
@AmitSharma-bl1ur
@AmitSharma-bl1ur 4 жыл бұрын
Sir is it will be possible in future we could deploy .net core wpf app on linux
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No, that is not currently in the plans that I know of. The W in WPF stands for Windows. They would have to do a lot of work to make the conversion.
@AmitSharma-bl1ur
@AmitSharma-bl1ur 4 жыл бұрын
@@IAmTimCorey Thanks Sir for quick response can you tell , how can we develop cross platform app in .net core for linux
@andywalter7426
@andywalter7426 4 жыл бұрын
I am guessing the only cross platforms apps that can be created that would work in linux are console apps.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Console apps are one way. The biggest way, though, is ASP.NET Core apps. Yes, they are web apps and that probably isn't what you are looking for, but the biggest complaint for years was that Windows hosting of websites was so much more expensive (because of licensing). Now that pain point is gone.
@David-id6jw
@David-id6jw 4 жыл бұрын
You currently can't make a WPF app for Linux, but there are alternatives that are starting to be developed, now that the WPF code is open source. While I haven't actually succeeded yet, I've been poking at Avalonia as a possibility, and I'm pretty sure there are one or two others that are in the fledgling stage of development.
@RealKeithernet
@RealKeithernet 4 жыл бұрын
I would love to see how to have a WPF app support .NET Framework and .NET Core in the same solution.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@David-id6jw
@David-id6jw 4 жыл бұрын
While it's easily doable, it's not necessarily the most desirable option. Personally, at least, the main motivation to convert to .NET Core 3 for a WPF app was being able to advance to C# 8. .NET Framework will be limited to C# 7.3, since C# 8 is being developed alongside .NET Standard 2.1 which will never be ported to the Framework. As noted in the video, there aren't any new features being added after 4.8. Anyway, that has led me to making use of the new C# 8 features (primarily nullable references, but a lot of span stuff as well, for speed and memory) which is just incompatible with the Framework version of the same app. This has made keeping them in sync require quite a bit more effort. It would be easy to keep them in sync if they were both limited to C# 7.3, but at that point, why bother writing the Core 3 version? You're not gaining anything, and you're still limited to the same deployment platform. You can of course create one project for the Framework project, and another for the Core 3 project, and have them both make use of a common .NET Standard library for the business logic, but you run into the same problem. The Core 3 WPF app can use the .NET Standard 2.0 library, but the entire point of moving up to Core 3 is to be able to use .NET Standard 2.1, which is incompatible with .NET Framework. The two versions are close enough that it would be very easy to keep in the same project, but there are just enough differences that there will be some awkwardness in keeping them in sync (vs just creating shortcuts from one project to the other, so they use the same files).
@dharmendrakumarsingh8840
@dharmendrakumarsingh8840 4 жыл бұрын
Hello Respected Can you please share a UWP Demo using .net core 3 in WPF .Or let me know can in consume UWP Api in wpf net core 3.0 ?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I’ll add it to the suggestion list.
@Ultimeh
@Ultimeh 3 жыл бұрын
sadly these published options in .net 5 doesnt seem to work properly at least for me. Especially a single file with "self-contain". dont needed file arent compile with the exe
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
It sounds like you might be missing something in your setup.
@4everzapy
@4everzapy 2 жыл бұрын
i dont find wpf core, its deprecated now in 2022?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
It is not. It might just be called WPF.
@zerosandones7547
@zerosandones7547 2 жыл бұрын
how to publish a wpf app with service-based database? I'm really lost right now.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Typically, you would publish your database separately.
@rudolf2879
@rudolf2879 4 жыл бұрын
Nice Video! Please create WPF .NET Core Installer. Thanks.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@benzayed5435
@benzayed5435 2 жыл бұрын
why my viusl studio does not have wpf. net core
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You probably haven't installed it.
@martinrj30
@martinrj30 4 жыл бұрын
Link to the winforms designer mentioned at 3:26 aka.ms/winforms-designer
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks!
@LuigiZambetti
@LuigiZambetti 4 жыл бұрын
A full course on WPF for .NET Core, could be a valid idea? (also not free).
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for the suggestion.
@Ziplock9000
@Ziplock9000 4 жыл бұрын
@@IAmTimCorey If it's the same as framework, is there any point?
@leoingson
@leoingson 4 жыл бұрын
Winform designer for .NET Core is still not up, right?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Not for production but there is a beta version that has been released.
@leoingson
@leoingson 4 жыл бұрын
@@IAmTimCorey Thx. Is it usable, or just an anoying bugfest?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Still pretty buggy but it is making progress.
@Spirittism
@Spirittism 3 жыл бұрын
I love ado.net on .net framework, is it possible on Core?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Sure. That's what Dapper uses under the hood.
@Spirittism
@Spirittism 3 жыл бұрын
@@IAmTimCorey is it possible to have the mapping done through a wizard like .net framework?
@ishratmunir3057
@ishratmunir3057 4 жыл бұрын
So these applications will cross platform?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No. I talk about that in the video. .NET Core desktop apps still depend on Windows (the W in WPF stands for Windows after all), but they are powered by .NET Core, which is much faster and has the modern features and active development going forward.
@sambhavsharma9661
@sambhavsharma9661 3 жыл бұрын
Can you please let me know that If i talk about the migration then please let me know what are the .net application i can start migrate from .net framework to .net core version 1 and 2 and 3. .net core 1 Which .net app use to migrate .net core 2 which .net app use to migrate .net core 3 which .net app use to migrate And also let me know that what are the languages which i can migrate from .net frmawork to .net core 1 and 2 and 3. Kindly give me answer. Thanks in Advanced.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Always migrate to the latest version of .NET Core unless you have a specific reason not to.
@user-id8je6wi2l
@user-id8je6wi2l 4 жыл бұрын
How about run on windows XP?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I believe .NET Core only supports back to Windows 7.
@zehsofficial
@zehsofficial 2 жыл бұрын
How do I do this with .NET 5.0?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Pretty much the same way.
@zehsofficial
@zehsofficial 2 жыл бұрын
@@IAmTimCorey They changed it for local file publish in .NET 5.0 there's no GUI for changing the publish settings like deployment mode to self-contained. You now have to edit a text file. I found out how to do it on a stack overflow page
@_slier
@_slier 4 жыл бұрын
can it run on linux?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No, only Console apps and ASP.NET Core apps can run on Linux.
@MauricioCaterino
@MauricioCaterino 4 жыл бұрын
It's seems @UnoPlatform could be the answer.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It may be.
@stevethompson5612
@stevethompson5612 4 жыл бұрын
I WOULD SUGGDST
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
What would you suggest?
@chezchezchezchez
@chezchezchezchez 4 жыл бұрын
@@IAmTimCorey lol
@vmarinpietri
@vmarinpietri Жыл бұрын
not work for .net 5.0
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Yes, it will work for .NET 5+ as well.
@sunayvatansever5905
@sunayvatansever5905 3 жыл бұрын
I thing this is a comparison video.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Not really, but there are some comparison elements to it.
@theman3282
@theman3282 4 жыл бұрын
caliburn micro is confusing magic stick...
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I have a whole playlist to help you learn Caliburn Micro (and WPF in general). I definitely don't want you to use it if it is magic. Since it just makes the MVVM pattern easier, really the issue is first learning MVVM and then learning how CM can make your life simpler.
@theman3282
@theman3282 4 жыл бұрын
@@IAmTimCorey hey that's is great...will look to that playlist..thanks Tim!!.
Intro to WPF: Learn the basics and best practices of WPF for C#
1:10:34
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
КАКОЙ ВАШ ЛЮБИМЫЙ ЦВЕТ?😍 #game #shorts
00:17
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 63 МЛН
[Vowel]물고기는 물에서 살아야 해🐟🤣Fish have to live in the water #funny
00:53
The Ultimate .NET Version Guide
14:35
Claudio Bernasconi
Рет қаралды 18 М.
Is LEARNING WPF still WORTH it in 2023?
10:59
tutorialsEU
Рет қаралды 36 М.
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 871 М.
Gitlab DELETING Production Databases | Prime Reacts
17:27
ThePrimeTime
Рет қаралды 295 М.
Delegates in C# - A practical demonstration, including Action and Func
1:09:11
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН