cake-build / resources

Contains different kind of resources such as bootstrappers and configuration files.
MIT License
54 stars 79 forks source link

Add initial build.cmd bootstrapper for dotnet-tool #99

Closed augustoproiete closed 2 years ago

augustoproiete commented 3 years ago

Continuation of #95 / #96 where we added build.ps1 and build.sh bootstrappers for the Cake .NET Tool.

This PR adds the .cmd version of the bootstrapper for convenience for devs for devs that don't use PowerShell and instead use Command prompt/Windows terminal (cmd).

Historically, the .cmd would just be a call to PowerShell.exe to execute the build.ps1 which is fine and makes sense especially when the code in the ps1 is complex, but given that the commands required for bootstrapping the .NET Tool are so simple nowadays, I prefer to be explicit about them and just have the commands directly in batch script which I know is going to work for sure, regardless of the state or version of PowerShell I have on the machine.

This also gives the optionality for users that don't care about the build.ps1 and instead prefer to have build.cmd only or build.cmd + build.sh.

No strong feelings on this one though and happy to call PS if the duplicate commands triggers some devs OCD's :smile:


Once this is merged (as-is, or in modified form) we can discuss if we should expose through the VSCode extension.