How do you add references to types compiled in a memory stream using Roslyn?
Call the AssemblyMetadata.CreateFromFile(path)
method, and pass typeof(object).Assembly.Location
(or other assemblies).
Call the AssemblyMetadata.CreateFromFile(path)
method, and pass typeof(object).Assembly.Location
(or other assemblies).