cake-build / cake-vs

Cake Extension for Visual Studio
https://marketplace.visualstudio.com/items?itemName=vs-publisher-1392591.CakeforVisualStudio
MIT License
67 stars 25 forks source link

"Task Runner Explorer" ignores task with name containing "-" minus sign #62

Closed lucaritossa closed 7 years ago

lucaritossa commented 7 years ago

If you have defined a task name like "Run-Unit-Tests"

Task("Run-Unit-Tests")
    .IsDependentOn("Build")
    .Does(() =>
{
    MSTest("./src/**/bin/" + configuration + "/*.Tests.Unit.dll");
});

it will not be showed/available into "Task Runner Explorer".

Changing the "minus" into "underscore" solve (workaround) the issue.

agc93 commented 7 years ago

Hi @lucaritossa and thanks for the report!

What version of the extension are you currently using?

If on 0.1.x can you please try installing the prerelease version of the extension as outlined in this blog post as there have been quite a few changes to the task parsing logic for 0.2.x.

Thanks!

lucaritossa commented 7 years ago

I confirm I'm using 0.1.1.0. I've installed 0.2.0.33 and all it's ok!!!

Thank you! LR