Conversation
Join-Path:add-package command by not using Join-Path in .\build.ps1
7ae0b69 to
e994fcf
Compare
ChrisonSimtian
left a comment
There was a problem hiding this comment.
ah this old chestnut ... io ops in ps1 is a massive pain, thanks for fixing this
Why old? I reverted to the actually "old" ;) |
|
ah we use psake at work and the amount of times i fixed this is countless 😂🙈 thats why its an old cheatnut for me. I find this and other things in powershell very brittle, the only advantage over bash is it can natively use dotnet code |
|
I hate powershell as well :) For example: simple tools like curl regularly freaking me out, because it is a pain on powershell (which is the "default" terminal on win11). Using good old cmd works like a charm :D |
|
Ah.. just read the commit message for 7a30bc5. I try if this is a problem again. Edit: I tried with forward slashes on windows, for PS v5.1 and PS v7.6.6.. Both worked, and could handle the forward slashes. |
gotcha, might just have to try and tell ps1 to use the latest v7 not the legacy v5
|
|
@ChrisonSimtian Why the powershell |
|
|
No? that's the template. I am adding this there, because consumer need it. I asked why this repo doesn't have this in the Edit: PR #204 removed this, from the template as well as from the "own" |
correct, and replaced it with the cli call instead in an attempt to make the powershell script as thin as possible. I dont mind you adding it back if its needed but ultimately i'd really like to move away from .ps1 and .sh towards a pure dotnet cli. So its probably better to build that in natively rather than relying on ps1/sh to pass things through |
|
Ok then.. should this be a follow-up? or should I change the PR to not depend on the bootstrapper files at all? Your call @ChrisonSimtian Edit: The problem is, that the user can name the build project file and folder like he wants. We only give a suggestions as default. |
|
Ok.. think I have a solution to this: A I will change the |
395f4e2 to
2d22b01
Compare
2d22b01 to
0a5a191
Compare
:add-package command by not using Join-Path in .\build.ps1:add-package command by not using variable parsing from .\build.ps1
Co-authored-by: ITaluone <[email protected]>
lets make a gh issue for this and discuss there independently from this PR. Not in the right headspace for this at the moment, sorry |
The
Join-Pathactually prevents to use the gloabl tool's:add-packagecommand, since this command greps the build.csproj path from the.\build.ps1../build.shis not affected, since there is no such "fancy" command to "just" join paths :).Fixes: #670