Analyzers, code fixers and custom completion for Xamarin projects
Перейти к файлу
Mike Bond 23aa057eda
Target windows EO compliant agent pool (#7)
2022-03-15 13:51:11 -07:00
docs initial commit w/ not-ready changes 2020-02-03 15:03:53 -05:00
src Target windows EO compliant agent pool (#7) 2022-03-15 13:51:11 -07:00
.editorconfig Updated .editorconfig and formated existing code to match 2020-01-30 18:56:13 -03:00
.gitattributes Initial structure of projects and extension 2018-10-23 16:09:27 -03:00
.gitignore Added repo settings 2018-10-22 11:53:14 -03:00
README.md Make sure we're including the XML assembly in the package 2019-05-03 16:41:38 -03:00
XIA1004.md move RequiresSuper analyzer into apple subdir, add doc for RequiresSuper analyzer 2020-03-03 17:10:41 -03:00
Xamarin.CodeAnalysis.sln initial commit w/ not-ready changes 2020-02-03 15:03:53 -05:00
azure-pipelines.yml Target windows EO compliant agent pool (#7) 2022-03-15 13:51:11 -07:00

README.md

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

  1. Configure a new feed in the Extensions settings pointing to https://xamci.azurewebsites.net/feed/xamarin/CodeAnalysis:

Tools | Options, Environment > Extensions

  1. Once configured, click on Extensions > Manage Extensions and go to the Online tab. The new extension will be available under the Xamarin Code Analysis node:

Xamarin Code Analysis extension

  1. After installation, the extension will appear under the Installed node:

Xamarin Code Analysis installed

Note the Version field on the details pane.

  1. 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 click Download and after restarting the IDE, it will be applied:

Xamarin Code Analysis installed

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 the VsInstallDir\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)