Method AddReference
AddReference(MetadataReference, ProjectId)
When implemented by a class, adds metadata reference to the project
void AddReference(MetadataReference reference, ProjectId projectId = null)
Parameters
reference
MetadataReferenceReference to add.
projectId
ProjectIdSpecifies project to add reference to.