none
Powershell/PowershellCore in Visual Studio RRS feed

  • Question

  • Hi I received a lot of powershell scripts to add to Visual Studio 2015 (and to source control too)

    What are the best tools/Addons for that? POSH Tools?

    What about compatibility with other versions of VS and the use of Powershell Core

    Are there any tools to use PowershellCore projects in VS? Is it recommended to use VSCode for powershellCore projects?

    Thanks ,

    JD


    Monday, August 26, 2019 10:10 PM

All replies

  • Hi junidev,

    Thank you for posting here.

    > > What are the best tools / Addons for that? POSH Tools?

    ## Yes, in Visual Studio 2015, we recommend you to use PowerShell Tools for Visual Studio 2015. This extension tool could help you create projects for PowerShell scripts and modules, edit, run and debug PowerShell scripts locally and remotely. To get this extension please try Tools -> Extensions and Updates… -> choose Online -> search powershell. You could also refer more information from PowerShell Tools for Visual Studio 2015 and POSH Tools.

    > > What about compatibility with other versions of VS and the use of Powershell Core?

    ## As far as I know, VS 2012, 2013, 2015, 2017 and vs 2019 could all support powershell (by using corresponding extension tools). Since powershell Core is a cross-platform shell and scripting tool, powershell core is used dependent on .NET Core 2.0+ and vs2015 might not able to use powershell core. To use powershell core, we suggest you use vs2017 or higher version of visual studio for better help.

    > > Are there any tools to use PowershellCore projects in VS? Is it recommended to use VSCode for powershellCore projects?

    ## Yes, you could try to use PowerShell Tools or PowerShell Pro Tools in VS.

    ## Visual Studio Code is used for editing codes and optimized for building and debugging modern web and cloud applications, it could run fast, while Visual Studio is an integrated development environment and bigger than VSCode but could do more developer and test. Whether to choose VSCode or VS for powershell Core projects depends on what you want to do, if you just use powershell Core to program it is good to use VSCode and if you would like to do things more or relate to other function, use VS maybe a good choice.

    Hope this could help you.

    Best Regards,

    Tianyu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, August 27, 2019 6:57 AM
  • Hi junidev,

    Did you have any update or did your issue solve? Just as Tianyu said,Visual Studio is compatible with Powershell and the Powershell core was based on .Net Core2.x.

    If you have any other doubts, please feel free to let us know. We are willing to help you further.

    Thanks for your understanding.

    Best Regards,

    Perry


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, September 9, 2019 9:37 AM