This page shows the example
BrokerOptions options = new BrokerOptions(BrokerOptions.OperatingSystems.Windows);
options.Title = "My Awesome Application";
IPublicClientApplication app =
PublicClientApplicationBuilder.Create("YOUR_CLIENT_ID")
.WithDefaultRedirectUri()
.WithParentActivityOrWindow(GetConsoleOrTerminalWindow)
.WithBroker(options)
.Build();
in code however
the .WithBroker line
Severity Code Description Project File Line Suppression State Details
Error CS1503 Argument 1: cannot convert from 'Microsoft.Identity.Client.BrokerOptions' to 'bool'
Changing that to a bool however
Severity Code Description Project File Line Suppression State Details
Error CS0619 'PublicClientApplicationBuilder.WithBroker(bool)' is obsolete: 'The desktop broker is not directly available in the MSAL package. Install the NuGet package Microsoft.Identity.Client.Broker and call the extension method .WithBroker(BrokerOptions). For details, see https://aka.ms/msal-net-wam'
The package Microsoft.Identity.Client & Microsoft.Identity.Client.Broker (vers 4.61.2) are installed. The link shown is this page in a circular reference with no resolve.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
This page shows the example
BrokerOptions options = new BrokerOptions(BrokerOptions.OperatingSystems.Windows);
options.Title = "My Awesome Application";
IPublicClientApplication app =
PublicClientApplicationBuilder.Create("YOUR_CLIENT_ID")
.WithDefaultRedirectUri()
.WithParentActivityOrWindow(GetConsoleOrTerminalWindow)
.WithBroker(options)
.Build();
in code however
the .WithBroker line
Severity Code Description Project File Line Suppression State Details
Error CS1503 Argument 1: cannot convert from 'Microsoft.Identity.Client.BrokerOptions' to 'bool'
Changing that to a bool however
Severity Code Description Project File Line Suppression State Details
Error CS0619 'PublicClientApplicationBuilder.WithBroker(bool)' is obsolete: 'The desktop broker is not directly available in the MSAL package. Install the NuGet package Microsoft.Identity.Client.Broker and call the extension method .WithBroker(BrokerOptions). For details, see https://aka.ms/msal-net-wam'
The package Microsoft.Identity.Client & Microsoft.Identity.Client.Broker (vers 4.61.2) are installed. The link shown is this page in a circular reference with no resolve.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.