'Unable to configure Microsoft Identity Platform while publishing .Net Core 3.1.4 project + VS 2022 + Azure

I have a .net core 3.1 project. The project has a dependency on Microsoft Identity Platform and SQL Server.

While publishing the project to Azure. I am not able to configure the Microsoft Identity Platform. It gives below Error window.

enter image description here

I am able to configure SQL Server dependency but not sure why it is not able to configure Identity Platform.

I am using

  • .Net core 3.1.4
  • Visual Studio Community Edition 2022
  • Asp.net core Identity Entity Framework 3.1.4

Any idea?



Solution 1:[1]

Because you didn't install the dotnet-msidentity tool.

You can try to open the cmd black window and execute this command following this document.

dotnet tool install Microsoft.dotnet-msidentity -g --version "1.0.0-preview.1.21212.1"

This command will solve your issue. But then you will meet another issue like screenshot below if your account has multiple tenant.

enter image description here

Someone met this issue too and raised a ticket to ms.

You may search for known issues here if you meet some other weird questions when using vs2022.

Solution 2:[2]

dotnet tool uninstall --global Microsoft.dotnet-msidentity

dotnet tool install Microsoft.dotnet-msidentity -g --version "1.0.2"

worked for me

if you have nuget problems make sure you habe a nuget.config in the directory you are running the command

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tiny Wang
Solution 2 Michael Kugler