asp.net core temp directory code example Example: .net core temp directory string result = Path.GetTempPath();