Xamarin.Forms project cannot be opened in VS2013 after install VS2015 - visual-studio-2013

I have a Xamarin.Forms project based on the shared template and VS2013.
I first have updated my machine from Win 8.1 to Win 10.
After doing that, I have tested the projects to my VS2013 installation. All projects including the .forms project have worked without problems.
Then I have installed VS2015 (unter Win 10).
After doing that, I cannot open my .forms-project unter VS2013 anymore.
Error message (translated to English):
Title: Check changes on project and solution.
This projects are not supported or there are changes needed that influences the project behavior so that the projects can be opened in this version of Visual studio.
Changes are automatically applied, so that the behavior is not influenced.
Not supported:
- Android-project
- iOS-Project
So… it seems as something from the VS2015 installation causes this error message in VS2013.
What do I have to do, to bring my project unter VS2013 to work again?

Done...
First, I have tried to remove the VS2013 add-on package “Get Xamarin” and reinstall the add-on package "Xamarin" (what - I think so - should be the new name of the Xamarin integration SW package).
This has not worked...
The installation then have crashed and showed a form with download-links for each piece of SW (including the Integration-SW Xamarin V3.11.1589).
I then have downloaded only the .msi to V3.11.1589 and started it.
By the setup, I was able to select the VS-Version where to install the SW (selected VS2013 as under VS2015 the SW already was installed).
After the installation, I was able again to open my project under VS2013 without error-message.
As I only had the chance to install the newest IS version and the newest V3.11.1589 have dependencies on the MAC (MAC OS at least Mac OS X 10.10.5, XCode at least 7, Xamarin.iOS at least 9.1), I was not able to connect to the MAC BH and had to update the MAC first to XCode 7.1 and the latest Xamarin Studio (about 4,5 gig to install).
After doing that, I have rebooted the MAC and also my PC, un-paired and re-paired the MAC Build Host with my PC and then was able to work again with my VS2013 installation.
Conclusion:
It seems, as the installation of VS2015 with Xamarin (at least on Win
10) removes an already installed Xamarin on an already installed
VS2013, so that the Xamarin projects cannot be opened anymore.
If VS2015 is installed (with Xamarin option), the Xamarin Integration SW V. V3.11.1589 is
installed to VS2015 (today). This is also the latest “stable”
release on the Xamarin page (but I don’t have found a dedicated
download-link for the .msi on the Xamarin pages).
So… as I think, that for VS2015 the
latest “official” version should be used, I think, you also should
install the latest version for the older VS version (so that you are
able to develop with the “old” VS version but also to migrate your
project to VS2015 what should be the target normally).
But, if you want to use this version (V3.11.1589) you also have to update XCode and Xamarin Studio on the MAC (what - depending on your Internet
connection - can take a few hours).
So… if you have the same problem, I suggest you to:
Search for the .msi to V3.11.1589 and install it (select only your “old” VS-Installation in the setup).
As I don’t have found a download link, I have posted in this thread (I think that an answer from Xamarin with a download-link should be added soon)
Update the MAC to XCode 7.1 and Xamarin Studio to the latest stable version (Xamarin.iOS, Version: 9.1.0.27)
Unpair the Build Host in the MAC
Reboot MAC and your development PC
Re-Pair the Build Host
After doing that, my VS2013 installation (Xamarin.Forms project) now works again.

Related

How to overcome "Please select a valid device before running the application." on a paired with Mac Visual Studio on Windows 10

I have a Win10 computer paired with Mac. Until today all things were okay, but today I start getting the message:
Please select a valid device before running the application
when I try to debug an iOS Xamarin application on a selected iPhone simulator.
My configurations:
Mac:
OS: Mac OS Catalina, version 10.15.7
XCode Vesion: version 12.2
Visual Studio 2019: version 8.8.4 (build 30)
Win 10:
OS: Win10 version 10.0.19042.685
Visual Studio 2019: version 16.8.3
Simulator names are available on my Win10 computer, but when I select one and try to debug an iOS application I get the message I reported above.
If I launch debug on the Mac directly it runs and starts debugging on the selected iPhone simulator. But when I do the same on the paired Win10 computer in Visual Studio I get this message.
I searched google and SO for this issue and according to advises downgraded XCode to the most possible version 12.2 that is supported by Visual Studio. But it does not change anything.
I want to debug application only on simulator on the paired Win10 computer.
Is there a way to fix this issue?
Looks like the problem was related to the connection between my Win and Mac computers.
My steps to resolve this issue:
I opened Tools - Options - Xamarin - iOS Settings on Visual Studio on my Windows computer. On the Pair to Mac dialog window I selected "Forget this connection" (right click context menu on the connection).
Next, on my Mac, I turned off Sharing (System - Preferences - Sharing).
Then I restarted my Mac computer. And then turned On sharing again, specifying my username as allowed users.
Next on my Windows computer, in the Visual Studio, on the Tools - Options - Xamarin - iOS Settings section I paired my Mac again.
Voila. All things work as expected!
If anyone else runs into this question today, I found this GitHub issue for XCode 13 issues with Xamarin.ios
https://github.com/xamarin/xamarin-macios/issues/12778
I fixed the issue by manually installing xamarin.ios-15.0.0.6.pkg on my mac (linked in the GitHub issue)
When connecting to mac through visual studio it showed the error "The Xamarin.iOS SDK version '15.0.0.6' that is installed on the Mac is not compatible with this version of Visual Studio. Would you like us to install Xamarin.iOS '14.20.0.25' for you? This will overwrite any other existing Xamarin.iOS installation on your Mac."
But, if you hit cancel it should still connect successfully.
Same issue diff version. VS MAC stand-alone also had some issue as VS WIN connected to VS MAC. Started at some early today. Suspected an update somewhere. Traced issues to auto update of XCode to 13. Solution was to download and reinstall XCode 12.5.1 from Apple Dev site. With XCode 12.5.1 things worked. So, something changed with the API in XCode and Xamarin was not prepared for it.
Restarting Visual Studio in Windows worked for me after successfully building.

Can't connect PC to Mac (Xamarin.iOS versions mismatch)

I'm trying to connect my Windows 10 to my Mac to build a Xamarin.Forms app as I've done in the past. However, I'm getting the following error:
Xamarin.iOS versions mismatch The Xamarin.iOS SDK version installed on
Mac is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
Indeed, the version on the Mac is 11.12.0.4. I'm on the stable channel, and it's telling me there are no updates. and I'm on the latest VS on my PC - 15.8.1.
I tried clicking 'Install' but it fails telling me that
There were problems installing...
Is there a way to solve this without uninstalling and reinstalling Visual Studio (which might not even help)?
After further searching the only solution at the moment seems to be to use the beta channel in order to install Xamarin.iOS 11.14 on the Mac.
However, the better solution seems to be to wait. It's supposed to be updated
really soon [Yes. That's a quote.]
Sources for all of that (and how to upgrade using the beta channel):
https://github.com/xamarin/xamarin-macios/issues/4623
https://developercommunity.visualstudio.com/content/problem/311561/installing-xamarinios-1114-from-the-vs4win-connect.html
EDIT
Visual Studio for Mac has been updated. We're supposed to be able to update it and it's supposed to work now.

Android SDK could not be found - Android SDK Location is correct

I've installed Xamarin and tried in Visual Studio to start with a small app and test the web view with this. So for this, I've installed the JDK, the Android SDK and Android NDK on my computer. I'm working throught a tutorial for a web view and I have the problem, when I run the Main.axml, it shows me the error, that my Android SDK could not be found (look at the first attachement). When I check my location paths for the JDK, SDK and NDK, it shows me the correct path and a green tick, so the path and files are correct (look at the second attachement). But my app don't recognize it. What's the problem here? I found some threads on stackoverflow for the same problem, but nothing helped me.
1. Attachement
2. Attachement
OS: Windows 8.1
IDE: MS Visual Studio 14.0.23
Xamarin: 4.2.0
EDIT:
I also tried to open my Android SDK Manager, but this one is disabled in my visual studio. I've installed Xamarin, so it should work:
Any ideas? Thanks.
I tried so many things and finally I have the solution for my problem:
Possible reason for the problem: I just installed the Xamarin, which installes also the JDK, Android SKD and Android NDK in it's wizzard, so I thought this should be the correct versions. After installing Xamarin, I opened my Visual Studio and checked the paths (Tool - Options - Xamarin - Android seetings) for my JDK, SDK and NDK. The paths show on the versions, which were installed by Xamarin. My Android SDK Manager was disabled.
Solution: Then I uninstall everything - the JDK, SDK and NDK and also the whole Xamarin and my old Android Studio. After that, I decided to install the newest JDK from the Java website, the newes Android SDK/NDK from the Android Studio website and a plane xamarin without the sdk/jdk installation. So I could be sure, that I have the correct versions. After the installation, I again opened Visual Studio - Tool - Options - Android seetings and set the paths to the new versions. Than I checked my Android SDK Manager and it was finally enabled and so I installed also the newest Android SDK Tools. After that I cleaned and builded my solution, start it and my android emulator opens my webview page. So I think, the best way is to install the required programms from their website and not automaticlly with xamarin. Now it works. Cheers.

How can I upgrade my Xamarin.iOS version from 9.6.1.8 to 9.6.1.9 in windows machine?

How can I upgrade my Xamarin.iOS version from 9.6.1.8 to 9.6.1.9 in windows machine?
I have already checked for updates in Xamarin Studio and also checked for updates in Visual Studio 2015>Tools>Options>Xamarin>Other>Check Now and all is looking up to date but as the error log says, Xamarin.iOS version is supposed to be 9.6.1.9.
Thanks in advance.
Xamarin.VisualStudio.IOS.LogHandler Warning: 0 : [2016-04-05
16:13:04.2398] There is a mismatch between the installed Xamarin.iOS
(version 9.6.1.9) on the Mac MacMiniBuildServer.local (192.168.101.15)
and the local Xamarin.iOS 9.6.1.8. While this may not be an issue, it
might cause unexpected behaviors. When applying updates, make sure to
keep both the Mac and Windows in sync.
When updating Xamarin
ensure that the same release channel (stable, beta, alpha) is used on both machines (visible on the update dialog of each tool).
On Mac
Open Xamarin Studio Open Xamarin Studio > Check for Updates
Download updates
Press Restart & Install Updates
On Windows
Open Xamarin Studio Help > Check for Updates
Download updates
Press Restart & Install Updates
Open Visual Studio Tools > Options > Xamarin > Other > Check now
To be damn sure, close and restart everything :P
If it still appears: see the answer from BytesGuy
There is often a discrepancy in the minor version for Xamarin.iOS between the PC and Mac.
This message can be safely ignored as long as you are on the latest stable version on both you PC and Mac (which you seem to be).
The only time this can become an actual issue is when your major versions are different (e.g., 9.6 on PC and 9.8 on Mac).
It turned out to be a problem with Apple Store Distribution Certificate.
I followed this steps and after recreating the Distribution Certificate, all problem was sorted out, so didn't need to upgrade my Xamarin.iOS version to 9.6.1.9.
Hope this might be helpful for other people.

The iOS SDK version '...' is not installed, and no newer version was found

I get the error after updating Xamarin in Visual Studio which I had to do after a git pull. I have also applied the Xamarin updates in Xamarin Studio on my Mac build host. (Xamarin Studio > Check for updates).
The iOS SDK version '9.2' is not installed, and no newer version was found.
You can also modify the SDK version of your iOS project from visual studio in order to support older SDKs where you cant update the XCode or SDKs.
Open iOS project properties from Visual Studio.
Open iOS.Build tab
Set SDK version to 'Default'
Set Link Behaviour to 'Link Framework SDKs Only'
Save and Run the project
XCode needed updating to get the latest SDK.
The App Store told me there were updates, and mentioned SDK 9.2 in the summary so I updated.
It appears the cause was a commit on the csproj that bumped the SDK.
You can manually edit .csproj file and replace <MtouchSdkVersion>9.2</MtouchSdkVersion> with the version you actually have on your mac. This can be a solution when you use an old OS which does not offer updates for XCode.

Resources