u/extra_specticlesin r/dotnet • Recommends
On “Including non-.NET languages inside solution.”
Have you watched this? .NET Interop Improvements in .NET 7 | .NET Conf 2022
And : Microsoft: Platform Invoke in .NET 7.0 sweeps away ‘old weird behaviors’ in fundamental shift
> .NET 7 replaces `DLLImport` with a new attribute called `LibraryImport`. It sounds similar but it is not. LibraryImport instructs the compiler to invoke a Roslyn Source Generator to create C# code that implements the native function wrapper. Currently, it only works with C#, not Visual Basic.
I suspect that this should be the way that you connect compiled Rust libraries.
To build them you can use external commands in projects/Msbuild using the Exec Task