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

**URL:** <https://community.dynatrace.com/t/the-start-method-for-oneagent-is-not-valid-in-net6-xamarin-ios-project/44316>\
**Category:** Real User Monitoring\
**Tags:** mobile-monitoring\
**Created:** [February 26, 2024, 4:41pm UTC](https://community.dynatrace.com/t/the-start-method-for-oneagent-is-not-valid-in-net6-xamarin-ios-project/44316 "2024-02-26T16:41:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DinuDivakaran](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DinuDivakaran](https://community.dynatrace.com/u/DinuDivakaran)\
**Post date:** [February 26, 2024, 4:41pm UTC](https://community.dynatrace.com/t/the-start-method-for-oneagent-is-not-valid-in-net6-xamarin-ios-project/44316/1 "2024-02-26T16:41:41Z")

</div>

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&nbsp;[Dynatrace.OneAgent.Xamarin](https://www.nuget.org/packages/Dynatrace.OneAgent.Xamarin)&nbsp;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](https://global.discourse-cdn.com/dynatrace/original/2X/e/eb5d78fcefb433aed52f877b7d2746a4c9e2de50.png)

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

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [February 29, 2024, 10:40am UTC](https://community.dynatrace.com/t/the-start-method-for-oneagent-is-not-valid-in-net6-xamarin-ios-project/44316/2 "2024-02-29T10:40:20Z")

</div>

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).
