Visual Studio 2015 freezes with Xamarin android project - xamarin

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)?

Related

Visual Studio 2015 Select unity instance window empty

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.

Visual Studio Android Emulator does not appear in debug emulator list

I'm using visual studio 2015 update 2 and Tools For Apache Cordova Update 10.
I installed Visual Studio Android Emulator with Ms Installer but after installation it does not appears in debug emulators for android (and other platforms).
the project run in Ripple correctly
the vs emulator will start and run correctly , 3 virtual machines start correctly with no problem. (Tools > Visual Studio Emulator For Android)
but i can't see the VS Emulator for debugging in the list for my apache cordova project
The Emulators are based on Hyper-V, so the feature is not available all the time. If you use a 32Bit Windows or an 64Bit Windows, but the CPU misses VT-X, SLAT support you also can't use Hyper-V. Also Hyper-V is only part of the Pro or Enterprise edition, if you only use the Home Edition you're out of luck and have to upgrade to Pro.
If you support all requirements, try to repair the Visual Studio 2015 and also update to Update 3.

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/

Unable to start Simulator. Simulator crashed or cloased in Visual studio 2013

I'm developing WinRT metro app using Visual Studio 2013 premium version on Windows 8.1 Enterprise 64 bit machine. After getting windows automatic update, I am facing following error while debugging my app in Visual studio.
Although, it starts the simulator and deployed my solution. But now, I am not able to debug my app using simulator.
Don't know the root cause but following solution works for me
Close Visual Studio
Delete Temporary ASP.Net files
Delete VisualStudio Solution.suo file
Open Visual Studio and run the solution

.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