Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Runfiles library compatible with .NET Standard 2.0 #383

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

jimevans
Copy link
Contributor

This commit attemps to make the Runfiles library compatible with .NET Standard 2.0 instead of .NET Standard 2.1. The requirement for 2.1 is caused by the use of Path.IsPathFullyQualified(), which only exists for .NET Core 2.0 and later. The implementation of Path.IsPathFullyQualified() has been paraphrased from the code in the .NET runtime source repo.

There may be other ways to accomplish this, including changing which references are included, but this seems the least intrusive mechanism.

This commit attemps to make the Runfiles library compatible with .NET
Standard 2.0 instead of .NET Standard 2.1. The requirement for 2.1 is
caused by the use of Path.IsPathFullyQualified(), which only exists for
.NET Core 2.0 and later. The implementation of Path.IsPathFullyQualified()
has been paraphrased from the code in the .NET runtime source repo.

There may be other ways to accomplish this, including changing which
references are included, but this seems the least intrusive mechanism.
Copy link
Collaborator

@purkhusid purkhusid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for you contribution.

@purkhusid purkhusid merged commit ab7e043 into bazel-contrib:master Sep 19, 2023
@jimevans jimevans deleted the runfiles-netstandard2.0 branch September 19, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants