Visual Studio 2010 RC is missing installed WPF Templates for certain project - visual-studio

only with a certain .Net 4.0 project I can not add a new Window item to my project in the solution explorer. In the installed Templates for WPF there is only the UserControl ?
What happened?
edit: In that direcotry => C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\WPF\1033
I can see all the wpf templates... so why aren`t they all shown in the WPF=>Installed Templates section?
I have done in the command shell with admin rights devenv /resetsettings, devenv /setup, devenv /installvstemplates and I reassigned the project templates/item templates path to the above itemTempaltes path and analog to the ProjectTemplate path where I could see all templates.
Nothing worked!?

They don't appear because of your project type.
The solution, to quote CoolDadTx:
If you select a WPF Custom Control or WPF User Control library then you should see the options. If you use any other type of library then they don't show up as an option. It isn't that you can't use them, just that they don't show up.

Related

Visual Studio 2010 Toolbox Is Empty

My toolbox is empty.
Obviously, I'm not the first. I read this question and this other question, but that didn't help.
I click here...
I get this window...
With instructions that say: "...Drag an item onto this text, to add it to the toolbox..."
Sounds good; from where do I get such items to drag?
The toolbox is empty because there is no project loaded.
The toolbox is populated with tools/controls according to the type of the current project. The controls are different for MFC than they are for ASP.NET, for example. If you haven't loaded any project, Visual Studio can't populate the toolbox.
Either open an existing project, or go to File -> New Project to create a new one.
Have you tried right-clicking on it and selecting the "Reset Toolbox" option? You can also try to manually add specific tools to it by using the "Choose Items..." option.
A common suggest is also to go into the Visual Studio 2010 Directory and delete all of the .tbd files within the following directory (Related) :
C:\Documents and Settings\Local Settings\Application Data\Microsoft\VisualStudio\10.0"
Although if neither of these options work, you will really want to consider possibly reinstalling / repairing Visual Studio.
Is your project running? I noticed that my toolbox is empty when I am debugging the project. Try stopping debugging.

How to add existing Template to Visual Studio?

Particularly for VS.NET 2013, how do you add a template? I've created a custom template. VS.NET adds it to \Libraries\Documents\Visual Studio 2013\Templates\ItemTemplates. I'd like to know import that template into VS.NET on a different machine.
When I rename the zip template in the above location, that name doesn't show up in the add new item dialogue box in VS.NET. Are there any steps for adding a template?
Maybe you can add the template to [Visual Studio installation path]\Common7\IDE\ItemTemplates\ of the other machine.
And then run the command devenv /installvstemplates in your Developer Command Prompt
Source:
http://msdn.microsoft.com/en-us/library/ms241279.aspx

Xamarin.Android Intellisense not working in Visual Studio 2010

I'm testing out Xamarin.Android in Visual Studio 2010 and have noticed that I have no Android Intellisense when I'm working in an Android Layout (.axml) file. However, I do get Android Intellisense when I'm working in a .cs file.
Example:
Here is a screenshot of my Main.axml file that lives in my Layout directory. Notice how the intellisense doesn't contain anything within the Android namespace.
What do I need to do to get intellisense to display the Android namespace in a .axml file?
Kannan Balasubramanian has posted an answer that worked for me (Binary Bits)
Here's Kannan's solution:
Most of the people who work with Xamarin’s Mono for Android in Visual Studio 2012 face a bug where Intellisense doesn’t work for AXML in source view.
One of the fix which worked for me is mentioned below.
Launch Visual Studio 2012
Open a solution with .AXML file in it
Now XML main menu should be visible on top
Open “Schemas…” menu
Sort by “File Name” column and see if “android-layout-xml” and schemas.android.com.apk.res.android” are there. If found, skip to step 13
If not found, go to “Program Files” if 32-bit system or “Program Files (x86)” if 64-bit system.
Then go to “\MSBuild\Novell” or “\MSBuild\Xamarin\Android”
You should be able to see 2 files “android-layout-xml.xsd” and “schemas.android.com.apk.res.android.xsd”
Copy these 2 files to “\Microsoft Visual Studio 11.0\Xml\Schemas”
Again open the “Schemas…” menu as mentioned in steps 3&4
Now click “Add…” button and add these 2 files which should be located as mentioned in step 7 & 8
Now restart visual studio and the XML editor for design layout should work fine with Intellisense
From step 5….
If above steps don’t work, then close the Visual Studio 2012.
Now open “Developer command prompt for VS2012″ under Windows programs menu.
Type “Devenv /ResetSettings” without quotes.
Launch Visual Studio 2012 and see if Intellisense works.
If still not working, better go to Xamarin forums and post there.
I just installed the latest release Xamarin.Android 6.0.1 – this may have been resolved in this release

How to add action to Visual Studio Solution Explorer?

Please let me know how to add an action into the context-menu of "Solution Explorer" in Visual Studio?
I'd like to add my action into the context-menu of files listed in this explorer (see a screenshot for example), and then be able to launch my application (EXE file) that can get the filename (including its path) as an argument.
I currently use VS2008, however please let me know if that should be different with VS2010 and VS2012.
THANK YOU
Write your own visual studio Add-In take a look at that link this is good place to start. but its not easy...
You're going to have to write a Visual Studio Add-In.
Take a look at the code for the Xsd2Code addin on codeplex. Specifically the Connect class. This addin does something similar to what you want... it adds a context menu option that's available when you right-click on project items (in this case, only enabled for .xsd files).
Also, check out the Solution Explorer Context Menu sample within the Visual Studio 2005 Automation Samples download.

How do you clear your MRU list in Visual Studio?

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.

Resources