Unable to build Pact-net: pact_ffi.dll not found

102 views Asked by At

I'm trying to find a running pact-net sample. I've cloned the pact-net repo but it won't build, getting this error:

Error   MSB3030 Could not copy the file "C:\Users\57046\Source\repos\pact-net\build\windows\x86_64\pact_ffi.dll" because it was not found.  PactNet C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets    5150    

There is this closed issue which looks related but the workaround proposed there didn't work either: I've added the proposed win-x64 property to PactNet csproj file with no luck.

Any ideas?

1

There are 1 answers

0
Bulat Nabiulin On

You should run scipt from pact-net repository build/download-native-libs.sh The script will install pact_ffi.dll to windows\x86_64. Or you can download pact_ffi-windows-x86_64.dll.gz manually from pact-reference releases and put pact_ffi.dll to build\windows\x86_64