1.7 KiB
1.7 KiB
Xamarin CodeAnalysis
Analyzers, code fixers and custom completion for Xamarin projects
Installing
In order to dogfood the enhanced code analysis, follow these steps:
Visual Studio
- Configure a new feed in the Extensions settings pointing to
https://xamci.azurewebsites.net/feed/xamarin/CodeAnalysis
:
- Once configured, click on
Extensions > Manage Extensions
and go to theOnline
tab. The new extension will be available under the Xamarin Code Analysis node:
- After installation, the extension will appear under the
Installed
node:
Note the Version field on the details pane.
- You can check for updates from the
Online
tab. Whenever a version newer than the one you have currently installed is available, you can just clickDownload
and after restarting the IDE, it will be applied:
Building
First build:
- Open an administrator developer command prompt and run
msbuild Xamarin.CodeAnalysis.sln /restore
This is necessary because the extension provides MSBuild targets that need to be symlinked from the
Exp
hive location to theVsInstallDir\MSBuild
location, which requires elevation.
Subsequent/incremental builds:
- Just open Xamarin.CodeAnalysis.sln and build/run (using
Xamarin.CodeAnalysis.Windows
as the startup project on Windows)