2014-11-16 17 views
9

Gần đây tôi đã cập nhật dự án của mình lên Roslyn 1.0 và không thể tìm thấy lớp MetadataFileReference ở bất kỳ đâu.MetadataFileReference không thể truy cập được

references: new[] { new MetadataFileReference(typeof(object).Assembly.Location) } 

Error CS0122 'MetadataFileReference' is inaccessible due to its protection level 

Tôi có thể sử dụng thay thế nào?

Trả lời

11

Xin lỗi, tìm thấy câu trả lời trong mã nguồn:

references: new[] { MetadataReference.CreateFromAssembly(typeof(object).Assembly) } 
Các vấn đề liên quan