Porting a C#/C++ Visual Studio Framework project to dotnet core/docker

  .net-core, .net-framework-4.8, c++, docker

I have an existing Visual Studio solution. The main project is a C# console application, however in the solution there are C++ projects delivering DLLs that are called by the main application through the binary extern mechanism (no C++/CLI, but DllImport).

I am tasked to port the solution to dotnet 5/6 and then docker/kubernetes, using linux (not Windows) containers. The solution would still need to be built in Visual Studio (2019/2022) if possible.

I think this has already been done out there, so I am asking help on how to do that changing as little as possible

Source: Windows Questions C++