C#C
C#3y ago
7 replies
Star

❔ Which C# nethost file to include in c++ host application

I am fallowing this tutorial on how to create a nethost application(c++) for .net applications. I am targeting .net 8.0, and have downloaded the sdk but am a bit confused on where to find the nethost file and what to actually include(.dll/.lib/.h)?

For example I have found
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Host.win-x64\8.0.0-rc.1.23419.4\runtimes\win-x64\native

though not sure if the pack is correct. I saw there were some for Maui, and some just .Net.Runtime for Mono and WebAssembly. and some with a Emscripten.

I want to for now just use a console application for both c++ and C# sides. I see the .NETCore packs have my .net 8.0 as an option. Is them being called .NETCore just a wierd naming thing on microsofts side(from the .net Core vs .net Framework times)?
Was this page helpful?