Visual studio (17.3.4) update causes xamarin forms solution to go in an infinite loop - forms

I've updated my visual studio 2022 to the latest version and now its an infinite loop trying to load my xamarin forms projects file.
It constantly tries to restore csprojects and intellisense.
I have already checked the box to install xamarin
I have uninstalled reinstalled
I have checked if there are any .net sdks are installed elsewhere
It's been 2 days I'm trying to fix this problem with no luck.

Related

Can't use intellisense for Unity because VS code can't find .NETWORK,Version=v4.71 even though it's installed?

Sorry, I'm a newbie here. I've spent a few hours now trying to get intellisense to work on VS code and have followed multiple Youtube guides. No luck. I've installed and uninstalled everything multiple times. I keep getting this message.
F:\Program Files\dotnet\sdk\6.0.401\Microsoft.Common.CurrentVersion.targets(1220,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
It tells me to install the developer pack, but it already is installed? Any idea of how to fix this? Please help.
Primarily, this has to do with the VS code extensions and Installation of the Unity editor on Unity HUB.
In VS code, install the extension: C# for Visual Studio Code (powered by OmniSharp).
While installing the unity editor through Unity HUB, make sure you are installing Microsoft visual studio community.

Can not change .Net Framework to 6.0 in Visual Studio 2022

Hey so I have Visual Studio 2022, I installed the .NET Framework 6.0.1 SDK manually from the microsoft website, If I check the Visual Studio Installer the .NET 6.0 Runtime is checked (means it is installed).
But I am neither able to retarget my existing Projects to 6.0, neither create a new Project for 6.0. The .NET Framework 6.0 simply doesn't appear in the dropdown selection.
I found another thread which had the same issue but nothing worked for me.
I've read that you can change the Targetframework editing the .csproj file with Notepad, I tried that but at start it told me I don't have the framework installed and either need to downgrade to 4.8 or install 6.0.1.
I've restarted and reinstalled Visual Studio several times now, same with my Computer.
What the heck is wrong here?

Visual Studio 2019 regularly loses the ability to open Unity projects (unsupported)

Nothing was changed when all of a sudden Visual Studio 2019 suddenly couldn't open Unity 2019.2.4f1 projects.
Once it happened several months ago. That time it was cured by itself when I downloaded a clean Unity project from my repository. Just yesterday it happened again. I spend the whole day surfing forums and trying to fix but nothing helped until I decided to completely reinstall Visual Studio. Today everything was fine until suddenly it started again.
I didn't change anything, just was working with code.
External tools settings are set as they were.
Any ideas why it could happen and how to fix it without reinstalling VS?
Is it possible to somehow find out what exactly the VS can't understand in the project files?
In VS2019 go to Extensions -> Manage Extensions and check that "Visual Studio 2019 Tools for Unity" extension is installed, and enabled.

Cannot get unity hololens project to work

I'm trying to get a project to work that i downloaded this link over here, from github.
I've followed all the (configuration) steps in the install guide and i am using the exact versions of the software as described in the guide.
The problem seems to be that some references to the Windows namespace do not work.
I've tried adding it but i can't get it done in the usual way.
The error messages i get when building in unity:
When i open the project in visual studio 2015 update 3 (after building it in unity):
It seems that the option to simply add the reference in visual studio is not present in this kind of project.
I think this shouldn't be to hard to resolve but i lack the skills and experience as i usually develop windows apps solely in visual studio.
EDIT
These are the configurations I used:
i open the project in visual studio 2015 update 3
You should use Visual Studio 2017 with the latest Win10 SDKs.

Hololens device build fails to not finding Assembly-CSharp-firstpass.dll

I'm trying to build Unity application for Hololens device on Visual Studio 2017 and I'm getting the following errors:
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll'
I'm aware of the similar question here but uninstalling and installing the latest versions of both Unity and VS did not help. Neither did starting a completely new project. I'm using now the latest versions of Unity (2017.1.0f3) and Visual Studio 2017 (15.3.0).
I've tried uninstalling both applications. Everything was working fine yesterday but then I downloaded additional components to Visual Studio (ASP.NET) and the Hololens build stopped working. Any idea how I could fix the issue?
I can see the Assembly-CSharp-firstpass.dll in Unprocessed folder under the path it's searching for it and even tried to copy it to the correct path but it did not help. I have also tried to build the project without ticking the Unity C# Projects but I get a different error then.
Update
I found this post on Unity forums and I think it's the same issue I have: https://forum.unity3d.com/threads/net-scripting-backend-and-visual-studio-2017-3-incompatibility.487833/
A workaround for this issue is to manually modifiying The "UAP,Version=v10.0.xxx" to "UAP,Version=v10.0" In the project.lock.json files of the GeneratedProjects.
Other solutions to this problem include a downgrade to Visual Studio 2015, or using the patch that the link you provided has.