Skip to content
Anders Gustafsson edited this page Apr 15, 2015 · 3 revisions

Fields in System.IO.Path

In the upcoming version 2, the ShimPath class is being deprecated since the PCL profile 328 does not contain the System.IO.Path class.

Since the Path class is missing from PCL profile 328 but is available on all individual platform targets, the class can now be added to the PCL Shim project and referenced with a TypeForwardedTo declaration on the individual platform projects.

One complication with this change is that not all Path members are available on all targets. In particular, the PathSeparator and DirectorySeparatorChar fields are not defined on Windows 8+ and Windows Phone 8.1 (non-Silverlight).

The plan to resolve this issue is to re-introduce a Shim class denoted System.IO.Path_, and move the PathSeparator and DirectorySeparatorChar fields to the Shim class.

Contribute to continued Shim development!

€10
€25
€50
Clone this wiki locally