You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before August, we should decide what APIs within the System.Management.Automation.Platform class (CorePsPlatform.cs) to expose publiclly, as the class itself needs to become public to unblock #1174. This will involve a refactor and clean-up of the class and the platform changes originally made during the port to Linux / OS X, which is intrinsically part of our diff review process.
Proposed public APIs:
IsLinux
IsOSX
IsWindows
IsCore
GetLocation(enum DataType) (a refactor of the XDG BDS selector)
APIs have been resolved. We're going out with the IsLinux, IsWindows, IsOSX, and IsCoreCLR, plus the GetLocation function. The "feature queries" have all been removed.
Activity
andyleejordan commentedon Jun 28, 2016
/cc Jason Shirk (@lzybkr) sergei (@vors) James Truher (@JamesWTruher)
lzybkr commentedon Jun 28, 2016
I suggest s/IsLinux/IsUnix/ and s/IsCore/IsCoreClr/
And XDG seems like it probably belongs in it's own class, not Platform.
andyleejordan commentedon Jun 28, 2016
Sounds just fine to me.
XDG BDS is a Unix platform specific thing. However, we have two approaches:
Either way, it probably makes sense to have a class for location logic.
andyleejordan commentedon Jul 5, 2016
I believe that #1280 is related to this.
HemantMahawar commentedon Jul 14, 2016
Per today's discussion, agreed to revisit this for initial release
andyleejordan commentedon Jul 15, 2016
I would actually not replace
IsLinuxwithIsUnixconsidering there is anIsOSX, andUNIXimplies (because of .NET Core)IsLinux || IsOSX.andyleejordan commentedon Jul 26, 2016
APIs have been resolved. We're going out with the IsLinux, IsWindows, IsOSX, and IsCoreCLR, plus the GetLocation function. The "feature queries" have all been removed.