How to remove duplicate entries in Visual Studio Selector? - visual-studio-2010

I'm using Visual C++ Express 2010. Weird thing, when I start *.sln file with "Microsoft Visual Studio Version Selector" (dblclick in explorer for example), I get 2 lines for each installed product.
Meaning duplicated (2010 and 10 are the same)
Visual C++ 2010
Visual C++ 10
How to remove one of them?
Screenshot of "About" dialog.

The values are probably in the registry. You should be able to figure out where the settings on with the help of Sysinternal's Process Monitor.
The Visual Studio Launcher is called VSLauncher.exe. If you filter for registry operations that are performed by that executable, it shouldn't be too hard to find.
.
I have made a github repo with the filter and the procmon events for your reference. Hope this helps.

Related

Solution-wide TODO list for C++ projects in Visual Studio

Is there any working add-in, fixing the broken (only showing entries for the current file) task window for Visual Studio C++ projects?
These could be one-trick solutions or functionality contained in some larger add-in. I wasn't able to find such a thing.
It appears that there is a working Visual Studio extension on visualstudiogallery that does that:
FeinTasks

Visual Studio takes ages creating a project

I have problem with my Visual studio 2013. When I'm trying to create even a simple console application,VS hangs and after a while the message 'Visual studio is busy: Microsoft Visual studio is waiting for internal operation to complete.' shows up.
I have reinstalled Visual Studio but without any luck. I've used ProcMon to check devenv and all the paths it shows, have to do with Android Studio.
I 'solved' the problem by accident. I disabled Source Control and for some reason, VS started working again. I know it's not an ideal solution but works just fine when you need VS urgently.
Don't know if Visual Studio is one of those programs. Someone correct me if I'm wrong, but I believe even after uninstalling, Visual Studio keeps some files in the registry from your previous installation and the AppData folder. You might want to clear those.
Close Visual Studio (if you haven’t already).
Open the registry editor (regedit.exe)
Delete the
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio{version}
Delete the
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio{version}_Config
Delete the %USERNAME%\AppData\Local\Microsoft\VisualStudio{version}
directory.
Use {version}=10.0 for Visual Studio 2010
Use {version}=11.0 for Visual Studio 2012
Use {version}=12.0 for Visual Studio 2013
Hope this helps

Visual Studio 11 and handling msvcr110.dll

I decided to try out Visual Studio 11, concluded that I don't like it and uninstalled it promptly. It seems quite a few of my old projects now crash with the following error.
The program can't start because MSVCR110D.dll is missing from your computer. Try reinstalling the program to fix this problem.
Unfortunately my understanding of the problem ends here, the solutions I've come across seem to suggest to change the runtime library to Multi-Threaded which results in even more errors that I don't have the knowledge or patience to deal with.
In short the question would be, how can I undo the changes Visual Studio 11 made, whatever they are.
As the comment by Hans Passant says, Microsoft does not permit the debug dll to be redistributable; they are only available when Visual Studio is installed.
Even if you are able to rebuild your projects as release builds, you may get a new problem on machines when you try to run the projects, namely, missing mvcr110.dll.
In this case, and Visual Studio need not be installed, you can get the missing dll from Microsoft.
Microsoft provides downloadable installers for these redistributable dll at:
http://www.microsoft.com/en-us/download/details.aspx?id=30679
Run the appropriate installers.
VSU3\vcredist_arm.exe , VSU3\vcredist_x64.exe , VSU3\vcredist_x86.exe
You need to downgrade the "Platfrom Toolset" property for each of your projects from v110 to v100(or v90).
To change the project toolset
In Visual Studio, in Solution Explorer, open the shortcut menu for your project and then choose Properties.
In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.
In the left pane of the dialog box, expand Configuration Properties and then select General.
In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list. For example, if you want to compile with the Visual Studio 2010 toolset, select Visual Studio 2010 (v100).
Choose the OK button.
That one is a DLL from Microsoft VS 2011/2
qutoing from http://www.rhyous.com (it talks about msvcrt100.dll but it's the same principle):
"This msvcr100.dll is the Microsoft Visual C++ Redistributable dll
that is needed for projects built with Visual Studio 2010. The dll
letters spell this out. MS = Microsoft, V = Visual, C = C program
language, R = Run-time, 100 = Version "
If you create a C++ project in Visual Studio 2010, this file is probably needed.
you need to install the MS redistributable, but seems it's not yet available
see this thread - http://social.msdn.microsoft.com/Forums/en-US/parallelcppnative/thread/8963c3d9-26ec-4748-af95-7c696a27c431
I would guess that your compiler is still the VS2011 one, that's why your program depends on vs2011 DLLs..
Just hat the same problem after updating my Visual Studio. The problem is that the new project is using the v110 plattform and the old one was using the v110 platform. That means I required now the Microsoft Visual C++ 2012 Redistributable as mentioned here:
http://www.admin-enclave.com/en/solutions/windows/82-how-to-fix-the-program-cant-start-because-msvcr110-dll-is-missing-from-your-computer-error-on-windows.html

How do I see the list of addins and plugins in Visual Studio?

I think I have a plugin or addin to studio installed which has killed all versions of studio.
Where can I see the list of plugins and addins that studio is loading? I believe I have gone through all of the menu to find the list of addins.
Would someone point me in the direction that shows me the list of addins? I will remove them all one by one until I find the one that is "killing my productivity" for the day. :)
They appear in three difference places, but any given addin/package doesn't necessarily appear in in all those places:
The splash screen
Tools / Add-in manager
Help / About (in the "Installed products" list)
In Visual Studio 2013, go to the "Tools" menu and open "Extensions and Updates".
In "Installed"->"All" section you can see it all.
Try looking at your packages installed for Visual Studio. They are registered in the registry under:
Visual Studio 2008
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\Packages
Visual Studio 2005
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp
Packages are the complete installs of all addins, automations, and alike.
If you have a lot, I say kill them all. And then reinstall your specific addons (such as CodeSmith or VisualSVN). You may need to clean up the addons that were manually added. But, I think that once you remove the "Package", it disables those addons and automation tools automatically.
For reference, this is my fresh new install of Visual Studio 2008 SP1 on Windows 7 RTM. Only 1 plugin, and it's for SQL Server's SSIS:
registery http://eduncan911.com/blog/thumbnail/billrob-stackoverflow.png
Go to the Tools menu and open Add-in manager. Or you can go to the visual studio folder inside of My Documents and look in the addins folder.

VS Studio Crashes hard with "encountered a user-defined breakpoint" error on any config file

I have a odd problem here I can't figure out.
alt text http://billrob.com/images/studioerror.jpg
This happens each time I open the web.config file in my project. Studio crashes immediately after clicking close. Clicking debug just opens and empty Studio with the debugger attached to nothing.
I even resorted to open studio 2008 naked, without and project or solution, and then manually browsed to the web.config. It still crashes.
Other info:
All *.config files with crash as soon as the file opens.
This occurs in both VS 2005 and 2008.
Any file named .config, whether a .cs file renamed, or an empty text file called bob.config.
Any help would be greatly appreciated.
Try looking at your packages installed for Visual Studio. They are registered in the registry under:
Visual Studio 2008
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\Packages
Visual Studio 2005
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0Exp
If you have a lot, I say kill them all. And then reinstall your specific addons (such as CodeSmith or VisualSVN).
For reference, this is my fresh new install of Visual Studio 2008 SP1 on Windows 7 RTM. Only 1 plugin, and it's for SQL Server's SSIS:
registery http://eduncan911.com/blog/thumbnail/billrob-stackoverflow.png

Resources