今天测试.net core 3.1下的WPF程序,编译时出现如下错误:
'Could not find assembly 'System.Runtime.InteropServices.PInvoke, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
执行Nuget安装包指令:
Install-Package System.Runtime.InteropServices.PInvoke -Version 4.0.0-rc2-24027 -Source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
安装完成后编译就正常了。