Let's say that when I installed Visual Studio 2017 I decided to use the "Windows Universal Platform" packages. Later, I realize that I'd like to install the ".Net Desktop packages" (either instead, or in addition).
How can I go back and add those features to Visual Studio 2017? Is there a way to do this within Visual Studio? Do I have to re-run the installer?
You can go to tools from menu bar and then select "Get tools and features" and then you can add or modify your features.
Re-run the visual studio launcher and click on modify. Make your edits and the launcher install the missing components.
After you have installed Visual Studio 2017 you will have a program called Visual Studio Installer. Launch this application.
From here you can select modify and then add the components that you need.
Related
how visual studio looks like for me at the moment
This question was previously asked and I did click the "Open Visual Studio Installer" link. When installing, I also check marked the ".NET Desktop develepment move and clicked "Modify" but still no luck. Does anyone have a solution to this or have run into the same problem?
The version I'm using is Microsoft Visual Studio 2017 Community version on a Windows 7 Enterprise OS.
If you look in \Common7\IDE\ProjectTemplates or \Common7\IDE\ItemTemplates, do you see any templates installed there?
Try re-registering your templates by issuing this command from the VS Command prompt:
devenv.exe /InstallVSTemplates
I am not able to find Project Template to build Xamarin Forms apps in my recently installed Visual Studio 2017 Professional IDE. What templates I can see in "Cross-Platform" section is as shown below.
Can anyone tell me why I am not able to get the required template?
From Visual Studio 2017 onwards you need to specify what kinds of development you want to do in the installer. To add Xamarin, simply run the installer again, choose the 'Modify' option on the start screen, and then check the box for 'Mobile Development with .NET' (you'll see the Xamarin logo next to it).
That will add support for Xamarin projects to your installation.
I installed Visual studio 2015 and I'm trying to create a test application for Windows Phone 8.1. When I create a new project, I get this message:
Any suggestions on how to solve this problem?
Here is the solution:
Open Visual Studio and go to Tools > Extensions and Updates
Uninstall "NuGet Package Manager for Visual Studio 2015"
Restart Visual Studio 2015
Open Visual Studio and to Tools > Extensions and Updates again
Install "NuGet Package Manager for Visual Studio 2015"
Restart Visual Studio 2015
I got a similar error message when trying to create an MVC Web App on VS2015. Found this solution and it worked for me.
Go to Tools>Extensions and Updates
Search the NuGet Package Manager for Visual Studio 2015
Install NuGet Package Manager
Restart VS2015
Hope it helps.
On VS2017 go to "Tools-> Extension and Updates" then find and Check "Xamarin for Visual Studio", it was disable, i enabled it, and restarted. Worked for me.
Refer:
https://developercommunity.visualstudio.com/content/problem/83460/cannot-create-a-new-xamarin-project-using-vs2017.html
Go to tools>Extensions and updates
Search for Visual studio tools for Apache cordova and enable it.
Restart visual studio and it will work
This worked for me:
1) go to installation path for VS2015 from command prompt and type:
devenv.exe /InstallVSTemplates
2)
- Go to Tools>Extensions and Updates
- Search the NuGet Package Manager for Visual Studio 2015
- Install NuGet Package Manager
- Restart Visual Studio 2015
Another way on VS2017 (and probably VS2019), open the Visual Studio Installer (from the Start menu), and when it loads up, press modify. From there, click on the tab at the top to select individual packages and in the list select NuGet Package Manager. Then press modify at the bottom-right to apply the change.
I already have a project which is ready to build. Currently, I am using visual studio 2013.
But, I don't know how to create an MSI setup in visual studio 2013, but for visual studio 2010 there are plenty of tutorials out there discussing how to create a setup in visual studio 2010.
Does this mean I need to install visual studio 2010 in order to create an application setup for my project?
What is the easiest way to create an application setup in visual studio 2013?
Microsoft has listened to the cry for supporting installers (MSI) in Visual Studio and release the Visual Studio Installer Projects Extension. You can now create installers in VS2013, download the extension here from the visualstudiogallery.
visual-studio-installer-projects-extension
As of Visual Studio 2012, Microsoft no longer provides the built-in deployment package. If you wish to use this package, you will need to use VS2010.
In 2013 you have several options:
InstallShield
WiX
Roll your own
In my projects I create my own installers from scratch, which, since I do not use Windows Installer, have the advantage of being super fast, even on old machines.
Visual Studio 2013 now supports setup projects. Microsoft have shipped a Visual Studio extension to produce setup projects.
Visual Studio Installer Projects Extension
Microsoft recommends to use the "InstallShield Limited Edition for Visual Studio" as replacement for the discontinued "Deployment and Setup Project" - but it is not so nice and nobody else recommends to use it. But for simple setups, and if it is not a problem to relay on commercial third party products, you can use it.
The alternative is to use Windows Installer XML (WiX), but you have to do many things manually that did the Setup-Project by itself.
Microsoft also release the Microsoft Visual Studio 2015 Installer Projects Extension This is the same extension as the 2013 version but for Visual Studio 2015
Apart from Install Shield and WiX, there is Inno Setup. Although I haven't tried it myself I have heard good things about it.
I will tell , how i solved almost similar problem. I developed a application using VS 2013 and tried to create wizard for it failed to do. Later i installed premium VS and tried and failed.
at last i used "ClickOnce" and it worked fine.
So i believe here also , "CLICKONCE" would help you.
how do i get Unity3D for debugging the code, and Visual Studio 2013 which i have now to only script the code. Example: Like Flash Professional for debugging and FlashDevelop for scripting only.
My question is, how do i get the Unity3D link with Visual Studio 2013. I already searching around the internet, and had found that Unity3D only works with VisualStudio 2010.
I wrote a blog article on this awhile back on my blog HERE for Visual Studio.
However I will paste it here too:
How to use Visual Studio 2013
Recently Microsoft bought and re-released the popular Unity3D plugin UnityVS. The now renamed Visual Studio Tools for Unity plugin smooths the connection between Unity and Visual Studio and even allows one to perform debugging too! Download it here.
In Unity Editor go to Edit->Preferences->External Tools and In External Script Editor choose Browse from the drop down box.
Browse to and select C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe.
The External Script Editor should automatically show your selected editor as Visual Studio 2013.
That’s it! It should just work from that point on.
As an important update, I would like to notice, that former UnityVS (after Microsoft's acquisition of SyntaxTree) is now available for free as a rebranded Visual Studio 2013 Tools for Unity.
The versions for VS 2012 and VS 2010 are also available.
The integration of Unity3d and Visual Studio got simpler with latest Unity (version 5) and Visual Studio Tools. This is the current procedure.
To use Visual Studio as editor and debugger with Unity you must:
Install the Visual Studio Tools For Unity. For this download the package at http://unityvs.com (careful to get the version for the Visual Studio you are using) and import it (as is standard in Unity for packages) by going into Assets -> Import Package -> Custom Package and browse to the tools installation folder and pick the package.
Once installed in Unity you will get an additional menu Visual Studio Tools, go there and select "generate project files". Visual Studio will already be the default editor for your scripts.
This done, if you say put a breakpoint in Visual Studio, click on "Attach to Unity" in Visual Studio, and then run your Unity project, the process will stop at breakpoints in Visual Studio and allow variable inspection etc.
you can use unityvs VS plugin (but I'm not sure about current 2013 support, it's works with vs2012) http://unityvs.com/ - on windows it's works very well, but remote OSX debugging feature is not ready yet
I'd like to add to the fine answer given by Pietro Polsinelli, that for me, there was an extra step in his Step 1. And that is that, after installing Visual Studio Tools For Unity, I had to, in Unity, go to Assets->Import Package->Visual Studio 201X Tools and then click around on the menu bar until "Visual Studio Tools" showed up as an option. After that, I could Generate Project Files and Open in Visual Studio.
This enabled me to Attach to Unity in Visual Studio and debug.
None of these solutions worked for me. Renaming monodevelop just changed the default program to notepad++, and the next default program after that was simply notepad.
However, there is a known bug with Visual Studio 2013 (not sure if it was present in previous versions, or if it is present in the non-professional version) where if you try to open a C# file in visual studio, where Visual Studio is opened as administrator and Unity isn't, VS crashes.
I had to either run both programs (VS and Unity) as administrator, or not open VS as administrator (as per the solution found here: http://connect.microsoft.com/VisualStudio/feedback/details/597863/cannot-open-visual-studio-files-from-windows-explorer).
With Visual Studio You Can Use UnityVS Plugin But if You Use Monodevelop You Can Go To Run->Attach To Process.. And Connect The Debugger to Unity Editor It Work Perfectly.
To link Unity with Visual Studio, do the following:
Do this on Unity.
Go to file --> preferences --> external tools --> external script editor --> Choose visual studio.
If Visual Studio is not showing, you Re gonna have to browse Visual Studio by hand.
Then you open any script in the Unity Project window and Visual Studio should open the file.
I hope this is helpful.
Note that I am using Unity 2020.2 and Visual Studio 2019