Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

System.IO.Path.GetRelativePath() missing in .NET Standard 2.0 #962

Closed
sam-piper opened this issue Nov 8, 2018 · 1 comment
Closed

System.IO.Path.GetRelativePath() missing in .NET Standard 2.0 #962

sam-piper opened this issue Nov 8, 2018 · 1 comment

Comments

@sam-piper
Copy link

If I create a new .NET Standard 2.0 Class Library project using Visual Studio 2017, I cannot use System.IO.GetRelativePath(), it's not available.

I tried adding a reference to System.Runtime.Extensions from NuGet, which contains the implementation, but it's still not available.

If I create a new .NET Core 2.1 class library then the method is available.

Is there a workaround for this issue? I can't change the project type.

@terrajobst terrajobst added this to the .NET Standard 2.1 milestone Nov 8, 2018
@terrajobst
Copy link
Member

terrajobst commented Nov 8, 2018

It will be included with .NET Standard 2.1. See #826.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants