dotnet / dotnet/roslyn

Verify Path.IsPathRooted() Method Compatibility on Non-Windows Platforms

Open
#85,546 0 comments 1 reaction 0 assignees View on GitHub
Area-Razor
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

`Path.IsPathRooted()` does not seem to work correctly on platforms other than Windows. This complicates cross-platform compatibility.

## Expected Behavior:
- `Path.IsPathRooted()` should correctly determine if a path is rooted on all supported platforms.
- The method should throw an `ArgumentException` if the provided path is not rooted.

## Steps to Reproduce:
1. Use the` Path.IsPathRooted()` method with a non-rooted path on a non-Windows platform.
2. Observe that the method does not behave as expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.