Loading Xamarin Solution Locks Visual Studio After Update - visual-studio

I'm using Visual Studio Community 2015 with Xamarin, and I recently updated from Xamarin 4.9.0.752 to Xamarin 4.9.0.753.
After the update, when loading the Solution, the PCL and Android projects appear to finish loading but the iOS and UWP projects never finish. In case there was an issue with either one of these projects, I removed the references to them in the .sln file manually and tried loading the Solution again with no change. The Solution appeared to load the PCL and Android projects but Visual Studio still hangs.
Alongside updating Xamarin, I also updated iPhone Simulator - even though I've never used that yet - but I can't find the version.
Any advice on what to do or try?
Thanks!

Use Visual Studio 2017 with Xamarin instead.
Using VS2017 instead of VS2015 was the quickest fix for me. Perhaps the latest Xamarin has some incompatibilities with VS2015. It would be good to understand what exactly the issue is, so please add a comment if you know. I'm personally not going to dig into the issue because it's a non-issue for me now.
Thanks! :)

Related

Xamarin.Android designer is not displaying anything

I am just started leaning the Xamarin using Visual Studio 2019. I've downloaded "Hello, Android" sample from https://learn.microsoft.com/en-us/xamarin/android/get-started/hello-android/hello-android-quickstart but designer is not displaying anything.
See screenshot of Visual Studio Community 2019 here.
Please help.
Thanks.
Yes, it is just the case for Xamarin Previewer, it often has problems. And we apologize for the inconvenience. The xamarin development team is doing their best to address this issue and we are urging them to release the latest version as soon as possible.
Of course, you can also try other alternate tools ,e.g. LiveXAML and Xamarin live reload.
For more details, you can check:
https://www.livexaml.com/
https://marketplace.visualstudio.com/items?itemName=Xamarin.XamarinLiveReload

Xamarin class XAM110 projects MyTunes.Droid and MyTunes.iOS won't load

I am in the trial of Xamarin University trying to decide if it is worth joining. But I keep running into roadblocks with the self-guided classes. Right now my issue is that in the XAM110 class (Intro to Cross-Platform Development), Visual Studio cannot load the MyTunes.Droid or MyTunes.iOS projects for the MyTunes solution I downloaded from the class materials. The projects indicate "needs migration" in Solution Explorer, but when I try to reload the project, the error says "the project types may not be installed or this version of Visual Studio may not support them". I am using VS Enterprise 2017 Version 15.5.5, Xamarin 4.8.760, Xamarin.Android SDK 8.1.5.0, Xamarin.iOS 11.6.1.4. Any help is appreciated.
I fixed this problem by uninstalling and reinstalling Visual Studio 2017.

Unable to copy file "obj\Debug\Some.dll" to "bin\Debug\Some.dll".... because it is being used by another process"

Is anyone else facing this issue in VS 2017? This only happens in VS 2017 for all Xamarin Forms based projects irrespective of the nuget versions of Xamarin Forms.
The same projects open & work fine in VS 2015.
Any clues on what could be wrong?
I am using VS 2017 Enterprise edition Version 15.2 (26430.6) release.
Just update your Visual Studio and the problem should vanish. Its a known bug that got fixed later. I had the same issue and it was gone after the update.

Visual Studio 2015 hangs when building Droid project of Xamarin.Forms solution

I am a newbie in Android. I started to learn Xamarin Forms few days ago. I created a new Project under Cross Platform -> Blank App(Xamarin Forms Portable). Still I have not written any code by my self, but every time when I build the Droid Project, it hangs the Visual Studio (Please see the picture below). Please advise me.
I want to share my experience,
I have a Xamarin Forms project on Visual Studio 2017 Professional edition.
After a few days, I have installed an update of Visual Studio and building the project became impossible.
At the end of a long search, I realised that it was trying to download a nuget package. And maybe due to a temporary problem, downloading the package was too slow (Tried to download the package from nugets.org directly). And as there is no explication, I had the impression that Visual Studio was hanging during the build.
I searched the package and installed on all projects in my solution, it took 45 minuts but at the end everything was ok.

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 ?

Resources