microsoft.codeanalysis

Resolving Assembly References in Roslyn

落爺英雄遲暮 提交于 2020-03-05 00:31:30
问题 I'm writing a metadata extractor for C# projects. It works by creating SyntaxTrees from source files via CSharpSyntaxTree.ParseText() , compiling them via CSharpCompilation.Create() and then analyzing symbols in the SemanticModel . I'm running into an issue where various assembly references aren't being handled correctly. I generate assembly references by parsing project.assets.json and extracting the compile-time package references (my test project doesn't include any project references).

Why is Microsoft.CodeAnalysis published with ASP.NET Core website?

牧云@^-^@ 提交于 2019-12-01 06:14:53
问题 I'm publishing an ASP.NET Core MVC 3.0 website and the output folder contains lots of reference in many language to Microsoft.CodeAnalysis librairies, someone knows why? Of course the FxCopAnalyzers Nuget package is installed on the project, but it was not published in an earlier version of the project, so I don't understand why it is now since it should be useful only at dev time not in a production environment. 回答1: contains lots of reference in many language to Microsoft.CodeAnalysis