Skip to content

Commit a4ccb5c

Browse files
sclarsonmairaw
andcommitted
Add note for differences on unix (#3268)
* Note the differences for Unix GetTempPath The current documentation leads people who are developing on windows and deploying on unix down the wrong path. * Referencing mono is unnecessary information. * edits Co-authored-by: Maira Wenzel <[email protected]>
1 parent 757d02f commit a4ccb5c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

xml/System.IO/Path.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,17 +1778,23 @@ Paths are resolved by calling the <xref:System.IO.Path.GetFullPath%2A> method be
17781778
17791779
## Remarks
17801780
This method checks for the existence of environment variables in the following order and uses the first path found:
1781-
1782-
1. The path specified by the TMP environment variable.
1781+
1782+
# [Windows](#tab/windows)
1783+
1784+
1. The path specified by the TMP environment variable.
17831785
17841786
2. The path specified by the TEMP environment variable.
17851787
17861788
3. The path specified by the USERPROFILE environment variable.
17871789
17881790
4. The Windows directory.
1789-
1790-
1791-
1791+
1792+
# [Linux](#tab/linux)
1793+
1794+
1. The path specified by the TMPDIR environment variable.
1795+
1796+
---
1797+
17921798
## Examples
17931799
The following code shows how to call the <xref:System.IO.Path.GetTempPath%2A> method.
17941800

0 commit comments

Comments
 (0)