HydrologicEngineeringCenter / hec-dss

source code for HEC-DSS (Data Storage System)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transition from C++/CLI to P/Invoke

neemanejad opened this issue · comments

P/Invoke is the cross-platform way that .Net core can talk to native Linux DLLs. It sounds like the C++/CLI mode of operation is solidly legacy now, and we should move away from it when possible.
References:
https://devblogs.microsoft.com/cppblog/porting-a-c-cli-project-to-net-core/
dotnet/core#4975
https://docs.microsoft.com/en-us/dotnet/standard/native-interop/cross-platform

Ideally, this would include the runtimes in the Nuget package and deploy automatically when we publish for e.g. linux-x64.
See:
https://natemcmaster.com/blog/2016/05/19/nuget3-rid-graph/
https://docs.microsoft.com/en-us/dotnet/core/rid-catalog

closing. this is the same as issue #41