kevin-montrose / Sigil

A fail-fast validating helper for .NET CIL generation
Microsoft Public License
987 stars 94 forks source link

Self contained applications fail to load Sigil #61

Open sebastienros opened 5 years ago

sebastienros commented 5 years ago

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.

Konard commented 5 years ago

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.