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"
Related
I am trying to use the Visual Studio Developers Command prompt, but I can't find it. I have Visual Studio 2013 and Windows Server 2012. I have tried searching for 'Developer command prompt' and various shorter versions of that. The only search that gives me something is when I search 'VS2012 command prompt' which gives me the following:
- VS2012 ARM Cross Tools command prompt
- VS 2012 x86 Native Tools Command prompt
- VS 2012 x64 Native Tools Command prompt
I don't think those are what I'm looking for. I have Visual Studio so I should have it installed. How can I find it?
For VS 2013, all the Developer Command Prompts are in a "Visual Studio Tools" subfolder in the start menu created by VS 2013. Typically you'll find them in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts. For whatever reason, those don't show up in desktop search.
For VS 2015, they put them back where desktop search can find them.
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.
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.
Can I use Visual Studio Command Prompt with the free Visual C# Express?
The Visual Studio Command Prompt is referenced here:
Run 'Visual Studio Command Prompt (2010)' (or 'Visual Studio x64 Win64 Command Prompt (2010)' if you are on a x64 operating system) in the Microsoft Visual Studio 2010 \
Visual Studio Tools menu as administrator.
An unreferenced forum post claims it is not available in Express, and lives in \Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat. The bat file name suggests it may just open a command prompt or PowerShell with a few environment variables, so maybe it is easy to reproduce even without the expensive Visual Studio?
I think you are talking about compiler, C# compiler, is available in few versions with Reddistributables,
refer this link fro beginner that will help you understand better, Search for compiler/redistributable package of .net framework, that will help
http://cscsharp.cs.uvic.ca/installCSharp.shtml
this will solve your question.