xamarin How to Hot Update Mono.Android? - xamarin

The system loads the mono after the link is removed by default, and some code is currently reloaded. Using Assembly.load returns the default and cannot be updated
By byte [] load two mono references will appear but the application cannot find new references

You could change the Target Framework to update the Mono.Android version.

Related

Fast report 4 Property DataOnly does not exist?

I have a problem with Fast Report 4 component in Delphi 7.
I tried to recompile but it did not work.
Anyone know what is this problem and how to solve it?
The message means that in a DFM file, there is a component named frxPDFExport which has a property named DataOnly but the actual component installed in the IDE lacks that property.
This happens when a form or frame or datamodule has been created when a different version of the component was installed compared to the installed version when you reopen the form, frame of datamodule.
To solve the issue, you have to cancel this error message and you have to install the same component version, then reload the file.
You can also ignore the message and that property won't be loaded. Surely you have to update the code and other property values to accommodate with the different component version.

MVVMCross Problem with adding new ContentPage

Could you tell me what I am doing wrong? I've downloaded and installed extension MVVMCross available on https://www.mvvmcross.com/. I've installed it using Tools/Extensions and Updates in VisualStudio 2017 environment. When I created new MVVMCross Multi-Page Xamarin Forms Application then for two existing pages, all works perfectly.
I next needed to add ContentPage, but I have a problem since my new Xamarin Forms ContentPage is not correct: file *.cs is visible in my solution but *.xaml is hidden.
The version of MVVMCross and MVVMCross.binding (core, forms, platform) are 5.2.1 and Xamarin.Forms is 2.3.4.270 and Xamarin.Essentials is 1.5.2.
Could anyone explain to me why I can't add a new page? Thank you in advance.
All steps attached as screens...
Yes Lucas Zhang - MSFT, you may be right. It looks like a problem with version of Xamarin.Forms or MVVMCross. I'm not sure what more? I had version 15.7.xx of VS2017. After creating new MVVMCross Multi-Page Xamarin.Forms application I have versions: MVVMCross (all libraries) 5.2.1, Xamarin.Forms 2.3.4.270. Then I've not got any errors but I couldn't add new ContentPage.
Below all my steps which I made myself to resolve this problem:
I've installed VS2019 too, but it has not resolved the problem.
I've updated Xamarin.Forms to the latest stable version 4.6.0.726 but I had on both version of VS the same problem after updating:
Error NETSDK1022 Duplicate 'EmbeddedResource' items were included. The .NET SDK includes 'EmbeddedResource' items from your project directory by default.
I've read the article on Stack Overflow about this but I couldn't fix the problem.
But then it was possible to add correct new ContentPage.
In my opinion, the best solution is to update Xamarin.Forms and fix the problem with Duplicate Resource. If you know what to do for this, tell me please.
Finally, I've back to my old version of VS2017 and I've updated it to the latest version 15.9.22. Now, I can create ContentPage and application works but from my point of view doesn't work perfectly. I can add picture to this comment but in my Solution after adding new Page I have two separate files in Page folder: *xaml, *.cs. They don't have connection like other pages (like on the screen below). But it works.
I think if I update Xamarin.Forms and I fix Duplicate Resource problem, It will work perfectly.
I had a lot of problem after updating Xamarin.Forms therefore I've returned and I've installed update of VS2017.
It would be perfect to describe how we can fix similar problems :-)

How to handle Namespace collisions when using TreeView in UWP apps

An exception is thrown when setting "ItemContainerStyle" to "StaticResource TreeViewItemStyle" which is defined in generic.xaml. The message indicates the style is using "Windows.UI.Xaml.Controls.TreeViewItem" rather than "Microsoft.UI.Xaml.Controls.TreeViewItem".
I removed ItemContainerStyle assignment to confirm that it is the line causing the exception.
<ControlTemplate TargetType="muxcontrols:TreeView">
<muxcontrols:TreeViewList x:Name="ListControl"
ItemTemplate="{StaticResource TreeViewItemDataTemplate}"
ItemContainerStyle="{StaticResource TreeViewItemStyle}">
The problem seems obvious, but a proper solution evades me. To leverage the style, do I start prepending "muxcontrols:" in the generic.xaml file? This seems like a bad idea. Do I need to recreate the style and behaviors separately?
I tried (min build 17763 and target build 17134) to eliminate version problems, but it seems I need 17763 for both. Even though, I am not setting ItemsSource. I'm trying the technique used in the docs: "learn.microsoft.com/en-us/windows/uwp/design/…" for the Music Library TreeView sample. My real project's min version is 16299.
So, the issue was clear. The TreeView control is introduced from build 17134. If you're using the platform APIs, you need to make sure that your project's target version is 17134 or higher. Since you said you want to set ItemsSource. ItemsSource and its related APIs require Windows 10, version 1809 (SDK 17763) or later, so you need to make your project's target version is 17763.
Then, you could directly use the TreeView control like the following:
<TreeView></TreeView>
If you're using Windows UI Library APIs, you need to follow the Getting started with the Windows UI Library
document to download and install the Windows UI Library. Please note:
Important: To use WinUI 2.1, your project’s Min version must be 14393 or higher and the Target version must be 17763 or higher.
Then, if you want to use the TreeView control in WinUI library, in your XAML page, add a reference at the top of your page
xmlns:controls="using:Microsoft.UI.Xaml.Controls"
On the XAML page, you could directly input the following:
<controls:TreeView></controls:TreeView>

Xamarin Embedded content contains Swift code

I have created binding library successfully, it is initialized properly in Xamarin.iOS app, but at specific point, the app is crashing.
I tried to implement the same on XCode, it is crashing also, but the issue has been fixed by enabling the option Embedded content contains Swift Code = true as per this answer.
So How to enable same option in Xamarin?
The use of Swift frameworks and inclusion of the Swift support libs are not officially supported in the Xamarin build process and thus you have to manually bundle the relevant Swift support libraries into your Xamarin.iOS app.
Note: You have to make sure you include the correct version of those libraries.
User Flash3001 on Github has created Nugets/packages for the Swift frameworks
https://github.com/Flash3001/Xamarin.Swift3.Support
Swift 4
Libraries:
https://www.nuget.org/packages/Xamarin.Swift4.Accelerate/
https://www.nuget.org/packages/Xamarin.Swift4.ARKit/
https://www.nuget.org/packages/Xamarin.Swift4.AssetsLibrary/
https://www.nuget.org/packages/Xamarin.Swift4.AVFoundation/
https://www.nuget.org/packages/Xamarin.Swift4.CallKit/
https://www.nuget.org/packages/Xamarin.Swift4.CloudKit/
https://www.nuget.org/packages/Xamarin.Swift4.Contacts/
https://www.nuget.org/packages/Xamarin.Swift4.Core/
https://www.nuget.org/packages/Xamarin.Swift4.CoreAudio/
https://www.nuget.org/packages/Xamarin.Swift4.CoreData/
https://www.nuget.org/packages/Xamarin.Swift4.CoreFoundation/
https://www.nuget.org/packages/Xamarin.Swift4.CoreGraphics/
https://www.nuget.org/packages/Xamarin.Swift4.CoreImage/
https://www.nuget.org/packages/Xamarin.Swift4.CoreLocation/
https://www.nuget.org/packages/Xamarin.Swift4.CoreMedia/
https://www.nuget.org/packages/Xamarin.Swift4.Darwin/
https://www.nuget.org/packages/Xamarin.Swift4.Dispatch/
https://www.nuget.org/packages/Xamarin.Swift4.Foundation/
https://www.nuget.org/packages/Xamarin.Swift4.GameplayKit/
https://www.nuget.org/packages/Xamarin.Swift4.GLKit/
https://www.nuget.org/packages/Xamarin.Swift4.HomeKit/
https://www.nuget.org/packages/Xamarin.Swift4.MapKit/
https://www.nuget.org/packages/Xamarin.Swift4.MediaPlayer/
https://www.nuget.org/packages/Xamarin.Swift4.Metal/
https://www.nuget.org/packages/Xamarin.Swift4.MetalKit/
https://www.nuget.org/packages/Xamarin.Swift4.ModelIO/
https://www.nuget.org/packages/Xamarin.Swift4.Intents/
https://www.nuget.org/packages/Xamarin.Swift4.ObjectiveC/
https://www.nuget.org/packages/Xamarin.Swift4.OS/
https://www.nuget.org/packages/Xamarin.Swift4.Photos/
https://www.nuget.org/packages/Xamarin.Swift4.QuartzCore/
https://www.nuget.org/packages/Xamarin.Swift4.RemoteMirror/
https://www.nuget.org/packages/Xamarin.Swift4.SceneKit/
https://www.nuget.org/packages/Xamarin.Swift4.SIMD/
https://www.nuget.org/packages/Xamarin.Swift4.SpriteKit/
https://www.nuget.org/packages/Xamarin.Swift4.SwiftOnoneSupport/
https://www.nuget.org/packages/Xamarin.Swift4.UIKit/
https://www.nuget.org/packages/Xamarin.Swift4.Vision/
https://www.nuget.org/packages/Xamarin.Swift4.WatchKit/
https://www.nuget.org/packages/Xamarin.Swift4.XCTest/
Swift 3
https://www.nuget.org/packages/Xamarin.Swift3.AssetsLibrary/
https://www.nuget.org/packages/Xamarin.Swift3.AVFoundation/
https://www.nuget.org/packages/Xamarin.Swift3.CallKit/
https://www.nuget.org/packages/Xamarin.Swift3.CloudKit/
https://www.nuget.org/packages/Xamarin.Swift3.Contacts/
https://www.nuget.org/packages/Xamarin.Swift3.Core/
https://www.nuget.org/packages/Xamarin.Swift3.CoreAudio/
https://www.nuget.org/packages/Xamarin.Swift3.CoreData/
https://www.nuget.org/packages/Xamarin.Swift3.CoreGraphics/
https://www.nuget.org/packages/Xamarin.Swift3.CoreImage/
https://www.nuget.org/packages/Xamarin.Swift3.CoreLocation/
https://www.nuget.org/packages/Xamarin.Swift3.CoreMedia/
https://www.nuget.org/packages/Xamarin.Swift3.Darwin/
https://www.nuget.org/packages/Xamarin.Swift3.Dispatch/
https://www.nuget.org/packages/Xamarin.Swift3.Foundation/
https://www.nuget.org/packages/Xamarin.Swift3.GameplayKit/
https://www.nuget.org/packages/Xamarin.Swift3.GLKit/
https://www.nuget.org/packages/Xamarin.Swift3.HomeKit/
https://www.nuget.org/packages/Xamarin.Swift3.MapKit/
https://www.nuget.org/packages/Xamarin.Swift3.Intents/
https://www.nuget.org/packages/Xamarin.Swift3.ObjectiveC/
https://www.nuget.org/packages/Xamarin.Swift3.OS/
https://www.nuget.org/packages/Xamarin.Swift3.Photos/
https://www.nuget.org/packages/Xamarin.Swift3.QuartzCore/
https://www.nuget.org/packages/Xamarin.Swift3.RemoteMirror/
https://www.nuget.org/packages/Xamarin.Swift3.SceneKit/
https://www.nuget.org/packages/Xamarin.Swift3.SIMD/
https://www.nuget.org/packages/Xamarin.Swift3.SpriteKit/
https://www.nuget.org/packages/Xamarin.Swift3.SwiftOnoneSupport/
https://www.nuget.org/packages/Xamarin.Swift3.UIKit/
https://www.nuget.org/packages/Xamarin.Swift3.WatchKit/
https://www.nuget.org/packages/Xamarin.Swift3.XCTest/

Core Data in XCode 5 - installing manually and how?

It seems like that in the new version of XCode, Core Data is something i have to install manually. The check box that used to be there when i create a new project is gone.
I've searched to the end of the internet, finding no answer that seems to work in the new version of XCode. Can someone confirm my problem, and does someone have a solution for it? Thanks in advance.
Core Data checkbox is not available in all type of projects. If you try to create an empty project, the "Use core data" checkbox is still there (this was the same in xcode 4).
You can add core data manually by following this tutorial:
http://wiresareobsolete.com/wordpress/2009/12/adding-core-data-existing-iphone-projects/
you could create a new master-detail Xcode project (check the 'use core data' checkbox when creating) and just copy the code from there.
this is particularly helpful when combined with:
http://wiresareobsolete.com/2009/12/adding-core-data-existing-iphone-projects/

Resources