Repro is to deploy a console application that does an Assembly.Load("Sigil") and publish it as self contained. It will fail stating it can't find the PInvoke assembly.
It happened for us when benchmarking a change in ASP.NET MVC on a scenario that uses Jil.
I had a similar issue, it is because of PInvoke implemented .net standard and RC-packages of dotnet5.4.
The solution is to use .NET Standard updated Sigil package look here #58. This repository looks dead.
Repro is to deploy a console application that does an
Assembly.Load("Sigil")
and publish it as self contained. It will fail stating it can't find thePInvoke
assembly.It happened for us when benchmarking a change in ASP.NET MVC on a scenario that uses Jil.