dotnet / samples

Sample code referenced by the .NET documentation
https://docs.microsoft.com/samples/browse
Creative Commons Attribution 4.0 International
3.35k stars 5.06k forks source link

dot net core hosting issue #5088

Open shivamdabas opened 2 years ago

shivamdabas commented 2 years ago

Hi, I'm calling dotnet framework 4.8 built dll from native c++, using the .net core implementation but my application is failing when I'm making init_fptr funtion call during loading of .net core. It is showing Init failed: -2147450730 , when .net sdk version 5 is already installed. Is there a bug of some kind or incompatibility of framework and core versions. Any help would be appreciated. Thanks

ks1990cn commented 2 years ago

Hey @shivamdabas , can you please tell more about what you are trying to do, need more clarification on this... If you can share any snip / code. Its just dlls are not compatible probably error is due to target framework incompatible.