When I compile VB code using CodeDom, I need not specify fully qualified path for system references. For example:
Dim param As New CompilerParameters
param.ReferencedAssemblies.Add("System.dll")
works as expected.
But when I do the same using roslyn, it is expecting me to give a fully qualified path. For example:
MetadataReference.CreateFromFile("System.dll")
is throwing an exception.
I am not able to figure out how the Codedom is getting the fully qualified path for the system references.