Xamarin.Forms (VS): Properties from XAML shown as missing. Builds successful - visual-studio

Just about a few hours ago I got here:
InitializeComponent(); and label_link both are properties that either come from XAML behind or init this.
Intellisense shows them as non existing.
Builds however are successful. This issue just appeared out of the blue.
I tried:
Restarting VS
Restarting MAC
cleared BIN and OBJ folder
Cleaned and rebuilded
Unloaded and reloaded everything
deleted .VS (hidden folder)
Other solutions are working fine, it is only this specific problem.
However, this exists in every class of my project now.
Since this is VS for MAC there is no way to reinstall this.
Can anyone help me out here?

So after trying out everything over and over again,
i retraced my steps to what I did prior which was installing
mobile.buildtools and try and set up the sercrets.json file. I removed both cleaned and resetted everything again and finally intellisense was working again and there are no more red lines underneath my code.

Related

Xamarin Forms Hot Reload is Not Functioning

I have searched multiple times about this issue and saw thousands of posts here but unfortunately I am still have trouble with the Xamarin Forms Hot Reload while using it on VS.
Any help please??
I have tried every solution but with no success and here are my selections as in the image attached. I have tried also both Changes only & Full Page options but nothing is working. Additionally, I have rebuild my solution many times and my emulator but nothing is functioning. Here are my Hot-reload options.
First of all, update all of your nuget package project to the latest, then close your VS, then delete the 'bin' and 'obj' folders, rebuild and run your project, if it worked as normal.

Intellisense and Xamarin.Forms problems

I have a problem on a Xamarin.Forms solution on Visual Studio 2019 (and 2017):
I seem to have lost any Intellisense on the solution. If I try to navigate to an object, i get the message "cannot navigate to the symbol under the caret", even for something declared in the same project. I don't have any colors, nr autocompletion.
I've tried to clean, delete obj and bin folder, rebuild, remove .vs folder, reset user data, reinstall VS.... no change...
BUT, If I remove the package Xamarin.Forms, it fixes it ! The problem is that if I reinstall it and restart VS, it comes back...
For information, the solution build and works without any problem.
That solution didn't have any problem previously, it appeared lately, and I can't figure out what caused it.
The version of Forms used is 2.5.1.444934, but I tried to update without succes.
I don't know what to do anymore...
Edit : I'm adding 2 captures on the same code, one with Forms added as a nuget package, and one without.
The various objects are all declared in the same project, same namespace as AffaireSync.
Without Forms, they are recognised (and DependencyService isn't, but that's normal as it's in Forms).
And With Forms, everything is white, nothing is recognise, nothing is colored, nothing is underlined red...
Without Android Forms
With Android Forms
Ok, I deleted tried a few revert on my solution sources and it didn't fix my problem.
So I deleted my local solutions, checked it out again, and it's all fixed... I can't figured out what happen, but it works, so I'm not touching anything...

Xcode 8.2.1 becomes unresponsive when i click on main.Storyboard

First, there's one old question with the same issue, but since the answers don't work for me, i'm posting this one:
I had problems to open an old project at all. So i deleted xcuserdata and the derived data, from the options tab, too. This one worked fine and i was able to open the project, but now when i click on the storyboard Xcode "hangs" and i have to force it to quit.
This happens only if i click on main.Storyboard, every other file in the project works fine when i click on it.
The last thing i tried was to run the project and in the last 5 minutes, it says Compiling 2 of 2 Storyboard files and that's all; no other result at the moment.
edit: cleaning the project doesn't work too.
edit2: It seems the problem is with my Xcode, not the project. I created a new project and Xcode freeze when i try to open the storyboard. Same with some other old projects.
Next step: reinstalling the Xcode.
Ok, like i comment previously, i tried a lot of things before consider to reinstall Xcode, but the most important were to run the project in other Mac and when i saw that there was no problem to show the storyboard i concluded that the issue were in Xcode.
I reinstalled it and it works fine.
Before everyone does that it's probably a good idea to see if your project run on other mac.
You can also delete xcuserdata, the derived data and the Xcode saved state.
Among the other things i tried:
I restored the version of main.storyboard i have on time machine, just before the crash. Didn't worked, but worth to try.
I also considered to replace the file with the same but from some old version. But the problem was, that i've made too many changes on the actual storyboard, so i needed to find a way to restore it.

Xamarin displaying wrong images

I have a xamarin forms project that started behaving strangely... It started randomly replacing images with different images from the resource folder. It seems to only be happening in the Android project, iOS is behaving correctly. I've removed the recently added images and readded them, clean, rebuild, nothing sees to be helping. The images that are getting changed are not being overwritten, and the code references the correct file.
Has anyone run into a similar issue before? Thoughts on how to possibly fix this?
It is a common behaviour, What I usually do is:
Restart Xamarin Studio
Go to your project Android location and Delete the bin/Obj folders.
Do a full clean, rebuild of your project
Delete the Android app from the device
This is the my day to day script. Hope it helps!

XCode Project Navigator Bug

Recently, while developing an app for iOS, XCode has begun to exhibit buggy behavior that hasn't gone away even after reinstalling my entire Mac (which leads me to believe that something in the project settings may be causing this). In the left panel, switching to a pane other than the Project Navigator then switching back to it causes Project Navigator to expand ALL of the folders in my project. In addition, if I attempt to make a new group by right clicking and selecting New Group, a new folder shows up momentarily, then disappears again. The .pbxproj file is modified as well, but the new folder doesn't show up even if I restart XCode. Has anyone been able to fix this before? I wasn't able to find any posts anywhere relevant to this (it's kind of a hard problem to Google...). Thanks!
Update: I tested the bug by creating another app; the new app didn't have these issues, so I concluded that the project I made must have been corrupted somehow. I deleted and re-cloned the project from GitHub, which fixed the problem. Something went wrong with Xcode's settings for my project; I'm curious as to what the problem was, so if anyone has had experience please let me know!

Resources