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).

Currently, there is no workaround for this issue. The recommendation is thus to edit the legacy code to not use these fields in the Path class even though they are right now available in the PCL version of the Path class.

Contribute to continued Shim development!

€10
€25
€50
Clone this wiki locally