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

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…

Contents