Was looking for a way to get a standard folder for some #NuGetDefense features that's cross-platform. Environment.GetFolderPath() is one I wasn't aware of. It provides an enum of special folders such as ApplicationData which maps to the functionally similar directories on Linux and Windows.
https://learn.microsoft.com/en-us/dotnet/api/system.environment.getfolderpath?view=net-8.0
#nugetdefense #dotnet #crossplatformdev #linux #csharp