user2697817
user2697817

Reputation: 1498

Roslyn - namespaces

Can anyone tell what namespace the Syntax class is in?
I have installed all the roslyn packages through nuget but I don't know what namespace the static factory methods for creating expression syntax objects is in.

Also a lot of the examples of Roslyn on the web are using these namespaces

using Roslyn.Compilers;
using Roslyn.Compilers.CSharp;   

Are these obsolete now? I am using the following

using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;

Can somebody explain the difference?

Upvotes: 2

Views: 1148

Answers (1)

user2697817
user2697817

Reputation: 1498

From what I can gather the namespaces are obsolete now.
SyntaxFactory replaces Syntax if anyone is interested.

Upvotes: 6

Related Questions