If you are running a .NET Core application in a Linux container and want to access Windows Share (Network Share) that is secured with credentials, then you can use the below C# based solution.
I am just documenting all my research and learning that I did to build my concepts regarding the Unit Testing of a .NET Framework application in Visual Studio using various Test Frameworks. I would be glad if this learning will be useful for you as well.
Use the below syntax:
In this article, we will understand, how can we read the
appsettings.json file in ASP.NET Core 3.1.