Add analyzer support
With this change, any referenced analyzer project will be parsed by the project system and the assemblies will be passed down to the compiler. By default, the analyzer language is considered to be "cs". If another language is used, the "languageID" option should be specified inside the "analyzerOptions" section of the project.json file. Resolves #83
This commit is contained in:
parent
ea43482551
commit
c716ad6571
13 changed files with 307 additions and 26 deletions
|
@ -27,6 +27,14 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
|
||||
return compilerName;
|
||||
}
|
||||
|
||||
public static string ResolveLanguageId(ProjectContext context)
|
||||
{
|
||||
var languageId = context.ProjectFile.AnalyzerOptions?.LanguageId;
|
||||
languageId = languageId ?? "cs";
|
||||
|
||||
return languageId;
|
||||
}
|
||||
|
||||
public struct NonCultureResgenIO
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue