I recently updated my project to Roslyn 1.0, and can't find MetadataFileReference class anywhere.
references: new[] { new MetadataFileReference(typeof(object).Assembly.Location) }
Error CS0122 'MetadataFileReference' is inaccessible due to its protection level
What can I use instead?
Sorry, found the answer in the source code:
references: new[] { MetadataReference.CreateFromAssembly(typeof(object).Assembly) }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With