PowerShell in Visual Studio 2012 - visual-studio

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.

Related

Visual Studio - Using different versions for the same project

I recently started a new job, and got a machine with Visual Studio 2013 Proffesional installed. This would be great, except the colleague that I'm working with is using Visual Studio 2010. As far as I know, there is no way to work on the same project (or solution), without having quite a lot of issues, is this correct?
And if so, is it still possible to download Visual Studio 2010 (from a reliable source)? I cannot seem to find it anywhere in my MSDN subscriber downloads. All I can find is a stuff like service packs, tools, etc. Did they terminate the support of it?
You work on visual studio 2013 but there are option to select which version of visual studio you want select 2010 and run your project.
You should be able to open Visual Studio 2013 solutions in 2010, if you install Visual Studio 2010 SP1. There is a possibility that some project types won't be supported, but the solution should open.

Visual studio 2008 Shell be installed in a terminal which is already having Visual Studio 2010 Shell

Can Visual studio 2008 Shell be installed in a terminal which is already having Visual Studio 2010 Shell.VS 2010 Shell is essential to the Project. So I want VS 2008 in my terminal, without disturbing the existing VS 2010)
Question 1: If so, what do we exactly need to get it installed in my terminal.
Sorry the question might sound stupid, but I am a Java developer and I have no idea of Visual studio. Thanks in advance for your help.
Question 2: Also what does it mean by Visual Studio 2010 Shell Version? What does Shell means
If by "terminal", you mean a PC running Windows, then yes, you can have two different versions of Visual Studio installed simultaneously. I'm assuming you have the requisite licences from Microsoft. Just run the install from the downloaded executable or the installation CD as usual.

Visual Studio 2012 "Invalid license data. Reinstall is required"

I have a newly built Windows 8 VM with VS 2012 Premium running on it, when I try open any sln file I get the following modal pop up error
Visual Studio 2010 Shell
Invalid license data. Reinstall is required.
I can open the sln's if I open up VS and then do project open, this is really annoying, any ideas how I fix it?
*Note I have done a VS repair and it didn't solve it...and I never had any VS RC release on the machine, all new build with s/w downloaded from the MSDN
Cheers
I encountered the same exact error when I created a solution with a full version of Visual Studio 2012 Professional on one machine and then tried to open the solution file with a copy of Visual Studio 2012 Express on a different machine. I got the error when double-clicking the solution file, but not when loading the solution into an already opened instance.
I fixed the error by opening the solution file (.sln) with notepad and changing the line that says Visual Studio 2012 to say Visual Studio Express 2012 for Windows Desktop.
After that, I was able to double-click to open the solution file on the machine that has Express installed.
I'm using VS 2013. I fixed this by right clicking the .sln and setting the Open With parameter to visual studio 2013 and not VS version selector or VS 2010.
I have faced the same problem. When I set the system Date and Time to the current Date and Time, The Problem solved by itself.
It looks like the .sln extension is owned by "Visual Studio 2010 Shell" a minimal version of Visual Studio that ships with products like SQL Server and Office to provide support for add-in development without any other features. Since this is a minimal version, it's unable to load any project type that ships with Visual Studio Express, Professional or above.
The same may happen when you have Visual Studio Express installed next to a full version of Visual Studio.
This may happen when you install an older version of Office or SQL Server after having installed Visual Studio. The old installer will hijack the extension.
To repair this problem:
use the "Open With" option of Windows and select the "Visual Studio Version Selector" as your default action.
Or open the "Default Programs" option in Windows, look up the .sln extension and make sure it uses the "Visual Studio Version Selector" as default:
Or locate Visual Studio 2012 in the Programs and Features window of Windows and chose "Change", the Visual Studio installer will pop up, chose "Repair" to have it repair the file associations and any other problems that may arise by installing Visual Studio versions in reverse order (it may for example mess up the MsBuild directory as well).
Remember that when Visual Studio 2010 was released, it could not yet know what Visual Studio 2012 would change, as such, it's best to install versions of Visual Studio in the order they were released. This may sometimes prove difficult, as other products may install Visual Studio versions without you knowing.

Other project types is empty in visual studio 2008

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.

can i install and use, visual studio 2008 and visual studio 2010 on the same windows xp/vista

can i install and use, visual studio 2008 and visual studio 2010 on the same windows xp/vista
have visual studio 2008 installed and working
wnat to install visual studio 2010 and use with 2008,
some solutions on 08 and some on 10..
any problems possible?
Yes, you can!
Can't add anything else, honestly! :)
Well, I personally have 2005, 2008 and 2010 installed on the same workstation, for various needs and projects. Works without any problem!
No problems at all running both Visual Studio 2008 and 2010 side-by-side. My development box is currently set up this way.
Solutions will automatically open in the version of Visual Studio that they were created in. You can manually choose to open them in a newer version, but you will need to update them. A wizard will automatically appear that guides you through the process.
Opening a solution saved with a newer version of VS in an older version is not a supported scenario.
But there is a workaround: simply open the *.sln file in a text editor (like Notepad) and decrement the version number by 1. You'll have to do the same thing for each of the project files.
I had the same problem with converting a Visual Studio 2008 project to 2010, which made the program could not compile at all with every measure i took.. then I installed Visual Studio 2008 again and it turns out they can be installed in the same computer and work, but you need to open visual basic 2008 manually if you want to develop a project there..
You shouldn't have any problems unless you try to develop for Windows Phone 7, which you can't currently, and may never be able to, do in Windows XP.

Resources