Visual Studio 2015 Select unity instance window empty - visual-studio

When pressing the 'Attach to Unity" button on visual studios, i get an empty 'Select Unity Instance' window instead of visual studios connecting to the unity editor and starting a debug session.
I've tried the following fixes from around the web trying to resolve this issue to no avail.
Re-install Unity
Re-install VS 2015
Update Visual Studio 2015 Tools for Unity (V 3.7.0.1)
Rebuild Solution files
Checked Solution properties for debug and build
Toggled between MonoDevelop and VS in unity's preferences (affects both VS 2015 & VS 2017 installs.)
Can't run editor in Admin mode due to IT...
Uninstalling the 'Get Xamarin' extension for VS
Rebooted system multiple times
Ensured that Unity.exe is still Unity.exe and has not been renamed
The odd thing is that this functionality used to work and i can generate builds and deployment packages just fine.
I'm targeting the UWP platform and HoloLens under SDK version 10.0.14393.0

Download the UnityDownloadAssistant, once the Assistant has been installed select the Visual studio 2017 Community edition and install that, its free . Don`t struggle with 2015 versions of visual studio.

Related

Visual Studio 2015 freezes with Xamarin android project

I have been facing a problem of freezing Visual Studio 2015 frequently during building a Xamarin Android project and each time I have to kill Visual Studio process and start the building process again then it will work. I'm facing this issue with two machines both of them are Windows 10 Pro .
I'm using:
Visual Studio 2015 Community update 3.
Xamarin 4.2.0
Xamarin.Android 7.0.1.6
I have the same problem and can't find the source of why visual studio hangs while developing Xamarin android project.
Specs:
Visual Studio Professional 2015 with latest update
Windows 10 64-bit
Dev Express Included
ReSharper Installed
Visual Studio 2013 also installed on machine
16 GB Ram
Intel i7 6700 CPU 3.40 GHx
Git for source control
jdk1.7.0_55
Xamarin latest version
The designer also hangs crazy time
In event viewer I can see that vs studio hangs
The program devenv.exe version 14.0.25420.1 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel
I tried the following attempts and did not helped me:
1.Reinstall (windows + visual studio).
2.Reinstall vs with Xamarin.
3.Update to latest version of Xamarin and vs
4.I also deleted the C:\Users\ ...\AppData\Local\Microsoft\VisualStudio\14.0 directory and i just
lost my settings and some configuration with no effect. Also VS extensions have been removed
5.Deleted my anti virus did not helped
6.No firewall anymore disabled it
7.Disabled windows defender
8.Removed Resharper
The only solution i have is :
Kill vs and restart... but this in annoying since to many times it hangs
Before you go re-installing everything...
I've also experienced Visual Studio (2015 Update 3) hanging while starting a debug session into my Xamarin Android project.
It appears that Visual Studio is having some timing issue between the deployment and connecting to the debugger. What is working for me...
1) Open Task Manager and Kill Visual Studio (because it's hung, and this is the only way I know how to get it out of this state), then...
2) Keeping the Android Hyper-V instance running from my last debug attempt, re-open my project and start a new debug session.
Perhaps Visual Studio is failing to connect to the ADB (Android Debug Bridge)?

UnityVs Multiple Visual Studio 2015 instances

I'm using Visual Studio Community Edition 2015 with Unity. The UnityVS plugin is installed. The editor configured in Unity is Visual Studio 2015.
When I open a file in Unity it opens a new Visual Studio instance. I have tried via Asset -> Open C# project, double click file, click on Open button, etc.
How do I configure Unity (or Visual Studio) to keep a single instance?
You no londer need UnityVS for the latest Unity version. I can't remember which version UnityVS is no longer requred but I will suggest you try the following below.
Uninstall Visual Studio
Uninstall Unity
Restart Computer.
Install the latest Unity version from here.
Visual Studio should automatically install too. Make sure it is selected during Unity installation.
Don't install UnityVS or anyother plugin. It should work out of the box.

Install Xamarin on Visual Studio 2015 with Xamarin on Visual Studio 2013 already installed

I have Xamarin installed on the Visual Studio 2013 on Windows Operating System. It works fine.
There is Xamarin tools in VS2013 as follows:
My problem is as follows:
I have recently installed Visual Studio 2015 on my desktop on Windows operating system. I thought when I opened the VS2015, I expected to see the Xamarin in it, but it does not. Then I installed the Xamarin again, and again and again, but still Xamarin does not show up in VS2015.
I wonder what is wrong? What am I missing?
By the way, I still have VS2013 on my desktop.
No Xamarin tools in VS 2015 as follows:
I even tried the following approach, still no luck.
Control Panel -> Programs -> Programs and Features Choose Xamarin
Click Change -> Next -> Click the desired drop down for each items in the tree view and select "Will be installed on local hard drive."
Click Next
I am even getting the following screen when installation is completed, but still I could not able to see Xamarin in VS2015.
I have installed Xamarin in my Visual Studio 2015 two days ago and it showing Xamarin under Tools. Below I have described the approach which I have followed to install Xamarin in Visual Studio 2015.
Go to Contol Panel >> Program Features >> Visual Studio
2015 >> Change>> Modify
1. Select C#/.Net(Xamarin) under Cross Platform Mobile Development
2. Check if these three red marked items are checked or not.
3. And then press update.It will download all the required packages to run Xamarin on VS 2015.Hope it helps you!!
I recently had horrendous problems trying to install Xamarin on VS2015 + Win10. (I don't have any other VS versions installed.) Even a full install and reinstall left huge holes in the installation. I tried repeatedly and each time the whole dev environment seemed to get itself in a different unusable state.
The fix for me, which is probably hitting a nut with a sledgehammer, was to:
Uninstall Xamarin (via Control Panel|Uninstall).
Uninstall Visual Studio (via Control Panel|Uninstall).
Follow Xamarin's manual uninstallation procedures Full Xamarin Uninstall.
Perform full reinstall of Visual Studio, being sure to tick the boxes shown in the answer by Parth Patel above.
This resulted in a faultless, fully functioning Xamarin environment for me. Overkill, maybe, but worth a go if all else fails.
Here is the solution:
I have deleted all the existing versions of visual studio ( 2010, 2012, 2013) except Visual Studio 2015 and then installed the Xamarin, and then I could able to see Xamarin on Visual Studio 2015.
It is not required to delete previous versions of VS. I have Xamarin Studio, VS 2013 and now VS 2015 and working perfectly. I moved to VS 2015 due to recent purchase of Xamarin by MS and that VS 2015 has Xamarin included.
I believe the issue with this question is was that your VS 2015 install did not include the add ins as pointed out in another answer in this question.
After the VS 2015 install -the only caveat was projects created initially in Xaramin Studio and then Opened in VS 2015 to needed to have the build configuration in the project tweaked. If not you could not get the project to build and then be deployed to an emulator or device for debug testing.
We have a few troubleshooting steps on our Knowledge Base that you can find here:
https://kb.xamarin.com/customer/en/portal/articles/1643349-missing-visual-studio-extensions-after-installation
Note: Some of these steps have older versions listed in the respective paths. You should use the latest version number available.
Before any install or uninstall actions. Try open some sample Xamarin project, in most cases during opening project in VS 15, it will show you, what needs to be installed or what is missing / corrupted.
Xamarin samples
I had some problems with my emulator best way to fix the problems is to uninstall everything (emulators, android sdk, vs, xamarin) and reinstall it.
It is also important to delete other or older versions of visual studio. Then you should probably see you options.
First try to uninstall all the other versions of Visual Studio (VS) 2013 in this case. Then try to reinstall Xamarin.
Visual Studio 2015 is little bit different from 2013 version, I am also using xamarin on visual studio 2015. But that is not listed under tools menu like 2013.
Maybe developers had changed that, you can go to "start a new project"(just like you start new app development), there you can find xamarin/android projects list, there you can start new android projects.
This is strange, I did not have any problem with Xamarin & VS 2015 (community).
You said,
I will see the Xamarin in it
Did you try to create a project or/and add your account in the new VS Installation ?

Error when installing Visual Studio 2015 Tools for Unity 5.3.1f1

I have both Unity 5.3.1f1 and Microsoft Visual Studio 2015 Community edition properly installed and running (I've been using them separately for a while now). However, now that I try to install Visual Studio 2015 Tools for Unity, the installation process crashes giving me the following error:
"Microsoft Visual Studio 2015 Tools for Unity Setup Wizard ended
prematurely because of an error. Your system has not been modified. To
install this program at a later time, run Setup Wizard again. Click
the Finish button to exit the Setup Wizard".
Of course, I already restarted my computer. I even uninstalled Visual Studio and Unity and then installed them again (that is really painful by the way). Nothing changes.
Can anyone help me on? I don't even know how to get support for something on the boundary like the Visual Studio Tools for Unity.
Here is a screen capture of the error:
From unity 5.2 and up i guess you don't need Visual Studio Tools for Unity as Unity from version 5.2 has native support for Visual Studio (same applies on 5.3.1f1).
i use Unity and visual studio with the tools
a link that can be helpful on what i said:
Native support for VSTU 2.1 in Unity 5.2
http://unityvs.com/documentation/native-support/

.csproj file unsupported in Visual Studio 2013

So I'm trying to do what I think is a very simple thing: generate a Windows Phone app with PhoneGap and open it in Visual Studio. On a totally fresh Windows installation (via Bootcamp), I've:
Downloaded Visual Studio Express 2013 for Windows (the very first download button: http://developer.windowsphone.com/en-us/downloadsdk)
Created a PhoneGap Windows Phone app per the Getting Started guide.
However, every time I try to open the csproj file, I keep getting this error:
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.csproj"
No changes required
These projects can be opened in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.sln"
No matter what I do. It works totally fine on Visual Studio 2012 for Windows Phone. I've tried it on VS 2013 for Desktop, and that doesn't work either. No clue what is happening here, and don't know even where to start to figure out what's wrong. I've Googled extensively to no avail; basically all instances of this error seem to have to do with previous version of VS. Pointing in any direction would be very much appreciated.
Turns out Update 2 wasn't getting installed correctly. I ended up installing Visual Studio and the Update 2 separately and Update 2 got installed successfully. Everything works now.
To build Multi device hybrid (Cordova tooling) apps with Visual Studio, you need to have Visual Studio 2013 Update 2 - Professional, Ultimate, or Premium.
Visual Studio 2013 Update 2: Global Apps e Android/iOS App

Resources