Skip to content

Conversation

JaynieBai
Copy link
Member

@JaynieBai JaynieBai commented Jun 5, 2023

Fixes #8762

Context

Catch the exceptions when extensionsPathPropValue is null or importExpandedWithDefaultPath is empty.
In NET Framework, Path.* function also throws exceptions if the path contains invalid characters

Changes Made

Catch the exception.

Testing

FallbackImportWithInvalidProjectValue

Notes

Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Looks good - we just should preserve the ArgumentException information.

@JaynieBai JaynieBai marked this pull request as ready for review June 6, 2023 09:03
Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Looks good!

@rainersigwald rainersigwald added this to the VS 17.8 milestone Jun 22, 2023
@rainersigwald rainersigwald modified the milestones: VS 17.8, VS 17.9 Sep 21, 2023
@AR-May AR-May merged commit f25816b into main Oct 10, 2023
@AR-May AR-May deleted the Jennybai/issue8762 branch October 10, 2023 14:08
bulatgrzegorz pushed a commit to bulatgrzegorz/selective-condition-evaluator that referenced this pull request Oct 16, 2023
Fixes dotnet#8762

Context
Catch the exceptions when extensionsPathPropValue is null or importExpandedWithDefaultPath is empty.
In NET Framework, Path.* function also throws exceptions if the path contains invalid characters

Changes Made
Catch the exception.

Testing
FallbackImportWithInvalidProjectValue

Notes
MichalPavlik pushed a commit that referenced this pull request Oct 17, 2023
Fixes #8762

Context
Catch the exceptions when extensionsPathPropValue is null or importExpandedWithDefaultPath is empty.
In NET Framework, Path.* function also throws exceptions if the path contains invalid characters

Changes Made
Catch the exception.

Testing
FallbackImportWithInvalidProjectValue

Notes
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.

[Bug]: Illegal characters in path.

6 participants