i saw on youtube https://www.youtube.com/watch?v=bZ9PkG9M1SU possibility to automatically convert ps1 script to C# project.
Is this feature available ?
I have VS 2019 with installed tools with 14 trial licence added but i can’t force my VS to paste script as C#
It could be a bug. Let me take a look and get back to you.
great, thanks, I’ll be waiting for info
I realize now that we need to update that video…here’s an example of how to use the code conversion feature. Just paste the C#, select it and then click Convert to PowerShell.
Sorry that this little recording cuts off what I click but it’s the option “Convert to PowerShell”.
Can you do the opposite, i.e. convert PowerShell to C#. I can see convert to PowerShell but not convert to C#