Replies: 11 comments
-
Hmm, sounds strange. Will take a look at it later tonight. |
Beta Was this translation helpful? Give feedback.
-
@haefele I just tried this and it works as expected here. Would you mind posting your |
Beta Was this translation helpful? Give feedback.
-
@patriksvensson Well, they are exactly like the ones above. |
Beta Was this translation helpful? Give feedback.
-
@patriksvensson This is strange, it still doesn't work on my end. Maybe I can upload my folders somewhere? |
Beta Was this translation helpful? Give feedback.
-
@haefele I just used the Cake Bootstrapper to generate a script and edited that one to use the folder structure you have. Here is the script, try it out and see if it works on your end.
|
Beta Was this translation helpful? Give feedback.
-
@patriksvensson Your script seems to work, but I can't tell why mine is not. |
Beta Was this translation helpful? Give feedback.
-
Yes, that would be good. There must be a rational explanation for this :) |
Beta Was this translation helpful? Give feedback.
-
I hope you can work with a onedrive file 😃. |
Beta Was this translation helpful? Give feedback.
-
Perfect. The problem seem to have something to do how Powershell handles working directories when launching a process like that. Maybe @devlead know something about this? Anyway, you can get your script working correctly by running it like this: .\..\tools\cake\Cake.exe build.cake -verbosity=diagnostic |
Beta Was this translation helpful? Give feedback.
-
This is just so strange, because I can get one folder upwards or downwards of the actual folder I want to get to. Thank you very much! And especially thanks for the amazing fast help! |
Beta Was this translation helpful? Give feedback.
-
Will investigate this further to make sure that this is not a problem with Cake. |
Beta Was this translation helpful? Give feedback.
-
Let's assume a project structure like the following:
My build.ps1 script looks like:
I think my intention is clear: I want to execute my build.cake script.
But it looks like he creates the full-path to the build.cake file incorrectly.
The output is:
It looks like he initially found my build.cake file, but later he creates the path incorrectly and obviously can't find it at the new path.
This is one folder too much upwards in the folder hierarchy.
So then I try to remove one .. from my path to build.cake:
But sadly, this doesn't help either.
Because now, he fails with another error.
The output is:
Okay, I didn't really expect that to work now, since that path can't be correct, it's one folder too much downwards in the folder hierarchy.
So it looks like, I have no way to get into my "MyProjectRoot" folder, to point the cake.exe to the correct script file.
Beta Was this translation helpful? Give feedback.
All reactions