uwp
18 TopicsUnique Device Identifier in MAUI
I am looking for a way to get a device identifier in NET MAUI that is cross platform compliant between Android/iOS/Windows. I originally had this code working in Xamarin Forms with the following: Android Context context = Application.Context; id = Settings.Secure.GetString(context.ContentResolver, Settings.Secure.AndroidId); iOS UIDevice.CurrentDevice.IdentifierForVendor.AsString().Replace("-", ""); Is there anything currently or planned in the future for use in NET MAUI. Thanks In Advance, Stuart Ferguson12KViews3likes1CommentWhat platform/technology/framework to use. I am lost. :-(
Hi everyone, I want to develop a new application that will run on Windows (desktop app) and android. I have about 30y of experience in development and the last 15 in C#/VS/.NET. At work we work with Winforms/WPF and .NET 4.8. For my personal new product I would like to start with all the latest and greatest but it's hard to find what to use. First of all I upgraded to VS 2022. I've been reading about .NET5/6, Xamarin, Xamarin Forms, .NET MAUI, Win UI, Winforms, WPF, UWP, Blazor, .NET Core, .NET Standard,.... but it's a mess to get an overview of what would fit best. The project would have 1 or 2 core assembly's with the logic and then a UI for Windows and one for Android. So before I start I would like to get an idea of what you would use. Thanks!Solved12KViews1like7CommentsOS versions Supported in dotnet maui
These are the tags used for defining OS version supported by maui app: <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">15.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">15.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">31.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.19041.0</SupportedOSPlatformVersion> <TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion> But how to define min version and target android version on Android in csproj file. The min version is only defined for windows over here. But not for iOS, Android and Mac. Can someone please explain these lines and how to set the values correctly for each OS.2.7KViews0likes0Commentshow does MAUI handle cross-platform gesture recognition
specifically how is it implemented for each platform and where can i find the code for each platform in regards to this gesture recognition for example, for MacOS i assume there would be some custom NSView implementation with overrides for the following TouchesBeganWithEvent TouchesMovedWithEvent TouchesEndedWithEvent TouchesCancelledWithEvent and for android i assume there would be similar with custom View implementation and OnTouchEvent method override i do not know for windows nor linux as i have not experimented with those platforms yet specifically i assume the gesture API MAUI provides is truely cross-platform and has no platform-dependant behavioural differences (with some exceptions for certain gestures for example a mouse or stylus CANNOT perform a two-finger scroll gesture however would be implemented via the scroll-wheel if present on the mouse on a mobile-device a two-finger scroll gesture does not make sense since it is usually just one finger for scrolling on a trackpad two-finger scrolling makes sense however regardless of HOW it is implemented, the api would provide a platform-independant way of tracking how much the user has scrolled, possibly accounting for some sensitivity setting the user can modify at will similar to pointer-acceleration settings for large and small monitors and high dpi and low dpi monitors2.6KViews0likes2CommentsMigrate UWP App to MAUI Windows: Error after update with MSIX
I currently have a Xamarin Forms UWP App in the Microsoft Store. In the next months I want to update it to MAUI. For testing purposes and ensuring that all stored data are still available within the app, I want to simulate the Update of the Xamarin Forms app to MAUI with side loading for Windows. After installing the MAUI-msix-Update, an error appears: Is this a general problem or do I have a specific issue in my manifest? Sample app: https://github.com/reinhardlackner/SampleUpdateMauiApp Debugging is working correctly (I can start the UWP-App "SampleUpdateApp.UWP" in Debug mode... and after closing it I can start the MAUI-App "SampleNewUpdatedApp") - and the saved click-data from the UWP app are shown in the MAUI app: Sideloading-Update does not work: a) SampleUpdateApp.UWP - Right click => Publish... Sideloading Use test certificate Install UWP app appxbundle-file App opens => OK b) Install MAUI App as Update SampleNewUpdatedApp - Right click => Publish... Sideloading Use same certificate Create MSIX x86 publishing profile and version is 1.0.1 (update of Xamarin 1.0.0) Start created msix-Package and click on Update: Error message is shown: App installation failed with error message: Deployment Add operation with target volume C: on Package E965F79B-76C7-47E0-8308-4A503105EDE0_1.0.1.0_x86__ab06nvn9z6x6m from: (SampleNewUpdatedApp_1.0.1.0_x86.msix) failed with error 0x80073CF3. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. (0x80073cf3) If the Xamarin app was not installed before, the MAUI App can be installed correctly: Does anybody have an idea why the update installation is not possible? I assume it could be related with the Manifest-File... Manifest UWP: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleUpdateApp.UWP/Package.appxmanifest Manifest MAUI: https://github.com/reinhardlackner/SampleUpdateMauiApp/blob/master/SampleNewUpdatedApp/Platforms/Windows/Package.appxmanifest2.6KViews0likes2CommentsSource code of .NET Podcasts Sample app
The .NET podcasts is used as sample repo in .NET Conf 2021. I tried to find it's source code but cannot find any link to it. If anyone can, please share the link to the .NET Podcasts source code. As far as I know it is open sourced and is available in public domain.Solved2.2KViews0likes2CommentsMAUI XAML "in-app toolbar" / "xaml inspector" no longer visible
Sorry for using some made up term but I have no idea what this little menu is called. So I referred to it as "xaml Inspector" I have 2 systems opening the same project, one is 17.3 preview 6 and the other is 17.3.2. On the preview version I can see this menu when I debug my MAUI app in Windows. I cannot see it on the 17.3.2 release, which seems to also be part of a wider debugging issue that I'm experiencing. Any idea how to fix this? Maybe I have changed a setting somewhere but am not aware of what. Thanks in advance!Solved1.6KViews1like2CommentsAny options to decrease the Portable Library (DLL) Size while compiling
What is the best way to decrease the DLL size while compiling as .Netstandard portable library. I am developing an Xamarin application, where I have .Netstandard libraries referred to the UWP project as Library reference. Size of DLL is getting increased drastically and it is causing lot of issues. Is there a best way to decrease the size while compiling or after compiling? Currently I am using dotnet build/ pack in azure Devops to generate the DLL Thanks in advance for any suggestions1.4KViews0likes0CommentsIssue with unexpected capability Microsoft.storeFilter.core.notSupported_8wekyb3d8bbwe
Dear comunity, we are preparing an update of our app on the Microsoft partner Center portal. After uploading the new “.appxupload” package, in addition to the capabilities we defined in the app manifest, we also find the following capability: "Microsoft.storeFilter.core.notSupported_8wekyb3d8bbwe" We tried to execute again the app build, also verifying the app manifest, but we still obtain such extra capability that seems to be added after the upload of “.appxupload” package. We also tried to search in the Web for it, but we didn’t get any clarification. Can you please provide us clarifications about such extra capability? Can be an issue during review phase for the app we have to release? Thank you in advance, Kind regards,Solved1.3KViews0likes2Comments关于Microsoft Defender对VisualBasic.Net编写的软件报毒问题
大家好,我之前使用VS2019写过 VB.net 程序,该程序使用了Winform框架,除了导入了system.data.sqlite之外,其余任何组件都是使用的winform自带的组件,没有使用第三方库,并且仅仅只是一个数据库查询以及创建窗体的功能,将它编译好后,在打开时Microsoft Defender对其报毒(Trojan.xxx.A.xx)了,并且它不是每次打开都会报毒,是偶尔报一次毒,这对我的体验很不好,我无法找到它报毒的原因,请问这应该怎么解决?或者说我在写代码时应该注意什么以避免此问题。期待收到大家的回复,非常感谢999Views1like0Comments