cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The start method for OneAgent is not valid in .Net6 Xamarin.iOS project

DinuDivakaran
Newcomer

I have migrated my Xamarin.iOS project to .Net6 Xamarin.iOS
I'm trying to integrate Dynatrace in to my Xamarin.iOS .Net6 application.

According to the document for Xamarin, I installed Dynatrace.OneAgent.Xamarin package, add the config file into my project, and input the code into AppDelegate.cs file in "FinishedLaunching()"

Then I rebuild my project, and I got following error:
The name 'Agent' does not exist in the current context

Screenshot 2024-02-26 at 9.51.48 PM.png

Which nuget version of Dynatrace is supporting .Net6 Xamarin.iOS applications ?

1 REPLY 1

matthias_hochri
Dynatrace Pro
Dynatrace Pro

So you are using Xamarin with NET6.0? Just to clarify for us, so we can have a detailed look/understanding. Could you please try to use version 1.279.1 of MAUI package. It contains NET6.0 and we believe this might solve your case. I am specifying 279 now as 283 is missing NET6 because of supportability reasons (If your use case turns out to be true, we will readd this for 285).

Featured Posts