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

Tasks imported via #load directive from NuGet source not listed #70

Open ShaneRayCafe opened 7 years ago

ShaneRayCafe commented 7 years ago

I have a build.cake file in the root of my solution. It loads another file via #load "src/base.cake". These are not loaded in the Test Runner Explorer (pictured below).

image

agc93 commented 7 years ago

Hi @ShaneRayCafe 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!

ShaneRayCafe commented 7 years ago

@agc93 Thanks for your reply and sorry for the slow response. It looks like the update to 0.2.x did partially resolve this issue.

#load "src/base.cake" - this now works as expected.

However, I have noticed that when using the #load directive with a script from nuget the tasks are not listed. #load "nuget:?package=Shared.Build.Cake"

agc93 commented 7 years ago

Ah that's a good find @ShaneRayCafe and as it was only added recently to Cake, the extension doesn't support that currently. I'll have a look at this and work out how we can support that case 😄