cake-vs icon indicating copy to clipboard operation
cake-vs copied to clipboard

Tasks imported via #load directive from NuGet source not listed

Open ShaneRayCafe opened this issue 8 years ago • 3 comments

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

ShaneRayCafe avatar Apr 09 '17 16:04 ShaneRayCafe

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!

agc93 avatar Apr 10 '17 01:04 agc93

@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"

ShaneRayCafe avatar Apr 12 '17 18:04 ShaneRayCafe

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 😄

agc93 avatar Apr 12 '17 23:04 agc93