Synchronise Visual Studio Instances - visual-studio-2010

Is there any tool or plugin that can synchronise visual studio so that when I use it at home the same windows are open in the same configuration as when I left work?

Have you tried Pepper?
Will sync (most of) your settings to the/ a cloud somewhere.

Visual Studio Live Share may be able to be used to get this behaviour.

Related

Opening WSL files in Visual Studio 2022

TL;DR: Has anyone found a way to open folders in WSL2 using Visual Studio 2022?
Context: I am developing a C/C++ Linux software. Currently, I am using VisualStudio Code to open and edit source files. Now, I am way more efficient with Visual Studio 2022 and I cannot find a way to open folders inside of WSL2. (Single files work, but that is nearly not good enough for a proper workflow).
I have tried following this answer, but it does not do what I need.
Further, according to this MS devblog, quote:
"Our C++ cross-platform support in Visual Studio assumes that all source files originate in the Windows file system." This is not the case for me, my files originate in WSL2 and making them originate in Windows would be a hassle that would outweigh the benefits gained from working with VS2022.
Note: I only want to write code this way. Building and running the software is done somewhere else.
Anyone managed to make this work?
It is not possible at this moment according to https://devblogs.microsoft.com/dotnet/debug-your-net-core-apps-in-wsl-2-with-visual-studio/#comment-7947
https://developercommunity.visualstudio.com/t/cant-debug-dotnet-core-project-in-wsl/1554569
The feedback was from Oct 19, 2021. I am very disappointed.
Currently the extension only support opening projects that are stored in the windows disks (it leverages WSLs automount feature). If opening from a network location is something you need please add it as a suggestion on Developer Community.

What is vshub.exe in the system tray?

I installed Visual Studio 14. Now I have a new app VsHub in the system tray / notification area. What is it? I tried clicking and right-clicking on it, it doesn't do anything.
According to Visual Studio Blog site (http://blogs.msdn.com/b/visualstudio/archive/2014/08/18/visual-studio-14-ctp-3-released.aspx?PageIndex=2&wa=wsignin1.0):
"The Visual Studio Hub is an executable that supports multi-tool
communication across the VS family of apps, service
composition/isolation, and data/compute outside of the Visual Studio
process."
I solved stopping the folliwing Windows service:
Visual Studio Standard Collector Service
After stop, my pc is returned to work correclty, without strange load.
I hope this help you.
I have a slightly more direct solution to this. It's relatively trivial to locate where VSHub.exe and its cohorts are on your hard disk. Just go into that directory, take ownership of all the .exe files contained in it, and for each of them use "Right Click" / "Properties" / Security, and add an ACL that denies execute permissions to everyone.
Problem solved. You will need to re-do this every time you update VS 2015, but on my low power laptop, I simply can't afford the resources to keep all these unnecessary tools running. VS 2015 runs just fine without them: I can edit, build and debug programs without any problems at all.
Sure, I may be missing some of the more esoteric features of VS 2015, but for my use case YAGNI

Sync Extensions in Visual Studio 2013 between multiple machines

I'm sure this is a common problem, but I can't find much info about it.
Problem
I have a work computer, a home computer, a surface, and maybe some Azure VMs that i'd like my visual studio 2013 extensions synced across them. I seem to have to refresh/wipe a computer fairly often, and re-installing all the extensions I like to use is sort of a pain. I initally thought the new VS Profiles would do this, but apparently they only sync themes/general settings.
Attempted/Outdated Solutions
There used to be an extenstion that apparently did this
Extension Sync
But that looks like it's only for VS 2010. There was also a blog post that showed the location that the extensions were saved in.
http://www.larswilhelmsen.com/2012/01/08/syncing-visual-studio-extensions-and-settings-with-dropbox/
Which looked like a perfect solution, except in 2013/2013 the extensions location must have changed, and I cannot find them.
Question
Does anyone know how I could sync my extensions across multiple machines? Or possibly know the location that the Extensions are stored in and if it's possible to change that location to something like Dropbox/Skydrive/Google Drive?
If you've upgraded to Visual Studio 2015 there's a new extension that Microsoft just released for it called the Roaming Extension Manager.
It sounds like this is what you are looking for.
https://visualstudiogallery.msdn.microsoft.com/7b421a95-c32c-4433-a2be-a41b276013ab?SRC=Home
There's something called the "User State Migration Tool" that is intended for preserving state in corporate PC desktop deployments for wipe-and-load, similar to your Azure scenario.
If you know something about the way the extension settings are saved (as shown in the blog), it's not too hard to construct an XML descriptor and use the deployment tool to apply the settings. The tool is command line so it is easily automated.
http://technet.microsoft.com/en-us/library/hh825142.aspx
This solution has increasing value when you have more than just Visual Studio to migrate into your VM.
there is new Extention for Visual Studio 2022 there which allow to import/export
Extension Manager

Web Deploy to multiple servers at once from within Visual Studio 2010

What is the easiest way to deploy to multiple servers with as few clicks as possible from within Visual Studio? We are using web deploy, not FTP or file system if that is helpful.
Not sure that's possible from within Visual Studio.
Take a look at this article. It describes doing it via the commandline, which might be useful.
http://msdn.microsoft.com/en-us/library/ff731049.aspx

intellitrace standalone recorder

I know that Test Case Management app silently records intellitrace data dump files (http://blogs.msdn.com/jennifer/archive/2008/12/05/visual-studio-team-system-vsts-2010-making-testing-easier.aspx)
I was curious if there is a standalone version that allows to record intellitrace logs (e.g. something that would sit in the tray window).
VSTraceLog.exe under "Microsoft Visual Studio 10.0\Team Tools\TraceDebugger Tools" could be what you are looking for.
VSTraceLog.exe /? to get the different options.
A simple example: VSTracelog.exe launch /cp:CollectionPlan.xml /f:logfilename.tdlog TheExecutableToLog.exe
You'll want to copy the file "Microsoft Visual Studio 10.0\Team Tools\TraceDebugger Tools\en\CollectionPlan.xml" to a known location and modify it. Open the XML file and find "DiagnosticEventInstrumentation" set the enabled attribute to true. Optionally you can enable "TraceInstrumentation" as well. Enabling TraceInstrumentation would be like enabling Tools->Options->IntelliTrace->events and call information.
With Visual Studio 2012 there is a fully supported standalone version available. http://www.microsoft.com/en-us/download/details.aspx?id=29036
You might also be interested in http://naveensrinivasan.com/2010/04/28/useintellitracewithoutvsnet/, which describes how to run IntelliTrace on PCs that don't have Visual Studio installed. In this case it would apply to you if you aren't running VS2010 Ultimate.

Resources