VS2017中Xamarin Live Player无法配对及项目模板异常求助
Troubleshooting Xamarin Issues in VS2017 Community 15.6.6
Hey there, let's work through the two Xamarin problems you're hitting with VS2017 Community 15.6.6 and Xamarin Live Player 1.5. I've dealt with similar hiccups in older VS versions, so here's what you can try:
1. Missing Xamarin Option in Tools > Options (Can't Pair XLP)
This usually boils down to missing components or corrupted VS configuration. Try these steps in order:
- Verify Xamarin Component Installation: Open the Visual Studio Installer, click "Modify" on your VS2017 installation. Under the Mobile development with .NET workload, make sure all Xamarin-related components (Xamarin.iOS, Xamarin.Android, Xamarin.Forms, and Xamarin Live Player support) are checked. Click "Modify" to install any missing parts.
- Repair VS Installation: If components are installed but the option still doesn't show, go back to VS Installer, select "More" > "Repair". This fixes common issues with corrupted installation files that can hide Xamarin settings.
- Check for VS Updates: Even with 15.6.6, there might be small patches available. Open VS, go to
Help > Check for Updates, install any available updates, then restart VS. - Reset VS Settings: Open an elevated Command Prompt (run as admin) and execute:
This resets VS to default settings—sometimes custom configurations can hide the Xamarin options pane.devenv /ResetSettings
2. Only Mobile App (Xamarin.Forms) Template Shows When Creating Cross-Platform Projects
This is typically due to missing native Xamarin templates or a corrupted template cache:
- Confirm Full Workload Installation: Again, open VS Installer's Mobile development with .NET workload. Ensure you've checked not just Xamarin.Forms, but also the native project templates (like standalone Xamarin.Android and Xamarin.iOS projects). These are often optional components that get missed.
- Clear Template Cache: Close VS completely, then delete the contents of these two folders:
%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\15.0_<your-VS-instance-ID>\ItemTemplatesCache%USERPROFILE%\AppData\Roaming\Microsoft\VisualStudio\15.0_<your-VS-instance-ID>\ProjectTemplatesCache
(Replace<your-VS-instance-ID>with the unique string in your VS folder path—you'll see it when you navigate to the VisualStudio directory.) Restart VS, and it will rebuild the template cache, which should restore missing templates.
- Check Template Filters: When creating a new project, look for the "Configure filters" option near the search bar. Make sure filters like Xamarin and Mobile are enabled—accidental filtering can hide templates you expect to see.
I know older Xamarin docs can be scattered and vague, so these steps are tailored specifically to your VS2017 version. Let me know if any of these fix your issues!
内容的提问来源于stack exchange,提问作者user9480668
相关产品推荐
相关产品推荐

