We are using PowerShell for provisioning/configuration/patching of virtual machines on the Windows Azure platform. Are there any project templates available to manage PowerShell projects in Visual Studio 2012 through which I can manage these scripts?
I would like to be able to create
PowerShell project with-in VS 2012 and add script files to it
Have basic syntax-coloring and highlighting (good to have intellisense).
Manage scripts using source control
I have found this visual studio extension PowerGUI VSX but it works only for VS 2010.
Updated [09/25/2013] : Found PowerShell Tools for Visual Studio. It provides all the features mentioned above for working with PowerShell Projects in VS 2012
PowerShell doesn't get much Visual Studio love. How about the PowerShell ISE, PowerGUI, or PowerShell Plus?
Of the three, the last is the only one with any source control integration.
There is another component in the Microsoft gallery for PowerShell integration in Visual Studio 2012; PowerShell Tools for Visual Studio 2012.
Related
i want to use tfs shell extension in windows 10 and i dont want install VS. download tfs shell extention from here. how to config that to show in windows context(right click) or other way without install VS. is it possible?
No, it's impossible. As the official doc declared clearly:
It works with Visual Studio 2017.
This release requires a computer with Visual Studio 2017 and all of
the Visual Studio system requirements.
You have to use Visual Studio with this Microsoft Team Foundation Version Control Windows Shell Extension.
I use VSCode to create powershell programs...
but I found the debugging capabilities a bit crude...
Recently with PS5/OOP I started to translate a lot of scripts .cmd/.sh/... to Powershell...
also translated some executables to .ps1 scripts with great success... granularity and code libraries are now much easier to manage...
Still I miss the VS2019 IDE facilities for variables/stack/classes and mainly the DEBUGGER quality...
?does anybody knows if I can use VS2019 Community Edition to edit and debug Powershell... better: did VS2019 support Powershell projects... or is this feature planned for a future release???
Visual Studio 2019 CE doesn't have default Powershell tools, it means you can't create powershell projects. You need to install "PowerShell tools for Visual Studio" from "Visual Studio Marketplace".
Goto Visual Studio => Extension
Search for "Powershell"
Install "Powershell Tools for Visual Studio"
Restart Visual studio
Next time when you open Visual studio 2019 CE, you can able to create either "Powershell Module project" or "Powershell Script project"
I have been building Smart Device application on Visual Studio 2008 and have been using a batch file to do so.
This has been working until I have installed Visual Studio 2015 and I wanted to still build and debug the solution via Visual Studio 2008 because Visual Studio 2015 doesn't support Smart Device development. However, using the same batch file I can no longer do so.
I am looking for a way to be able to target the devenv of the older version of Visual Studio for the batch file without uninstalling Visual Studio 2015, because I too have projects built on that version.
NOTE: I can run Visual Studio 2008 perfectly fine and using their on-click build tool it builds fine.
The batch file is probably picking up environment variables (INCLUDE, LIB etc) set up by VS 2015, which the 2008 toolset will not work with.
The Visual Studio 2008 menu should have a Visual Studio Tools submenu. Run Visual Studio 2008 Command Prompt from that submenu, which will open a cmd console with the VS 2008 environment set correctly. Run your batch file at that prompt.
You can automate it by writing a small batch file to first execute vcvarsall.bat (which is what the menu command does), then run your batch.
#call "<path-to-vs2008-install-directory>\vcvarsall.bat" x86
#call "<your-batch.bat>"
I have a project written in PowerShell and I want to create an interface for it using Visual Studio 2012. How can I load the .ps1 file in Solution Explorer? I have already run through these steps:
http://nickmeldrum.com/blog/how-to-run-powershell-scripts-from-solution-explorer-in-visual-studio-2010
(the steps are for Visual Studio 2010 but I thought the settings shouldn't differ too much) but now I don't know what to do...I have to install some tools or something?Thank you!
You haven't specified what's the issue here. Steps from the linked article should work with Visual Studio 2012 without any adjustments as far as I see. Make sure that you followed those steps correctly.
BTW, you may want to install "PowerShell Tools for Visual Studio 2012" extension.
In my system when I click on Add->new project->And go to Other project types I cant see any project types. I actually wanted to convert my c# project to executable.
Is any component missing during installation? I am using Visual studio 2008 professional edition
Please help me..
I had the same issue until I looked into what software I was ACTUALLY using - check to see if you're really using Microsoft Visual Studio 2008 - I thought I was until I realized I was using Visual Studio 2008 Shell (integrated mode) which is different.
Microsoft Visual Studio 2008 Shell (integrated mode) is part of the SQL Server 2008 Management Studio, so the project types available to it are different than MSVS 2008... Microsoft developed the Shell to have the same look and feel of Visual Studio so users were comfortable and familiar with the layout.
Go to Tools>>Import and Export Settings>>Reset all settings>>Choose yes or no to save current settings>>
Then choose Visual C# Development Settings or General Development Settings.
So that you can have templates you need.
You can reopen your VisualStudio ISO and try to repair or you can install VisualStudio Express to make sure you can install all templates.
My guess is you didn't make a full installation and forgot to install some components.