Following this guide http://msdn.microsoft.com/en-us/vstudio/hh543922.aspx , I am trying to use the ReplaceNode method, which should be in the SyntaxNode class.
The fact is that I have this error: "Roslyn.Compiler.CSharp.SyntaxNode does not contain a definition for" ReplaceNode "
Any ideas?
ReplaceNodeis actually an extension method (so that it can return the type passed in). Make sure you have using Roslyn.Compilers;andusing Roslyn.Compilers.CSharp;
ReplaceNode
using Roslyn.Compilers;
using Roslyn.Compilers.CSharp;
CTP. , http://youtrack.jetbrains.com/issue/DOTP-4774 http://youtrack.jetbrains.com/issue/DOTP-4836.