Closed PcMaKeR closed 4 years ago
cc @AaronRobinsonMSFT
@PcMaKeR Thanks for reporting this issue. Support for usage of the dynamic
keyword with COM objects wasn't done for .NET Core 3.0. This issue is being track in https://github.com/dotnet/coreclr/issues/24246 for .Net 5. The work around is to cast the class to the corresponding interface.
Hello everybody.
Getting an error on dotnet core 3 preview8:
my code:
` using System;
namespace ConsoleApp1 { class Program { static void Main(string[] args) { string progId = "InternetExplorer.Application"; Type type = Type.GetTypeFromProgID(progId); dynamic inst = Activator.CreateInstance(type);
} `
error line:
dlr activated?