Hi @Sandesh Sahane ,
So our question is does .net core 2.1 supports c++/cli projects with PInvoke calls?
No, .NET Core 2.1 does not support C++/CLI.
C++/CLI have full IDE support for targeting .NET Core 3.1 and higher. See : The Future of C++/CLI and .NET Core 3
So you need to install Visual Studio 2019. Another reference you may need: An Update on C++/CLI and .NET Core
Hope them could be helpful.
Best Regards,
Xingyu Zhao
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.