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

The path is not of a legal form #3

Closed
NArnott opened this issue Oct 20, 2017 · 4 comments
Closed

The path is not of a legal form #3

NArnott opened this issue Oct 20, 2017 · 4 comments

Comments

@NArnott
Copy link

NArnott commented Oct 20, 2017

When I run this task, using a simple filter **\*.csproj, I get the following error. I've tried different variations of this, but all provide the same error.

Task : RegEx Find & Replace
Description : Find & Replace using Regular Expressions
Version : 2.0.1
Author : knom
Help : More Information

Search Pattern is **\*.csproj

Exception calling "GetDirectoryName" with "1" argument(s): "The path is not of a legal form."

@loweva
Copy link

loweva commented Oct 24, 2017

I was getting the same error. I changed the Search Path to $(Build.SourcesDirectory)\**\*.csproj and it started working for me.

I think it would be good if the author could provide a better example, as looking at the source file here within the comments (lines 1-100) also indicates that some sort of root directory is required.

@knom
Copy link
Owner

knom commented Oct 24, 2017

Thanks!
Minimatch expressions (like double *) are not allowed..
I've updated the example screenshot to reflect that!

@knom knom closed this as completed Oct 24, 2017
@loweva
Copy link

loweva commented Oct 24, 2017

Looks good - thank you!

@knom knom reopened this Mar 23, 2018
@knom
Copy link
Owner

knom commented Mar 23, 2018

Good news! We now support MINIMATCH patterns in Version 3.0!

@knom knom closed this as completed Mar 23, 2018
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

No branches or pull requests

3 participants