This statement is available in all versions of PowerShell. Now, when creating cross-platform scripts, I found very useful to have the “ #Requires -Version x” statement. Just make sure to search of Linux or Mac OS scripts. PowerShell Open Source is evolving.Īlso, there are already modules available that can be use cross-platform thru PowerShell Gallery, and NuGet. Unless, you concentrate that write your scripts only using the PowerShell Core module. Just keep in mind, for now you won’t be able to run you existing Windows PowerShell scripts or modules in another OS. Also, a good way to test the script functionality is to use either Linux or Windows 10 Bash environments. Now that PowerShell Open Source is evolving, we need taking advantage of some if it features to build cross-platform scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |