I am getting this error :
CS1061: 'Type' does not contain a definition for 'Assembly' and no extension method 'Assembly' accepting first argument of type 'Type' could be found.
I am trying the solution mentioned in the link below: https://GitHub.com/dotnet/Roslyn/wiki/Getting-Started-C%23-Semantic-Analysis With template Analyzer with Code fix template.
Code snippet:
var compilation = CSharpCompilation
.Create("HelloWorld")
.AddReferences(MetadataReference.CreateFromFile(typeof(object).Assembly.Location))
.AddSyntaxTrees(tree);
I am getting an error in step 3.
I am using Visual studio 2015 and I have installed. " .Net compiler platform SDK".