Forum Widgets
Latest Discussions
Versioning my Maui Android App
Previously the way to define version code for Android in Maui .csproj file was like this: <!-- Versions --> <ApplicationVersion>3.1.2</ApplicationVersion> <AndroidVersionCode>3</AndroidVersionCode> With the new release of Visual Studio Preview, this has changed to: <ApplicationVersion>3</ApplicationVersion> It works, from Visual Studio, I can bundle a new .aab package (see image below). We see the version code is defined to 3. Unfortunately the version is defined to 1.0.0 and I don't know how to change this. ...when imported on the Google Play Console, it look like this: Unfortunately, when imported I only see the versionCode 3 (which is defined in the .csproj file as ApplicationVersion). What about the versionName (in parentheses) ? Nothing is planned in the .csproj file ? When imported on the Google Play Console, I don't want to have 3 (1.0.0) but I want 3 (3.1.2)... https://developer.android.com/studio/publish/versioning versionCode — A positive integer used as an internal version number. versionName — A string used as the version number shown to users.BronzatoNov 30, 2021Copper Contributor27KViews0likes8Comments- SampsonYeNov 23, 2021Copper Contributor84KViews1like8Comments
Example code for Maui Shell
I am using the transition from Xamarin forms to Maui as an excuse to start using Shell as well. Since Shell has been in the Maui previews for a long time now, I thought it would be easy to get started. But the template does not have Shell as an option, and for some reason I haven't been able to find an example project despite extensive search. Can anyone point me to a simple example of a Maui Shell 'Hello World' app?SolvedJacob_PerssonNov 08, 2021Copper Contributor16KViews0likes8CommentsWhat 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!SolvedNickJ911Dec 28, 2021Copper Contributor11KViews1like7CommentsASMX web service client .NET 6 (IOS)
Hello, We need to migrate own Xamarin iOS application to .NET 6 iOS. But we can't call ASMX web services (available with Xamarin iOS). Web References is not available with visual studio for .NET 6 projects. We have only Connected Services but it's not supported. Have you an idea for that? Connected services will be supported? You will find more information here: https://docs.microsoft.com/en-us/answers/questions/689592/asmx-web-service-client-net-6-ios.html?childToView=692119jona-applJan 12, 2022Copper Contributor3.1KViews0likes6CommentsWPF: Project doesn't find its own Classes ("tag not found in namespace")
Hi there, I've got a problem that's driving me crazy: c# WPF Custom Controls Project (NET 7), Base Namespace "UserControls". All the controls, styles and Converters existing in the project are in that namespace (I tripple checked, it's the only namespace used). All the controls and Converters are public classes. In the project, there is a Class named "EqualityToBooleanConverter.cs" Additionally, there is a Style file called Button.xaml. I need to use the aforementioned converter here, so I am referencing it like this: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:UserControls;assembly=UserControls"> <local:EqualityToBooleanConverter x:Key="ETBConverter" /> Intellisense does find the Namespace "UserControls", in fact, the namespace declaration AND the ressource declaration was done using intellisense. BUT as soon as I compile the project, the following error pops up: MC3074 - type "EqualityToBooleanConverter" does not exist in "clr-namespace:UserControls;assembly=UserControls" I just don't get it, as I said, all the files are in the same project, and they are - as of now - all using the root namespace "UserControls". Everything is fine until I start compiling. What I have tried so far: removing the "assembly"-part of the namespace-declaration changing the compile target from AnyCPU to x86 and back cleaning the solution creating a new solution, and re-adding all the files to it Also noteworthy: The same problem occurs when I try using one of the Usercontrols in that project WITHIN the project itself (like: creating a Window.xaml, defining the local-namespace, and trying to add the control leads to the same error as soon as I compile). I don't know what else could cause this...does anyone have any idea?SneetsAug 09, 2023Copper Contributor4.4KViews2likes5CommentsSendKeys on the WinKeys button
I have looked at MS's list of available send keys on their site, but they don't seem to have one listed for the actual Windows Key. The only solution I found was.... SendKey.Send("^{ESC}") However, the key strokes to show the desktop is Winkey+D But, I can't seem to make using the ^{ESC} work with the letter "D" SendKey.Send("^{ESC}(d)") All I get is the Start menu popping up. So, exactly how do I simulate "Winkey+D" with SendKeys??? Any input will be greatly appreciatedPixel-InkJun 20, 2023Copper Contributor1.2KViews1like5CommentsHow do you add an image logo to the Title header of a ContentPage?
Right now, following James Montemagno's tutorials on .NET MAUI, the Title header of my content pages just consists of a text string, but I would like an image logo there. Any way to do it?Daniel_Donnelly_JrDec 05, 2022Copper Contributor4.3KViews1like5Comments
Resources
Tags
- .NET MAUI155 Topics
- Windows Forms63 Topics
- android55 Topics
- ios39 Topics
- Xamarin.Forms34 Topics
- Blazor32 Topics
- Console Apps30 Topics
- WPF30 Topics
- UWP18 Topics
- macos17 Topics