Open droosma-1 opened 6 years ago
@droosma-1 The wiki was moved to the repository. You can open a PR against these files:
https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Transformation.md https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md
So i tried to find a way to pull request this but i could not find it.
on Getting Started C# Syntax Transformation there is a code sample near the end of the page
I believe there are 6 error's in there
String programPath = @"..\..\Program.cs";
should beString programPath = @"..\..\..\Program.cs";
String rewriterPath = @"..\..\TypeInferenceRewriter.cs";
should beString rewriterPath = @"..\..\..\TypeInferenceRewriter.cs";
String rewriterText = File.ReadAllText(rewriterText);
should beString rewriterText = File.ReadAllText(rewriterPath);
MetadataReference mscorlib = MetadataReference.CreateFromAssembly(typeof(object).Assembly);
should beMetadataReference mscorlib = MetadataReference.CreateFromFile(typeof(object).Assembly.Location);
MetadataReference codeAnalysis = MetadataReference.CreateFromAssembly(typeof(SyntaxTree).Assembly);
should beMetadataReference codeAnalysis = MetadataReference.CreateFromFile(typeof(SyntaxTree).Assembly.Location);
MetadataReference csharpCodeAnalysis = MetadataReference.CreateFromAssembly(typeof(CSharpSyntaxTree).Assembly);
should beMetadataReference csharpCodeAnalysis = MetadataReference.CreateFromFile(typeof(CSharpSyntaxTree).Assembly.Location);
If I have missed the feature to change it my self. Please point me to the correct place and close this issue.