Opening visual studio 2008 in visual studio 2010 - visual-studio-2010

I have installed both visual studio 2008 and 2010. When I try to open a visual studio 2008 solution file it opens in visual studio 2010. It does not open in vs 2008.

Select the .sln file in file explorer, right click, select "Open With", select "Visual Studio 2008" or "Visual Studio version Selector".
If it doesn't work, Select the .sln file in file explorer, right click, select "Open With", Select "Choose Default Program" and there you can select Microsoft Visual Studio 2008". It might be hidden if you are OS like vista or Windows 7. There is one line with an arrow to expand all available programs
Hope that helps
Milind

Have you tried opening the project from the file->open menu?

Related

No Template for LINQ to SQL in VS 2017 Community

I tried to open a DBML file recently, and when it didn't open correctly, I found out that I had to install the LINQ to SQL option for VS2017 Community. I used the Visual Studio Installer to add the LINQ to SQL option. When I reopened VS 2017 Community, DBML files opened correctly, but I still could not find the template for new DBML files (LING to SQL files).
How can I enable that template?
Here's what helped me:
Quit Visual Studio 2017
Launch the Visual Studio Installer
Choose to modify the Visual Studio Installation
Visual Studio Installer
Click on "Individual Components", scroll down and click the checkbox next to "LINQ to SQL tools"
Individual Tools
Click "Modify" and then restart Visual Studio 2017
You may need to update your version of Visual Studio before the modify option displays.

Outlook code review link opens wrong Visual Studio version

I have Visual Studio 2013 Premium and 2012 Premium installed. I get email notifications for code reviews in TFS. These notifications include a link to open the reviews, with display text "Open Changes and Comments in Visual Studio". The link location starts with
vstfs://codereview/...
When I click the links, the code reviews are opened in Visual Studio 2012.
How can I make Visual Studio 2013 handle the code review email links instead of Visual Studio 2012? I would like for them to be opened in Visual Studio 2013, instead.
Open "default apps" on Window,
Select "Choose default apps by protocol" and scroll until you see "VSTFS"
Select "Microsoft Visual Studio Web Protocol Handler Selector" and test the options.
Open your registry and modify the path to devenv.exe defined in the key HKCR\vstfs\Shell\Open\Command\(Default)
I repaired my Visual Studio 2013 installation and changed all of the filetypes associated with Visual Studio 2012 to be associated with 2013 in the Default Programs tool, and then restarted my PC. The problem is now resolved, but I don't know what fixed it; my guess is the 2013 repair.

Project needs to be opened by Visual Studio 2008 by default in Windows 8

I have installed visual studio 2008 and 2010 and also vs 2012 on windows 8. Now if I open a vs 2008 project, it asks me to convert it to vs 2010 which I don't want.
In windows 8 I tried "open with" but I can't see vs 2008 in programs, when i go to it's destination and try to open it, it opens up as VS 2010 again.
Update
Problem isn't that i can't open projects with VS 2008, problem is I am not able to force a VS 2008 solution to be opened by VS 2008 (by default).
I can open the project by opening VS 2008 and then use file -> Open
These projects are in SVN Tortoise Repository, on windows 7 they open by VS 2008 by default but now I got windows 8 so each time I open project, it asks me for this,
Sorry for confusion.
Not sure why it's working the way it use to work in Windows 7 but I will look it into it, however I am able to fix the problem by,
I think problem came up because I installed VS 2012 and VS 2010 first and then installed VS 2008 at end.
I am experienced something similar.
Windows 8.1 with VS2008 and VS2013 installed.
Problem:
Right mouse select a VS2008 .sln file in File manager.
Select "Open with..." from the menu
The dialog shows one choice, VS2013.
From the "How do you want to open this file?" dialog, select "More Options"
Scroll down past all the new choices and select "Look for another app on this PC"
Paste in the path to VS2008. Example: "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
It runs VS2013 instead.
Also, using "File->Properties" to associate the .sln file with VS2008 did not work as I expected. After setting the file association, I expected the be able to double click on that .sln file and bring up VS2008 but it ran VS2013 instead.
Solution:
After using "File->Properties" to attempt to associate the .sln file with VS2008 something has changed.
Now when I attempt step 2 ("Open with..") I get 2 choices: VS2013 and "Visual Studio Version Selector". Selecting "Version Selector" with "Use the App for all .sln files" checked will cause subsequent .sln files to be opened with the correct Visual Studio.

VS2010 not show up if SQL Server 2012 installed before

I installed them in this order:
Install SQL Server 2012 SP1 x64
Visual Studio 2010
This is the proper order that other developers recommended and as i did.
The problem is, if SQL Server 2012 installed on the system, VS2010 shortcuts are not show up.
How can I fix this?
Note: OS is Windows 8.
This is a bug.
A workaround is to navigate to C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Microsoft Visual Studio 2010, right-click on the
shortcut called Microsoft Visual Studio 2010, and select Pin to Start.
After this, there will be two shortcuts targeting devenv (one titled
Microsoft SQL Server Data Tools and one titled Microsoft Visual Studio
2010)
Refer: http://connect.microsoft.com/VisualStudio/feedback/details/730276/after-installing-sql-server-2012-on-my-windows-8-pc-visual-studio-2010-shortcuts-disappeared
As the OP stated. I too installed SQL before VS. I always do. So I was baffled when i could not find my VS2010 shortcut.
It turns out that the icon is mis-named. If you open (or check the properties) of the icon in the Visual Studio 2010 start menu folder called "Sql Server Data Tools". You may find it is actually the VS 2010 IDE.
Workaround provided by
http://connect.microsoft.com/VisualStudio/feedback/details/730276/after-installing-sql-server-2012-on-my-windows-8-pc-visual-studio-2010-shortcuts-disappeared
Edit the shortcut start target. For instance. I made mine not display the splash page.
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /nosplash
Then repin it to the start menu (right click).
Installing Visual Studio 2010 SP1 seems to fix this as well, its available to download from here http://www.microsoft.com/en-us/download/details.aspx?id=23691 If you run devenv.exe it should prompt you to do this also.

Visual Studio Run as administrator shortcut

how do I create a shortcut that runs Visual Studio with Administrator rights?
Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and choose "Run as Administrator".
Right-click on the shortcut, select Properties. On the Shortcut tab, click the Advanced button (bottom right). Check the Run As Administrator box.
I know the OP was about how to create a shortcut that runs VS as admin, but using the steps below you can just always have VS launch as admin.
This is a copy of my answer to a similar post on SuperUser:
Option 1 - Set VSLauncher.exe and DevEnv.exe to always run as admin
To have Visual Studio always run as admin when opening any .sln file:
Navigate to C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe.
Right-click on VSLauncher.exe and choose Troubleshoot compatibility.
Choose Troubleshoot program.
Check off The program requires additional permissions and hit Next.
Click the Test the program... button to launch VS.
Click Next, then hit Yes, save these settings for this program, and then the close buton.
To have Visual Studio always run as an admin when just opening visual studio directly, do the same thing to the DevEnv.exe file(s). These file are located at:
Visual Studio 2010
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Visual Studio 2012
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Visual Studio 2013
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Visual Studio 2015
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Option 2 - Use VSCommands extension for Visual Studio
Install the free VSCommands extension for Visual Studio (it's in the Visual Studio Extensions Gallery) and then configure it to always have Visual Studio start with admin privileges by going to Tools -> VSCommands -> Options -> IDE Enhancements -> General and check off Always start Visual Studio with elevated permissions and click the Save button.
Note: VSCommands is not currently available for VS 2015, but their site says they are working on updating it to support VS 2015.
My Opinion
I prefer Option 2 because:
it also allows you to easily turn off this functionality.
VSCommands comes with lots of other great features so I always have it installed anyways.
it's just easier to do than option 1.
What I was looking for was a way of running Visual Studio Solution files (.sln) as Administrator. I just found a pretty good way of doing this...
Place this content inside a file named RunAsAdministrator.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\runas\Command]
#="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""
Double click the file to execute it.
Now, when you right click a file you'll have the option of running it as Adminstrator like this:
Here's the full story by the AWESOME David Ebbo: Open your solution files as admin
Create a shortcut to Visual Studio on your desktop
Right-click on the program
"Send to"
"Desktop (create shortcut)"
Open up properties
Right-click on the shortcut
"Properties"
Within the "Shortcut" tab, click on "Advanced..." (somewhat towards bottom right)
Select "Run as administrator" in the new window
Apply and OK all the windows.
Now when you use this shortcut, it should run the program as administrator.
The above answers works, but on Windows 10 you might bump with disabled advanced shortcut screen. So for windows 10 do the following:
Create shortcut to the solution file
Right click the shortcut => properties
Choose Shortcut tab
Under Target add the visual studio executable location before the sln path. For example:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" C:\mypath\example\example.sln
Press Advanced under the shortcut tab - you'll be able to edit the advances window.
Select "Run as administrator"
Press ok
Double click the shortcut - you should be able to run the solution as administrator now.
Ctrl + Shift + Clicking on Visual Studio 2019 shortcut seems to open Visual Studio Professional 2019 in admin mode.

Resources