Command Line

ALCops analyzers work with the AL compiler (alc.exe) through the standard /analyzer flag. This is the foundation that all other integration methods build on.

AL Compiler (alc.exe)

Pass one or more analyzer DLLs to the compiler using the /analyzer flag:

alc.exe /project:"C:\Source\MyApp" /packagecachepath:"C:\Source\MyApp\.alpackages" /analyzer:"C:\Analyzers\ALCops.ApplicationCop.dll" /analyzer:"C:\Analyzers\ALCops.PlatformCop.dll"

Each /analyzer flag accepts a full path to a single DLL. Repeat the flag for each analyzer you want to include.

Obtaining the DLLs

ALCops distributes analyzer DLLs through NuGet. Download the package from the NuGet feed and extract the DLLs for the correct target framework.

For detailed download instructions, target framework selection, and package contents, see Downloading Analyzers .