C++ を使用して単純な dll を作成しました。ac# .NetStandard プロジェクトにインポートすると、正しく動作します。しかし、それを c# .NetCore プロジェクトにインポートすると、例外がスローされます System.BadImageFormatException: An attempt was made to load a program with an incorrect format.
.NetCore と .NetStandard の両方の DLL インポート コードは同じです
const string dllLocation = "StringLibrary";
[DllImport(dllLocation, CallingConvention = CallingConvention.Cdecl)]
private static extern void splitstring();
どうすれば解決できますか?