Good Day Everyone. Above is the image of the templates I have in my newly installed Visual Studio 2015. I installed it yesterday and noticed that some templates are missing. Specifically Windows Form. I don't know why it became like this.
What do you think is the reason behind this? And what should I do. Thanks.
I had a similar problem and solved it by installing the "C++/CLI support" under the Desktop Development with C++.
Steps:
1: click on New Project in Visual Studio 2017
2: click on "Open Visual Studio Installer" which is right above the Name field box
3: when the installer opens, click on "Desktop Development with C++" on the right-hand side.
4: check the "C++/CLI support"
5: Close down Visual Studio 2017
6: click the Modify button at the bottom left.
7: Re-launch VS when it is done.
8: if all has gone right, you should have access to windows forms in c#
The reason may be due to Windows Forms running on a C++ framework. Without the C++/CLI Support installed, the Windows Forms might not run.
Try to:
Close Visual Studio.
Open "visual studio command prompt" and run the following command:
devenv /installvstemplates
Source
Related
I'm learning how to design a Windows Forms Application in Visual Studio 2017. The tutorial asks me to create a new project using the File -> New -> Project option and selecting 'Windows Forms Application' in the new project dialog box.
However, when I explore this option in Visual Basic, my New Project dialog window only has three options, and the Windows Forms Application is not one of them (see screenshot - attached).
Just wondered if anyone might be able to suggest how to get this option to appear? I have tried looking for the correct option in the Visual Studio installer, but I cannot find it their either.
Screenshot attached.
Because you need to install it.
Go to Visual Studio Installer from the start and check the checkbox .NET Desktop Development.
After that restart the VS 2017.
Open Visual Studio Installer, ‘Modify’ your installation and install the ‘.Net Desktop Development’ workload.
Add "Universal Windows Platform development" to your work load
Visual studio community
I just updated to Visual Studio 2017 Profesional. When I create a no-frills WPF app and start it up in debug, Visual Studio spins for a while and then stops, reporting that the application existed with a code of 0. No window is ever shown. The constructor on the App class is never called.
What is going on? I'm switching back to Visual Studio 2013 in the meantime, but I'd like to get this figured out.
For those of you who voted to close this question, here is how you reproduce:
Launch Visual Studio 2017.
Click File -> New Project.
Select "WPF App (.NET Framework)".
Click OK.
DO NOT CHANGE ANYTHING AT ALL!
Click Start on the Standard toolbar.
After step 4, that is my MCVE. What else do you want?
Visual Studio 2013 with Windows 7, when I want to edit C# code, it show me a error
NO Editor option definition export found for the given option name Visual Studio
like at this picture
(source: ppt.cc)
.
Is something wrong with my Visual Studio?
I just change the path with the "project path " in the tool/option/project/general. but I change back when it happen error.
Follow the steps:
Close Visual Studio
Open the folder: %LocalAppData%\Microsoft\VisualStudio\12.0\
Rename the ComponentModelCache folder
Restart Visual Studio.
Visual studio will recreate the folder and all will be well with the world (or at least VS). I love a simple solution, and I hope its of use to anybody else who runs into this issue!
Resource
I am experiencing a frustrating behaviour of VS2015 Community under Windows 10.
When I create a simple Universal Blank App C# after launching and testing the code the Store menu to create the app packages and launch the certification kit is missing. I checked that my developer account is signed in, enabled developer mode on the machine, reinstalled VS checking to install Universal App development and Windows 10 SDK. Nothing enables this menu. No more options to create apps are present, just Blank App, I had more templates available under VS2013.
It is also weird that when I select to edit appmanifest it never displays the editor, just the XML, it seems like the whole app store environment is disabled. The project is not being recognized as an app.
Another big problem is that the designer does not display the XAML files to see the graphical elements. I get an error screen with tons of errors about null exceptions.
I need to port some 8.1 apps to Win10 Universal and these set of problems are driving me crazy.
Any help more than appreciated.
Possible Fix 1: "Change" the installation to make sure the VS extensions are installed
In certain situations, the Xamarin installer might automatically un-check the install options for the Visual Studio extensions. If that's the cause of the problem in your case, you can install the missing Visual Studio extensions using the installer's "Change" command. For example, if you wanted to install the extensions for Visual Studio 2013:
Open the Windows "Programs and Features" Control Panel.
Right click the "Xamarin" entry, and select "Change".
Click "Next", then "Change".
Make sure the "Xamarin for Visual Studio 2013" option is set to install:
Enable Xamarin for Visual Studio 2013 installation option
Proceed through the rest of the installer wizard.
Possible Fix 2: Ask Visual Studio to set up the extensions again
Check if the Xamarin extensions have been copied into the Visual Studio extensions folder:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Xamarin\Xamarin\3.1.228.0"
If the extensions are properly installed (for version 3.1.228), there will be 60 items in the folder:
List of 'Xamarin\3.1.228.0' folder contents in Explorer
After you have confirmed that this folder looks correct, tell Visual Studio to try setting up the extensions again:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" /setup
Possible Fix 3: Try a fresh reinstall of Xamarin
From the Windows Control Panel, uninstall any of the following that are present:
Xamarin
Xamarin for Windows
Xamarin.Android
Xamarin.iOS
Xamarin for Visual Studio
In Explorer, delete any remaining files from the Xamarin Visual Studio extension folders (all versions, including both Program Files and Program Files (x86)):
C:\Program Files*\Microsoft Visual Studio 1*.0\Common7\IDE\Extensions\Xamarin
Also check in the "VirtualStore" directory to see if there might be any "overlay" copies of any of the extension directories:
%LOCALAPPDATA%\VirtualStore
Open the registry editor (regedit).
Look for this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDlls
Find and delete any entries that match this pattern:
C:\Program Files*\Microsoft Visual Studio 1*.0\Common7\IDE\Extensions\Xamarin
Look for this key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1*.0\ExtensionManager\PendingDeletions
Delete any entries that look like they might be related to Xamarin. For example, here's one that used to cause trouble in older versions of Xamarin:
Mono.VisualStudio.Shell,1.0
Reboot.
Reinstall the current stable version of Xamarin using the individual installer (.msi) download link under Xamarin.iOS -> Windows or Xamarin.Android -> Windows on http://store.xamarin.com/account/my/subscription/downloads.
Possible Fix 4: Repair Visual Studio installation
Open the Windows "Programs and Features" Control Panel.
Right click the relevant Microsoft Visual Studio entry, and select "Change"
Click the "Repair" button in the Visual Studio dialog that opens.
link : https://kb.xamarin.com/customer/portal/articles/1643349-missing-visual-studio-extensions-after-installation
I see a lot of refs to something called 'blend for visual studio' which I understand a W8 version of blend. I have VS2012 Ultimate installed on W8 and I don't see any blend.
I looked into my MSDN Pro subscription and I don't see neither separate Blend for VS2012 download not VS2012 with Blend download..
How do I get it?
It is one of the install options that you pick when you do the install (or at least it was in 2012 Professional).
You should be able to get it by going
Add/Remove Programmes
Select VS 2012 and Clicking Change
Click Modify in the VS installer
Tick the Blend for Visual Studio option
Blend is installed as a seperate application in the VS folder.
If it's installed (see Stank's answer for details on how to do that) then double click the Blend icon in the Visual Studio install folder or in the Start menu.
Happy blending