Platform-independent directory

211 views Asked by At

Does ASP.NET Core offer any platform-independent way to access standard paths, such as where data or configure files are supposed to be saved? Modules such as Qt's QStandardPaths are very helpful to prepare Qt applications to be deployed in a platform-independent way, but unfortunately I haven't found any similar service in ASP.NET Core. Does anyone know if anything like that exists in the .Net core or ASP.NET Core platforms?

1

There are 1 answers

0
Tom Deseyn On BEST ANSWER

You can use Environment.GetFolderPath.

This blog post provides more info on how the API behaves cross-platform.