# ASP.NET API - .NET 4.7.2 not .NET Core

**URL:** <https://community.auth0.com/t/asp-net-api-net-4-7-2-not-net-core/77748>\
**Category:** Get Help\
**Tags:** api\
**Created:** [February 5, 2022, 8:14pm UTC](https://community.auth0.com/t/asp-net-api-net-4-7-2-not-net-core/77748 "2022-02-05T20:14:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlkeith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rlkeith/32/35080_2.png) [@rlkeith](https://community.auth0.com/u/rlkeith)\
**Post date:** [February 5, 2022, 8:14pm UTC](https://community.auth0.com/t/asp-net-api-net-4-7-2-not-net-core/77748/1 "2022-02-05T20:14:16Z")

</div>

I am trying to authenticate a Xamarin app that works with an API running on .NET 4.7.2. The whole site uses Azure AD. I got most of it working to move to Auth0 but not the Xamarin app.

The only code sample is for .NET CORE. Specifically, it uses IApplicationBuilder and IHostingEnvironment which are not objects available in .NET other than .NET Core. It also uses a version of IServiceCollection specific to .NET Core.

Are there any code samples or guidance to enable to use a Xamarin app with this legacy API? It is even possible?

Thanks in advance,

Rob

---

<div class="post-metadata">

**Author:** ![rlkeith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rlkeith/32/35080_2.png) [@rlkeith](https://community.auth0.com/u/rlkeith)\
**Post date:** [February 8, 2022, 5:32pm UTC](https://community.auth0.com/t/asp-net-api-net-4-7-2-not-net-core/77748/2 "2022-02-08T17:32:46Z")

</div>

Don’t bother with this. I have rewritten my API. Now I have other problems.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 26, 2022, 2:30pm UTC](https://community.auth0.com/t/asp-net-api-net-4-7-2-not-net-core/77748/3 "2022-07-26T14:30:35Z")

</div>


