This sample application will work on Ubuntu 18.04 or Windows. It's important to install the correct NuGet package, depending on which platform you're using.
Install .NET Core SDK on Ubuntu
sudo apt-get install scons libgsf-1-dev libssl-dev libsecret-1-dev freeglut3-dev libcpprest-dev libcurl3-dev uuid-dev
MSAL on Ubuntu, when authentication in a public client application, will use a browser to perform authentication. This requires the xdg-utils package.
sudo apt-get install xdg-utils
The Ubuntu package is a separate package from the Windows C++/.NET Package. In the project directory, add the package by running:
dotnet add package Microsoft.Extensions.Configuration
dotnet add packageMicrosoft.Extensions.Configuration.FileExtensions
dotnet add package Microsoft.Extensions.Configuration.Json
dotnet add package Microsoft.Extensions.DependencyInjection
dotnet add package microsoft.identity.client
dotnet add package Microsoft.InformationProtection.File.Ubuntu1804
If you've cloned the project, the packages will restore upon first build.
dotnet build --output ../bin/Debug
cd /bin/Debug/netcoreapp3.1