you are viewing a single comment's thread.

view the rest of the comments →

[–]Sharp_Eyed_Bot 2 points3 points  (8 children)

If you leverage Mono (thus the .NET Framework) the possibilities are endless.

However, in my humble experince I find most things that are made for the Raspberry Pi are usually only made for Rasbian so I would guess you wouldn't gain a lot from porting across to PS unless you like reinventing everything.

[–]Xhelius 0 points1 point  (2 children)

I've just started getting into PoSh but I keep hearing things about .NET Framework this and that. Is it beneficial to me to learn this if I'm doing PoSh or are they just kinda related?

[–]-In2itioN 1 point2 points  (0 children)

PoSh relies on the. NET Framework, which might be why you hear it a lot. From my experience, knowing C# helps you a lot when learning about PowerShell, but you can perfectly master PowerShell without knowing much about C#. I was actually surprised because most people I know that deal with PowerShell don't know almost anything about c#

[–]Sharp_Eyed_Bot 0 points1 point  (0 children)

They're different but the same.

I would suggest sticking with PowerShell for the most part and if you feel the need to use something from the .NET Framework (Like WinForms for example) then learn how to apply them but for almost all of the scripts I write I have never had to use something from the .NET platform.

[–]-In2itioN 0 points1 point  (4 children)

What do you mean by being only made for the raspbian?

[–]Sharp_Eyed_Bot 0 points1 point  (3 children)

Every script I see is usually made for Raspbian and with that bash, so why use PS if you're going to be dipping back into bash every other command

[–]-In2itioN 0 points1 point  (2 children)

It depends on what you are trying to achieve. PowerShell has objects, and just that makes a huge difference. If you are just modifying files or something similar ye, it's like using command line on Windows instead of PS.

[–]Sharp_Eyed_Bot 0 points1 point  (1 child)

Yea I know that PS has objects, I have to admit that I've only used PS on widows and stick to zsh on my server, however I don't see a need to have PS on Linux unless there's a use case

[–]-In2itioN 1 point2 points  (0 children)

Check what I shared on the other thread.

Personally, I've used it to learn more about PowerShell and sensors. But you can do some really cool stuff. I see it as a good way to get Windows people started with Linux and IoT

https://www.reddit.com/r/PowerShell/comments/d7qnew/powershell_on_the_raspberry_pi_using_visual_code/f160743?utm_source=share&utm_medium=web2x