-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the task detection independent of build.cake position #30
Comments
Unfortunately, this is a limitation in Visual Studio. VS looks for the "config file" for Task Runners (in our case, that's your One workaround is that, when 0.2.0 is released, the task runner will support nested Cake files (using the |
Conversation where this was discussed: https://gitter.im/Microsoft/extendvs?at=57f52e3729403a416fcb7cbe |
I understand. That's sad though. |
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: And the task runner detects the cake file, but it does not show any tasks |
@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 |
Yes sorry build.cake. I have published the repo here: https://github.com/nnyegaard/cakebuild |
@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? |
I had yet to run the bootstrapper (build.ps1), but after I did, I got the tasks. Thanks a lot guys! |
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. |
It seems to me that build.cake cannot be on a sibiling path of the solution, but only on a parent path.
With
\git\MyProject\src\MySolution.sln
\git\MyProject\BuildScripts\build.cake
The tasks are not detected
When i moved to
\git\MyProject\build.cake
it was detected
The text was updated successfully, but these errors were encountered: