Visual Studio 2017 Enterprise中Xamarin.Forms Previewer消失问题求助
Hey there, sorry to hear the Xamarin.Forms Previewer suddenly vanished on you—let’s walk through some common fixes to get it back up and running:
Check if the Previewer was accidentally disabled
- Go to
Tools > Extensions and Updates - Switch to the
Installed > Allcategory, then search for "Xamarin.Forms Previewer" - If it shows as "Disabled", right-click it and select
Enable, then restart Visual Studio
- Go to
Reset your Visual Studio window layout
Sometimes a messed-up window layout can hide tools you know are there. Try:Window > Reset Window Layout
After restarting VS, navigate back toView > Other Windowsto see if the Previewer reappears.Repair your Visual Studio installation
Corrupted components might be the culprit:- Open the Visual Studio Installer, find your VS2017 Enterprise instance, and click
Modify - Under the
Mobile development with .NETworkload, make sure theXamarin.Forms Previeweroption is checked. If it’s not, check it and clickModifyto complete the repair.
- Open the Visual Studio Installer, find your VS2017 Enterprise instance, and click
Clear Visual Studio’s cache
Stale cache can cause odd UI glitches. Close VS first, then delete these folders:%LOCALAPPDATA%\Microsoft\VisualStudio\15.0_*\ComponentModelCache%LOCALAPPDATA%\Microsoft\VisualStudio\15.0_*\Temp
Reopen VS afterward and check for the Previewer.
If none of these work, you could also try updating your Xamarin components to the latest version compatible with VS2017, or check the Visual Studio Activity Log (Help > About Microsoft Visual Studio > View Log) for error messages that might point to the root cause.
内容的提问来源于stack exchange,提问作者NBDKhoa

