Merge branch 'fix/programdata-path' of Common/Utils into ConnectPro_v1.4

This commit is contained in:
Chris Cameron
2019-09-09 19:33:32 +00:00
committed by Gogs
2 changed files with 5 additions and 2 deletions

View File

@@ -5,13 +5,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Added ### Added
- Added a method for converting 24 hour to 12 hour format - Added a method for converting 24 hour to 12 hour format
- Added a method for determining if a culture uses 24 hour format - Added a method for determining if a culture uses 24 hour format
- Added math util method for mod - Added math util method for mod
- Added TimeSpan extension methods for cycling hours and minutes without modifying the day - Added TimeSpan extension methods for cycling hours and minutes without modifying the day
### Changed
- The Root Config path in Net Standard will now be the ICD.Connect folder in the current environments ProgramData directory
## [9.8.0] - 2019-09-03 ## [9.8.0] - 2019-09-03
### Added ### Added
- Added Public API Properties to get the program install date based on the creation date of core dll file for NetStandard and SimplSharp - Added Public API Properties to get the program install date based on the creation date of core dll file for NetStandard and SimplSharp

View File

@@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO;
using System.Linq; using System.Linq;
using ICD.Common.Properties; using ICD.Common.Properties;
using ICD.Common.Utils.Extensions; using ICD.Common.Utils.Extensions;
@@ -48,7 +49,7 @@ namespace ICD.Common.Utils
#elif LINUX #elif LINUX
return Join(RootPath, "opt", "ICD.Connect"); return Join(RootPath, "opt", "ICD.Connect");
#else #else
return Join(RootPath, "ProgramData", "ICD.Connect"); return Join(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "ICD.Connect");
#endif #endif
} }
} }