Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the GetFullPath(String, String) overload?

The documentation of the Path.GetFullPath(String) method contains the following text (emphasis mine):

Important

If path is a relative path, this overload returns a fully qualified path that can be based on the current drive and current directory. [...] To return a deterministic path, call the GetFullPath(String, String) overload. [...]

I checked the documentation and IntelliSense, and I just can't find a GetFullPath overload that takes two parameters (.net 4.8, full classic framework). Is this a documentation bug (and maybe they meant Path.Combine(String, String) instead?) or did I miss something?

like image 546
Heinzi Avatar asked Aug 23 '26 07:08

Heinzi


1 Answers

It was introduced in .NET Core 2.1 / .NET Standard 2.1. It seems that the docs website isn't clever enough to hide parts of the documentation which are only relevant to newer .NET versions.

See the docs for GetFullPath(String, String) here.

You can select which .NET Version to view the docs for in the top left:

Screenshot of learn.microsoft.com version selector

like image 167
canton7 Avatar answered Aug 24 '26 21:08

canton7



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!