Following this tutorial http://msdn.microsoft.com/en-us/vstudio/hh543922.aspx , I’m trying to use the ReplaceNode method that should be in the SyntaxNode class.
The thing is, 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 haveusing Roslyn.Compilers;andusing Roslyn.Compilers.CSharp;