microsoft-identity-web icon indicating copy to clipboard operation
microsoft-identity-web copied to clipboard

[Bug] unclear support for Net Framework, code excluded from compile

Open willportnoy opened this issue 3 years ago • 4 comments

Most of the entry points (e.g. AddMicrosoftIdentityWebAppAuthentication) seem to be excluded from the Net Framework compilation of this library:

https://github.com/AzureAD/microsoft-identity-web/blob/master/src/Microsoft.Identity.Web/Microsoft.Identity.Web.csproj#L112

Is this library usable within Net Framework?

It seems to be a NuGet target framework:

https://www.nuget.org/packages/Microsoft.Identity.Web/1.21.1

and issues imply "yes":

https://github.com/AzureAD/microsoft-identity-web/issues/1086

willportnoy avatar Jan 05 '22 17:01 willportnoy

@willportnoy : Microsoft.Identity.Web has limited support for .NET Framework as explained in: Minimal support for .NET FW Classic

We have a goal of providing the full experience for .NET framework, but, to be honest, this is not the highest priority, given ASP.NET FW is in maintenance mode (wheareas a lot of innovation happens in ASP.NET for .NET Core / .NET 5.0, .NET 6.0, .NET 7.0.

Where would you apply AddMicrosoftIdentityWebAppAuthentication in an ASP.NET application? On the app builder?

jmprieur avatar Jan 05 '22 17:01 jmprieur

@jmprieur I'm using ASP.NET Core with Net Framework.

ASP.Net Core (web framework) is packaged as Net Standard (library format) and can be used in Net Framework (runtime environment).

Moving our runtime environment from Net Framework to Net Core requires a substantial effort e.g. all library dependencies have to be available as netstandard or netcore.

willportnoy avatar Jan 05 '22 19:01 willportnoy

@willportnoy do you have an example of code that I could see? It's pretty old ... and I don't think dotnet new, or Visual Studio create these projects any longer.

jmprieur avatar Jan 05 '22 21:01 jmprieur

I followed up offline, to share source code of an ASP.NET Core web app running on Net Framework runtime.

willportnoy avatar Jan 28 '22 20:01 willportnoy

What was the resolution on this? I am running into this right now and would really like to be able to use AddMicrosoftIdentityWebApi.

celluj34 avatar Sep 08 '22 17:09 celluj34