c# - Roslyn: Current Workspace in Diagnostic with code fix project -


How can I get information about existing workspaces (such as project paths, solution paths) in diagnostics with Code Fix project? Am I >

I have a code like this: I

  var syntax = (Local Displacement Statics Syntax) node; var type = syntax Disclaimer Type; Var typeSymbol = semanticModel.GetTypeInfo (type). ConvertedType;   

I would like to search for all types / references types. TypeSymbol represents the class located in the source code.

To do this, I wanted to use the symbol fender, but the solution of the symbol of the fender requires solutions ... In the old version of Roslyn, the document was given as a method of diagnosis That was, you can get projects and solutions.

There is no current way to come into the workspace or to do multi-project analysis when a diagnostic analyzer, because It needs to be able to run against a single compilation using a command line compiler. Once the diagnosis is determined, you can do this work in the code provider.

If you want to apply class II to one place at all times, then you can make a compiled comprehensive diagnostic analyzer and check that all announcements before deciding on the diagnosis will give you the ICompilationStartedAnalyzer And by applying both the ICompilationEndedAnalyzer.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -