In Visual Studio 2015 IDE, I have several ConnectionStrings.versionX.config files nested under the main ConnectionStrings.config. I created some new ones but they are not nested as others. I also created several configurations using the Configuration Manger. In the Solution Explorer when I right click the web.conifg the context menu contains an "add config transformation" option. However, the context menu on the right click of ConnectionStrings.config doesn't have that option. Am I missing something? Thanks.
Related
I've been using Visual Studio since further back then I can remember. Over the years, each new release saw a trend of an ever-growing number of options added to the right-click context menu in the Solution Explorer. 99% of the time I use only 5% of these context menu options. I would like to know if it is possible to remove items from the context menu?
For example:
Open Visual Studio->Create a Solution->Add a project to it->Find the project in the Solution Explorer->Right click on the project->Observe a large number of right-click-menu options.
I'm currently using Visual Studio 2019 CE with a C# build environment.
You can delete items from the project context menu going to Tools - Customize - Commands - Context menu - Project and Solution Context Menus | Project:
Am using VisualStudio 2013, update2. I am facing the below issue when I opened a project in VisualStudio today, I noticed on right clicking a project in the SolutionExplorer the context menu have a lot of options that even have scrolling now. Now I have to scroll down everytime to build or clean a project.
Earlier it was like a short menu like below.
I have not changed any settings but don't know why am facing this issue. I tried to customize the context menu command and chose (Project and solution context menus | Project) from the drop down, but that didn't worked out as it is automatically reset to tfs on clicking the close button. Does any one have idea about how to rectify this?
Note: The context menu has changed only for the projects inside the solution. On right clicking the solution name in solution explorer, I am still getting the same old menu.
From looking at your context menu screenshot, it looks like you have some extensions installed that have introduced these commands. Try disabling some or all of them in Tools > Extensions and Updates Manager to see which ones belong to which extension. There unfortunately isn't a way right now to customize this context menu.
Thanks,
Cathy
Visual Studio IDE Team
Is there an extension to Visual Studio that provides the ability to create something like an 'unloaded project profile' for a solution?
I have a solution with a large number of projects (~100). When working on a certain part, I can unload unrelated projects to improve performance. I'd like to be able to save this group of unloaded projects, so that when I switch to working on a different part I can then cause it's projects to be loaded instead.
I ended up writing my own extension to do this - Loaded Projects, for Visual Studio 2012.
But then I discovered Funnel (by Dimitri Dering), which takes the same concept to the next level, with a more polished UI and additional features.
Visual Studio 2019 has a new concept called "Solution Filter Files".
https://learn.microsoft.com/en-us/visualstudio/ide/filtered-solutions?view=vs-2019
You can right click on a solution after you've unloaded what you want and do "Save as solution filter". It creates a file which is a list of projects to INCLUDE in opening.
So if a new project is added, I don't think it would be picked up.
Another important feature to note is the right click "Show unloaded projects" and the right click "Hide unloaded projects".
FYI - The file looks like this:
{
"solution": {
"path": "IvaraDotNet.sln",
"projects": [
"AssetManagement\\StaticLoad\\AssetManagementStaticLoad.vcxproj",
....
"framework\\oqpersman\\oqpersman.vcxproj"
]
}
}
This guy recommends comparmentalizing projects into "Solution Folders" so you can right-click and load/unload all of the projects in a given solution folder:
http://blogs.msdn.com/b/jjameson/archive/2009/03/06/large-visual-studio-solutions-by-loading-unloading-projects.aspx
He also shows how you can write macros to load or unload groups of projects:
http://blogs.msdn.com/b/jjameson/archive/2009/03/11/visual-studio-macros-for-unloading-reloading-projects.aspx
Looking through the achievement list for Visual Studio 2010, it says that there is an achievement for having 3 startup projects.
How do you have multiple startup projects at once? Whenever I right click a project and select "Set as StartUp Project" it switches my current startup project to the new one. I wasn't aware multiple startup projects was even a possibility.
How to: Set Multiple Startup Projects:
Visual Studio allows you to specify how more than one project is run when you start the debugger.
To set multiple startup projects
In Solution Explorer, select the solution.
On the Project menu, click Properties. The Solution Property Pages Dialog Box opens.
Expand the Common Properties node, and click Startup Project.
Click Multiple Startup Projects and set the project actions. For more information, see Startup Project, Common Properties, Solution Property Pages Dialog Box.
I'm creating an Add-In for Visual Studio 2010.
I want to add the context menu item to the tab during Add-In loading
(in OnConnect method of the Add-In):
I do know how to add the menus using CommandBars.
I already added commands into "Tools" and "Solution Explorer" menus.
I just cannot find the CommandBar responsible for the menu, I need.
Can anybody help me?
Solution found.
You can enable logging of chosen menus.
Details:
http://blogs.msdn.com/b/dr._ex/archive/2007/04/17/using-enablevsiplogging-to-identify-menus-and-commands-with-vs-2005-sp1.aspx
http://blogs.msdn.com/b/dr._ex/archive/2007/04/17/using-ivsproffercommands-to-retrieve-a-visual-studio-commandbar.aspx