ĐỌC: Tôi trả lời câu hỏi của riêng mình trong trường hợp nó giúp ích cho người khác trong tương lai.Không thể chuyển đổi thành thư viện kiểu - Lỗi: Phần tử không được tìm thấy
Tôi nhận được lỗi:
Error 2 The assembly "C:\XYZ.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'XYZ'. Error: Element not found.
Dưới đây là đoạn code gây ra vấn đề:
[Guid("7a4e9867-96a7-43f0-9492-0327b9053853"),
ClassInterface(ClassInterfaceType.None)]
public class TimeSeriesPoint
{
public string Date { get; set; }
public float Value { get; set; }
}
[Guid("7a4e9867-96a7-43f0-9492-0327b9053853"),
InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IDataHelper
{
//RCOMServerLib.IStatConnector Connector { set; }
string Text { set; }
void DoCallback();