Package does not exist error after upgrading to visual studio 2019 build 16.2 - xamarin.forms

We have a Xamarin.Forms project that was created a couple of years ago and after upgrading to the latest build of Visual Studio 2019 (16.2) we are getting nearly 100 errors like the following when building the android version of the project: error: package com.google.android.gms.common.api.GoogleApiClient does not exist
I checked with a colleague who was using Visual Studio build 16.1.3 and the android project built fine but after upgrading their Visual Studio 2019 to the 16.2 build they now get the same problem too. The iOS project continues to build fine.
Does anyone have any suggestions on what to try? I found a bunch of older posts that suggested adding items in the Android SDK manager but none of these changes helped me.
Failing that does anyone know of a way for me to revert my Visual Studio install back to 16.1.3?

Have you updated all NuGet packages? Did it help to move to VS 16.3.5? Have you checked the dependencies of your NuGet packages?
I am having issues with an activity being placed outside of application. It seems like the Google Ads/Admob implementation in Xamarin apps is a source of troubles. Net Core version also seems like a good place to check for a solution.

Related

App.Mobile Project appears as (incompatible)

Microsoft Visual Studio Professional 2022 Version 17.0.4
Starting from scratch a "Multi-Platform App (Uno Platform|net6)" project, closing the solution and reopening it, the "mobile" project is listed as "incompatible".
It happened to me on two different computers.
I run the "uno-check" and after installing the missing parts it tells me that everything is ok, but when I load the solution the mobile project continues with the same error.
Any idea?
The .NET 6 mobile project template is only supported on Visual Studio 17.1 Preview 1 and later.
I leave the link where he explains that the problem is in the manifest of the packages.
[https://github.com/unoplatform/uno/discussions/7833][1]

Razor Runtime Compilation

ive been having trouble trying to install razor runtime compilation and i continue to get a fault. i updated the vs2019 community edition and was able to click on the checkbox to add the "runtime compilation". when the project is loading, it doesnt install the "razor runtime compliation" package. it doesnt allow me to search for it via NuGet anymore either.
I tried my best to search around and some made it seem very simple to just install it from the pack manager or NuGet. Im using asp.net core 3.1 and vs2019 16.6.1 community edition.
EDIT: HOW CAN I INSTALL ...razor.runtimecompilation.i have not been able to figure out a solution to the error.
"Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation"
This package is from nuget.org in my visual studio. While from your screenshot, it retrive from http://packagesource. Maybe you should configure your package source:

How to resolve "the current .NET SDK does not supporting targeting .NET Core 2.2"

So I get the error in the title when I'm working with a project I know has been created using core 2.2. However, I've looked into this and done the following things which I've found can be potential problems:
Updated visual studio (2017) to the latest version.
Obviously I've installed the 2.2 SDK (tried both 64 and 32 bit versions). When I run dotnet --version in PowerShell I'm shown that my current version is 2.2.202
Activated "use previews of the .NET Core SDK" under tools->options->projects and solutions-> .NET Core, although this shouldn't be necessary since it's not a preview anymore...
When I right click a project and go to properties I'm unable to select .net core 2.2 under target framework. I've obviously tried restarting VS.
So far I've been unable to find any other possible causes. Do anyone have any idea what else I could possibly be missing?
Microsoft has messed up the latest version on 2.2
It only works with visual studio/ msbuild 2019 now.
Spent a good hour figuring this out, but uninstall 2.2.202 and install an older version and it will work fine!

Visual Studio 2017 15.7.2 - ASP.NET Core Application is missing

I installed the Visual Studio 2017 Enterprise and updated it to the last version. I choosed the necessary web components in the Visual Studio Installer, tried to execute the devenv /InstallVSTemplates, tried to repair Visual Studio and installed .NET Core SDK (x86 and x64).
Nothing of this helped me, I still can't find the ASP.NET Core Application under .NET Core in Visual Studio. How can I solve this problem?
Solution that I found myself: Everything described above was indeed caused by a mistake in the third screen.
I did not find how to solve this problem automatically, I just installed all these .msi packages manually. The installer loads them, but for some unknown reason can not install it themselves. To install them manually, you need to go to the directory where Visual Studio is installed, there just look for these packages by name and install them. Then you need to run the installer again and if it shows another error with another package, you need to repeat the procedure with a manual installation. I had to repeat it three times with three different packages. After that, I started the installer once more and it installed the rest.

Visual Studio 2015 Community version

there is a problem.
I've instaled VS 2015 Community version. I wanted to open the project from another computer and there is a problem with it.
Error:
1. Could not find SDK "SQLite.WP81, Version=3.12.2".
Warnings:
1. The referenced component 'SQLite for Windows Phone 8.1' could not be found.
2. Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed
project and projects that depend on it, have been disabled.
What should I do to work on this project on this computer ? How can I download missing SDK ?
P.s. Im going to work on widnows Phone application.
Thx for help!
Your project is missing SQLite For Windows Phone 8.1 library. Download an updated version of SQLite.WP8.1 here https://visualstudiogallery.msdn.microsoft.com/5d97faf6-39e3-4048-a0bc-adde2af75d1b.
Install it and relaunch Visual Studio.
Further information, including complete documentation, may be found at the official web site "http://www.sqlite.org/".

Resources