As in the title. Is it possible? When I rightclick on Visual Studio in a Taskbar I have a "Recent" category there i have but 1 .cs file that I can pin.
Now the question is: what to do to pin a .sln solution there?
If you pin the VSLauncher.exe to the taskbar (drag it in) you will get recent projects and solutions on the right click menu.
You can find this exe in your program files / common files directory. Mine is in
C:\Program Files\Common Files\Microsoft Shared\MSENV\VSLauncher.exe
You can also do this by dragging a solution into the task bar (which does the same as the above). If you do this rightclicking it will show recent projects and solutions.
Hope this helps.
This is for Visual C++ 2008 Express Edition. You may adapt for other editions.
reg add HKCR\.sln\OpenWithProgids /v VCExpress.dsw.9.0
This is an old question, but I found a way avoid the drawback to the accepted answer that Vladimir Grigorov mentioned in a comment, that an additional VS icon shows up on the taskbar.
Instead of pinning VSLauncher.exe, pin
devenv.exe
(C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE)
to the taskbar.
Now drag your solution onto the VS icon in the taskbar. You should see a tooltip saying "Pin to Microsoft Visual Studio 2010".
Using this method will let you pin solutions to the taskbar without showing additional VS icons on the taskbar.
The VSLauncher.exe needs a solution or project path to do anything usefull. In the right click of the taskbar item you can right click the microsoft version selector and click properties. There you will then be able to give it a path by editing the target field. This will stop you getting the error.
This is all based on adding one solution to the task bar as per your question. I did not find a way of adding more than one!
Hope this helps.
To expand on karyonix's answer:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0]
#="Microsoft Visual Studio Solution"
"InfoTip"="prop:Size;Type;DocComments;Write"
"TileInfo"="prop:Type;DocComments;Size"
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell]
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell\Open]
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\shell\Open\command]
#="\"c:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe\" \"%1\""
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx]
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx\IconHandler]
#="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"
[HKEY_CLASSES_ROOT\VisualStudio.sln.9.0\ShellEx\PropertyHandler]
#="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"
[HKEY_CLASSES_ROOT\.sln\OpenWithProgids]
"VisualStudio.sln.9.0"=""
Note the reference to Program Files (x86) - adjust if you're not running 64-bit Windows.
This adds Visual Studio 2008 to the "Open With" menu, and enables recent solutions in the right-click menu.
Just wanted to add to Blorgbeard and karyonix that this definitely works, and here's how I modified it to work with VS 2005 sln files:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.sln]
[HKEY_CLASSES_ROOT\.sln\OpenWithProgids]
"VisualStudio.sln.8.0"=""
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0]
#="Microsoft Visual Studio Solution"
"InfoTip"="prop:Size;Type;DocComments;Write"
"TileInfo"="prop:Type;DocComments;Size"
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell]
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell\Open]
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\shell\Open\command]
#="\"D:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\IDE\\devenv.exe\" \"%1\""
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx]
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx\IconHandler]
#="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"
[HKEY_CLASSES_ROOT\VisualStudio.sln.8.0\ShellEx\PropertyHandler]
#="{9A2B23E4-2A50-48DB-B3C3-F5EA12947CB8}"
Make sure you edit the command path correctly, because for 2005 the folder is Microsoft Visual Studio 8, not 8.0
I lost my pinned solutions after clicking solution from inaccessible drive. Here is how to fix:
Follow these steps
Restart explorer.exe process
Related
In Windows Explorer when I double-click on any Visual Studio file (*.cs, *.csproj, etc.), it's opening an old version of VS instead of the latest one (VS 2017). And VS has associations with too many file types.
How can I change the default Visual Studio (for all those files that VS can handle)?
There is a similar old question about Visual Studio 2008 (Move file associations from Visual Studio 2005 to 2008) but the solution in there doesn't work anymore (there is no "Restore File Associations" button on the settings of Visual Studio 2017).
Each version of Visual Studio registers itself in the Set Default Programs panel of the Control Panel.
Go to Control Panel\Programs\Default Programs
Then choose Set Default Programs:
In there you can simply choose the Visual studio version of your choice and then click the button Set this program as default in order to associate every file type that VS handles.
Or you might prefer to click the button Choose defaults for this program to review the current associations of those file types and change only the ones you want.
Yet another in a long list of previously working-just-fine things which Microsoft have managed totally #$#%# up. If I try to change defaults the 'right' way I get this kind of thing:
i.e. completely ignored. The only way I've managed to solve it is by removing the file association entirely through the registry. Let's take .asm as an example:
Open Registry Editor / "regedit.exe"
Navigate to HKEY_CLASSES_ROOT\.asm\OpenWithProgIds
Delete any Visual Studio values you see
From there, you can (finally) open files with whatever you choose instead of having the association clamped to Visual Studio:
For the record, I believe this to be a problem with Windows 10. Not with Visual Studio. See: https://answers.microsoft.com/en-us/windows/forum/windows_10-files/cant-change-default-programs-in-windows-10/229fc3a9-25c9-433b-a333-5806bc5090db
On the file you will always open with vs17, click right and choose open with and there choose another app. On win10 it pop out a dialog with some proposals. If vs17 is there, choose your favorite and activate the always open with. then ok and your done.
I'm really tired of this error.
Most of the time, when I want to debug the program , I'm faced with this message.
Microsoft to offer solutions, but it is quite confusing:
1.
Make sure the Visual Studio Remote Debugging Monitor is installed and running on the remote machine.
2.
Make sure the Remote Server Name is correct in the Name box in the Project Properties dialog box.
3.
Verify that the remote machine is accessible on the network.
please someone help and guide me because all of my projects have been suspended and i need visual studio debugging.
meanwhile, when i dc from internet, visual studio will work.
Windows 7 x64, VS 2012, VB.NET
I fixed it like this:-
Create a shortcut on your desktop to "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Remote Debugger\x64\msvsmon.exe".
Right-click shortcut and select "Properties" from the dropdown menu.
Select the "Compatibity" tab
Tick "Run this program as administrator"
Click OK
Create a shortcut on your desktop to "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe".
Right-click shortcut and select "Properties" from the dropdown menu.
Select the "Compatibity" tab
Tick "Run this program as administrator"
Click OK
To start VS2012:-
1) Double-click the msvsmon shortcut icon (that you created above, to launch msvsmon)
2) Double-click the "Visual Studio 2012 Professional" shortcut icon (that you created above, to launch VS2012)
3) In VS2012, ensure standard toolbar is visible.
4) In VS2012, ensure "Solution Platforms" dropdown (on standard toolbar) is visible and set to "x86".
and ... wowee ... debug works !
I had the same problem. I fixed changing in properties/compile/target platform to x86 instead of Any CPU. It was the problem in my case. Hope it helps.
I got this error when starting VS2012 as a normal user. When starting as an administrator it opened up a UserControl TestContainer window instead.
What have happend was that the startup project was changed. I changed back to my ordinary startup project by right-click on it and choose "Set as StartUp Project".
I have started vs 2012 as administrator and it is fixed
I just installed visual studio 2010 on my win7 32 bit computer and i get the following message when I start it:
"the application data folder for visual studio cannot be created"
I had this same version of visual studio on my xp sp3 computer and it worked fine.
I googled for various solutions but nothing worked.
I tried to run:
"%programfiles%\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /setup
and to edit the [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] AppData entry (but it was already okay). I tried to run as administrator.
Is there any other fix to this problem?
ps: after I installed visaul studio there was no desktop shortcut, the start menu folder was empty until I added premmisions for myself (I'm already admin...) and after that the start menu shortcit had no icon and didn't work so I had to run visual studion from the installation folders devenv.exe.
It sounds like Visual Studio is having problems creating the following folder
%USERPROFILE%\AppData\Local\Microsoft\VisualStudio
Or one of the sub folders it creates for storing data (10.0 for example). I would first try accessing that directory location or it's parent and make sure that your account has the proper permissions to create folders in that location.
Go to your AppData folder (c:\Users\\AppData)
Right click, Security tab; click Advanced button.
If your username is not in the "Group or user names" list, click the Edit button and add it.
Give yourself full control.
Make sure your select "apply to all subfolders".
Restart Visual Studio.
Mine was the same issue but for VS 2013. On your C:\Users\xxx\AppData\Local, find my Microsoft folder and Right-Click, properties, uncheck ReadOnly and make sure your name is under Security with full access. Then right-click on installer and try repair (or fresh install).
I tried to right click and run VS2010 as administrator and it worked :D
I solved my problem by changing permissions to the roaming folder, not local.
%USERPROFILE%\AppData\Roaming\Microsoft\
I figured it out after reading this:
http://tutewall.com/application-data-folder-for-visual-studio-could-not-be-created/
With Windows 10 x64, I solved this probem running the IDE as Administrator (right clic > Run as administrator)
if you have more than 1 vs versions installed, then simply change open with (or select vs 2015 or any stable version from upper open option) visual studio 2015
Then the solution is prepared and displayed.
Thanks.
I have encountered a strange error. I use Windows 7 x64. Visual Studio 2010 (VS10) and Visual Studio 2008 (VS08) are both installed. Now i want to make sure that when i doubleclick open a .vcproj file it is being opened by VS8 and not VS10. Now this seems like a trivial problem, but:
"righclick -> open with -> choose default program -> select devenv.exe of VS08 -> always open with" doesnt work. In fact after browsing for devenv.exe of VS08 it does not show up in the list/menue where it is supposed to be displayed.
This is very strange and annoying, maybe someone already encountered this error and know a solution.
I GOT IT! For the Express versions at least. I strongly suspect these instructions can be modified to apply to the full version. The names will change of course.
I spent a lot more time on this than I will ever save by being able to click through to the correct IDE, but darn it, I just hate to give up.
Here's the deal. Strangely, the associations seem to be keyed to the program file names. (Say, what?? That sure is the way it looks to me.) Both VC++ Express 2008 and 2010 are named VCExpress.exe. We'll give the 2008 version an alias. We'll also use a doppelganger to pull off something of a ruse.
Navigate to "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE". Make a copy of VCExpress.exe, (not a shortcut), and re-name it VCExpress-2008.exe. (It would probably do just to re-name the original and use the new name in step 3.)
Open regedit.exe. Create a new key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\VSExpress-2008.exe
Edit the (default) value in that key, to hold the string "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\VCExpress.exe" [sic]
Go through the drill with the file-association dialog again. Right-click, open with, choose default program, yada, yada, yada. Browse your way down to C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE and click on VSExpress-2008.exe.
VCExpress-2008 now shows up as a program in good standing, with its icon proudly displayed on the front page above the fold. (Don't tell the dialog, but you and I know it really points to VCExpress.exe, not the copy we made.) Click it.
Celebrate.
Ok i finally found a way. You can use the application "default programs editor" to mess with the standard file associations.
I want to clear the list of projects on the start page...how do I do this? I know I can track it down in the registry, but is there an approved route to go?
There is an MSDN article here which suggests that you just move the projects to a new directory.
However, as you mentioned, the list of projects is kept in the registry under this key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\ProjectMRUList
and the list of recent files is kept in this key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\FILEMRUList
Note For Visual Studio 2015:
The location has changed. You can check out this answer for details.
Some people have automated clearing this registry key with their own tools:
Visual Studio Most Recent Files Utility
Add-in for cleaning Visual Studio 2008 MRU Projects list
PowerCommands for Visual Studio 2008
Features
Clear Recent File List
Clear Recent Project List
Clear All Panes
Copy Path
Email CodeSnippet
Insert Guid Attribute
Show All Files
Undo Close
Collapse Projects
Copy Class
Paste Class
Copy References
Paste References
Copy As Project Reference
Edit Project File
Open Containing Folder
Open Command Prompt
Unload Projects
Reload Projects
Remove and Sort Usings
Extract Constant
Transform Templates
Close All
If you try opening up a project that can no longer be found, Visual Studio will prompt you for permission to remove it from the MRU list. So if you temporarily rename an appropriate top level folder to fake the projects' disappearance, you can get rid of the projects one by one.
In Visual Studio 2015 all the history lists (including search history, file MRU and project MRU) are now located at:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\MRUItems
You will see a different GUID folder for each list, and a sub-folder called Items in each of them. Find the Items folder that contains the relevant list, and just delete its parent GUID folder.
Visual Studio will re-create the GUID folder together with a new Items child folder, next time it wants to add something to the list again.
I found the MRU editor from Code Project a great tool for that. No problems with it, and it works on 2003, 2005, and 2008.
Note: This answer is specific to Visual Studio 2010.
If you don't want to manually edit the registry, you can use PowerCommands for Visual Studio 2010.
PowerCommands 10.0 is a set of useful extensions for the Visual Studio
2010 adding additional functionality to various areas of the IDE.
The specific command for clearing the registry from the extension is:
Clear Recent Project List This command clears the Visual Studio recent project list. The Clear Recent Project List command brings up a
Clear File dialog which allows any or all recent projects to be
selected.
The PowerCommands can be installed with the Visual Studio extension manager: Tools > Extension Manager > Online Gallery: search for PowerCommands for Visual Studio 2010.
Try Recently Used Files: a free addin for Visual Studio that manages MRU files on a per-project basis:
Supported for VS 2010, 2012, 2013.
For Visual Studio 2012, 2013:
http://visualstudiogallery.msdn.microsoft.com/a61cbd1d-b5a2-490b-a6bb-f0ea3ecf214a
For Visual Studio 2010:
http://visualstudiogallery.msdn.microsoft.com/45283881-5a62-4dc1-8ffb-4cbc02709947
For Visual Studio 2013:
Open the Run dialog (Press Win + R)
type: regedit
navigate to: HKEY_CURRENT_USER > Software > Microsoft > VisualStudio
click 12.0 then the files will show up on the right side.
Look for the "LastLoadedSolution", right click then click Modify
change the value to 0.
This worked for me.
I'm not sure if this solution has been posted somewhere here, but if you have VS 2013 Update 5 you can open start page, and right click project below "Recent" list, and choose "Remove from list". I don't know how about other VS versions, maybe this feature is available.
I had this issue as applied to VS 2017 where you do not have any MRU items in the registry as in the previous versions. The solution was, on the other hand, simple: go to "Tools->Extensions and Updates" and install "Power Commands for Visual Studio". After they have been installed, your File menu will look as shown below.
Just click the menu item to clear the project MRU.