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

Different behavior among VS & PS BootStrapper #78

Closed MonDeveloper closed 3 years ago

MonDeveloper commented 7 years ago

I'm experiencing some strange behaviors, it seems CAKE perform differently when launched via PS Bootstrapper or via VS Task Runner (using the cake-vs extension).

Anyway, the strange part is that these problems occur ONLY using the cake-vs extension and never using the PS Bootstrapper (or the cake directly via command line). Furthermore, during some sunny day, also using the cake-vs extension it works fine, with no reason (apparently)

My build.cake it a very simple one, just a few line more than a "Hello World". I also double checked the file encoding, it's ok.

And, I repeat, using the PS bootstrapper everything work as expected, all the times.

I'm sorry I'm so vague but I'm no more on PC (writing on mobile) and I'll be disco for a couple of weeks.

Hope someone else matched this issue and found a workaround.

MonDeveloper commented 7 years ago

Just adding another error that could bring more value to the analysis. Here the step to reproduce


Setup

Executing custom setup action... Running tasks...

======================================== DBG

Executing task: DBG Finished executing task: DBG

======================================== Default

Executing task: Default Finished executing task: Default


Teardown

Executing custom teardown action... Finished running tasks.

Task Duration

DBG 00:00:00.0412922 Default 00:00:00.0039455

Total: 00:00:00.0452377

gep13 commented 3 years ago

Based on what was discussed here, I think the problem was that in one scenario (using the bootstrapper) addins were being added via the packages.config file, which were being resolved in the bootstrapper. When executing the task directly, which simply runs cake.exe, those addins were not being restored. Usage of the packages.config files for addins/tools/modules is not longer recommended, and therefore, I don't think there is additional work that is required here.

As such, I am going to go ahead and close out this issue.