Git Product home page Git Product logo

Comments (9)

agc93 avatar agc93 commented on May 20, 2024 2

Unfortunately, this is a limitation in Visual Studio.

VS looks for the "config file" for Task Runners (in our case, that's your build.cake file), in the project root folder, then traverses upwards to find it. Scripts in subfolders, or folders outside that "chain" won't be found, but we unfortunately can't change this.

One workaround is that, when 0.2.0 is released, the task runner will support nested Cake files (using the #load directive), so you could put a single build.cake file in \git\MyProject\build.cake (to use your example), and #load in any scripts from the BuildScripts folder, and they should still appear and be usable from the task runner.

from cake-vs.

agc93 avatar agc93 commented on May 20, 2024 1

@nnyegaard I can see the tasks showing up when I open that repo. For the tasks to be loaded, you either a) need to have run the bootstrapper at least once or b) have Cake.exe available on your PATH.

Do you have your tools/addins installed in a custom directory for that solution?

screenshot 85

from cake-vs.

nnyegaard avatar nnyegaard commented on May 20, 2024 1

I had yet to run the bootstrapper (build.ps1), but after I did, I got the tasks.

Thanks a lot guys!

from cake-vs.

gep13 avatar gep13 commented on May 20, 2024

Conversation where this was discussed: https://gitter.im/Microsoft/extendvs?at=57f52e3729403a416fcb7cbe

from cake-vs.

pitermarx avatar pitermarx commented on May 20, 2024

I understand. That's sad though.
As far as I am concerned, you can close this when 0.2.0 is released

from cake-vs.

nnyegaard avatar nnyegaard commented on May 20, 2024

It seems that the task runner can't detect the task in the cake file even though it is in root.

I have a ASP.NET Core app with paths:
root\src
root\test
root\Api.sln
\root\build.cake

And the task runner detects the cake file, but it does not show any tasks

from cake-vs.

gep13 avatar gep13 commented on May 20, 2024

@nnyegaard is this a public repo that we can take a look at? If so, where is it?

Also, is that a typo in your comment? You have cake.build rather than build.cake.

from cake-vs.

nnyegaard avatar nnyegaard commented on May 20, 2024

Yes sorry build.cake.

I have published the repo here: https://github.com/nnyegaard/cakebuild

from cake-vs.

gep13 avatar gep13 commented on May 20, 2024

I have just read through the discussion here, and I believe that this issue can now be closed.

If this isn't the case, then please comment again.

from cake-vs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.