From the course: .NET MAUI Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Solution: Add Windows service - .NET MAUI Tutorial
From the course: .NET MAUI Essential Training
Solution: Add Windows service
(upbeat synth music) - [Matt] For our challenge, first thing I would do is come up and do my using statement for Microsoft Maui devices and then I can come down into this method and for my version, I can use device Info. I can get the version and I'll just get the version string here, and then we'll go ahead and run that on iOS and see what that gives us. As you can see, using those essentials is very simple. I add in the name space and I use that interface to get access to that cross platform implementation with just one call. So however that library goes about getting the version information, that's going to be the result that I get back. Our application comes up, we go to the settings. We could see for this implementation, they brought back 15.4, so they got that version number back, whereas I was getting the version name, or the operating system name instead of the version before. So we have that 15.4. And now…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Defining a platform-neutral service5m 26s
-
(Locked)
Creating the Android service3m 4s
-
(Locked)
Creating the iOS service3m 45s
-
(Locked)
Using the Essentials library5m 11s
-
(Locked)
Additional Essentials3m 31s
-
(Locked)
Configuring Essentials3m 31s
-
(Locked)
Challenge: Add Windows service47s
-
(Locked)
Solution: Add Windows service1m 40s
-
(Locked)
-