I am currently doing the Create .NET Core console application challenge. I am using v5.0.102 of the .NET 5 SDK.
Below is the process for adding a Graph Console App -
Step 2 adding a package creates the following process and error as below. When I add a version no it gives another
error: NU1101: Unable to find package Microsoft.Identity.Client. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages
error: Package 'Microsoft.Identity.Client' is incompatible with 'all' frameworks in project.
c:\LearnMS365>dotnet new console -o graphconsoleapp
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on graphconsoleapp\graphconsoleapp.csproj...
Determining projects to restore...
Restored c:\LearnMS365\graphconsoleapp\graphconsoleapp.csproj (in 94 ms).
Restore succeeded.
c:\LearnMS365>cd graphconsoleapp
c:\LearnMS365\graphconsoleapp>dotnet add package Microsoft.Identity.Client
Determining projects to restore...
Writing C:\Users\Admin\AppData\Local\Temp\tmp6B87.tmp
info : Adding PackageReference for package 'Microsoft.Identity.Client' into project 'c:\LearnMS365\graphconsoleapp\graphconsoleapp.csproj'.
error: There are no versions available for the package 'Microsoft.Identity.Client'.