Xamarin update silently fails - xamarin

[Visual Studio Enterprise 2015 Update 3, Windows 10 Pro v1703 x64, Xamarin 4.4.0.34]
I am trying to update Xamarin & related components inside VS. (Tools -> Options... -> Xamarin -> Other -> Check Now). The 3 updates (Xamarin 4.6.0.299, Xamarin Profiler 1.5.5, Xamarin iOS Simulator 1.1.1.1) have downloaded and are all labeled Download completed. Pending to install.
However, when I click the Install button, the Xamarin Updates dialog closes and nothing else happens. I have rebooted, done a repair of VS 2015, but no luck.
Is there an error log file I can look at for more info? Where are these installers saved that I could delete them and try to start over? Thanks for any other suggestions.

Managed to cobble together some links from various places - there's a decent chance "similar" links will be available in the future? I installed manually and VS seems to be happy.
http://download.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.6.0.299.msi
https://dl.xamarin.com/profiler/profiler-windows.msi
https://dl.xamarin.com/xamarin-simulator/Xamarin.Simulator.Installer.1.1.1.1.msi
Also, the installers are downloaded to the temp folder \Users\YourUserName\AppData\Local\MonoDevelop-4.0\Cache\TempDownload\ (mine had 8GB - good to clear out!)

Related

VisualStudio not saving Startup Window

Since a few weeks I have had this infuriating problem.
Whenever I start VS it opens an empty environment.
I tried to change that in Options > Environment > Startup from "Empty environment" to "Start window". After pressing "OK" I restarted VS completely and reopened it. Again: a new empty environment opens.
After reinstalling VS several times now I gave up and want to know, if someone had a similar problem and knows a fix for this problem.
Visual Studio Enterprise 2019 (16.8.3)
Installed Workloads from VS-Installer:
ASP.NET and web development
Azure development
Python development
.NET desktop development
Desktop development with C++
Data storage and processing
.NET Core cross-platform development
Additional Extensions:
JetBrains ReSharper 2020.2.4
Visual Studio Tools for Tizen
*all the extensions are up-to-date
After MONTHS I finally found a solution. I basically tried to uninstall all extensions and discovered that this issue only occurs while ReSharper is installed. I didn't find anything regarding this on the internet, therefore I searched all of the options and I finally found the issue!
If you have the same issue and have ReSharper installed (currently 2020.3.3) open Visual Studio and go to Extensions/ReSharper/Options. A new window will pop up. Then navigate to Environment/Performance Guide and under the group Visual Studio preferences affecting performance you'll find the item Show empty environment at startup. Set it from Fix Silently to Ignore. Click Save and close this window.
Additionally, you have reset the specific Visual Studio option. Therefore open Tools/Options and navigate to Environment/Startup and set the On startup, open: to Start window. Click OK and restart Visual Studio to check if the Start Window now gets displayed correctly.

Visual Studio For Mac Designer Error

I have downloaded VS For Mac Preview and created a new Xamarin Forms IOS/Android Solution using the portable library. When i try and load the XAML designer though to view the startup page I get the error "Invalid XAML : default constructor not found for Xamarin.Forms.Applicaton". I have not made any changes to the project code generated by VS For Mac and the only thing I did was to build the Android project as this is required before the designer can be opened. I also had to download the latest versions of the Android SDK via the SDK Manager.
Does anyone have any idea what is wrong
Thanks
Steve
Firstly, there are two preview modes, one for iOS and one for Android - if you can't see both tabs, drag the frame over a bit. I can't currently get the Android preview to work right even though it builds, but for iOS to work it looks like you simply need to update the Xamarin.Forms package. Go to the 'Project' menu and select 'Update NuGet Packages.' Then, restart Visual Studio for Mac and it should be working. It is very slow to load, however. I had to rebuild my project and select 'Update NuGet Packages' a second time before it actually showed up.
I'm still trying to figure out why Android preview does not work.

Xamarin, Visual Studio 2015 - AXML Designer loading forever

I try to edit an axml file in Visual Studio, because drag and drop doesn't work in Xamarin Studio. But when I open my axml file, it's loading forever.
I've been waiting for more than 10 minutes, but it is still loading. When I restart VS I can open the axml file without any problems.
The same applies for all my other axml files (in other projects).
Does anyone knows how to fix this?
I'm using the newest stable version(cycle 8) of Xamarin btw.
EDIT:
I'm using Visual Studio Community 2015 Version 14.0.25425.01 Update 3 and I've got all the latest updates installed.
More detailed explanation:
I open my project in Visual Studio
I open my foo_bar.axml file
I switch from the Designer tab to the Source tab
I remove the android:background="blablabla" attribute
I switch from the Source tab to the Designer tab
The Designer tab is loading forever
AND
I open my project in Visual Studio
I open my foo_bar.axml file
I make some changes
I close the foo_bar.axml file
I reopen the foo_bar.axml file
the foo_bar.axml file is loading forever
NOTE:
The problem doesn't happen when I change the android:text="blablabla" attribute at step 4 and when I change some other attributes it also doesn't happen, so it is specific to just some attributes.
According to a forumer at Xamarin Forums, it has something to do with Cycle 8's AXML Designer not being able to render using the newest API.
But even in Cycle 8 when I choose to compile under Android 6.0 instead of 7.0 in the project's properties, the designer is still wonky as it is. Switch between "Designer" and "Source" on one .axml file and the designer still loads until Harambe cometh.
Therefore, your best bet is to downgrade Xamarin Studio to Cycle 7, and you can finally get the AXML Designer as working as before.
Until Cycle 9 or an incremental update/hotfix of Cycle 8 comes about, this is the way to go for now.
You can download and install the previous cycle in the link below:
https://store.xamarin.com/account/my/subscription/downloads#cycle7
For your own interest, you can read more about the aforementioned forum thread below:
https://forums.xamarin.com/discussion/77992/axml-layout-designer-inside-visual-studio-keeps-loading-forever
This happened to me also. Then I realised I hadn't opened Visual Studio in Admin mode. After I did, everything was fine.
Open the visual studio as admin and it loads perfectly. All the best.

Xamarin - Can't create and run a blank cross platform application

I am new to Xamarin. I have just installed Visual Studio 2015 with Xamarin
and now I am trying to build a new blank cross platform app.
When I build it, it builds successfully. However, when I try to run it in the emulator, it launches but I can't see any output on the screen. It also takes a long time to launch.
Has anyone faced this issue too?
Maybe try Visual Studio Emulator for Android or
Xamarin Android Player.
when you create a new project, try updating Xamarin.Forms and other library in NuGet.
1) Verify in the portable and android project right click in Manage Nuget Package if you have installed the Xamarin.Form
2) Control Panel -> Program and Features -> Visual Studio 2015 doble click and press the button Modify. verify that you updated the installation of Visual Studio.
3) Open the visual studio. Tools -> Options -> Xamarin -> Others. press the link (Check Now) for updates of the xamarin.
4)Open the SDK Manager and verify that you have installed the API 19
5) and finally try to clean the solution and rebuild the project. And run. If this doesn't work.
6) watch the error in the output of the visual studio, if exist any error, or you need some library you watch in this section.

Unable to open axml with design view with Visual Studio 2015

I created a new android layout file using visual studio 2015 and am unable to view with the designer that is built in to visual studio.
After selecting 'design' tab, I just see a waiting icon in the center of the view and it never finishes. After a while, i have to close the design tab and open in xml editor. The form is valid as it runs fine in emulator.
ideas?
I was able to resolve after uninstalling all platforms using Android SDK Manager and re-installing each platform 1 by 1. If there is an issue with the installation nothing will be installed (note: watch the logs for errors and review after each platform is installed)
Initially, I did have to manually download SDK Manager and copy the tools folder to my existing installation. I am not sure why my Tools folder was empty but after performing this step I could again run SDK Manager.

Resources