Search code examples
c#aopfody

How can Fody be used to weave compiled dll's without using msbuild?


I understand that by default Fody weaves assemblies as a post-build step in Visual Studio.

However I have a custom tool that directly compiles projects using csc.exe (Roslyn compiler). Is it possible to run Fody as an executable/service instead of a post-build step?

Something like this: fody.exe target.dll fody_settings.xml


Solution

  • Try this

    Disclaimer: while these classes are public this is not considered an exposed API. So in minor version releases these classes may change.