knom / vsts-regex-tasks

VSTS Regex Build/Release Tasks
MIT License
6 stars 8 forks source link

The path is not of a legal form #3

Closed NArnott closed 6 years ago

NArnott commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

loweva commented 7 years ago

Looks good - thank you!

knom commented 6 years ago

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