c# - How to disable Costura.Fody resources embedding in Debug mode? -
i'm using costura.fody embed dlls application assembly.
is there way disable costura.fody in debug build mode? how make costura.fody work in release or custom build configuration?
one solution might check .csproj
file , add condition fody-related lines. this:
<content include="fodyweavers.xml" condition=" '$(configuration)' == 'release' " /> <import project="..\..\packages\fody.1.29.4\build\dotnet\fody.targets" condition="exists('..\..\packages\fody.1.29.4\build\dotnet\fody.targets') , '$(configuration)' == 'release' " />
of course, simple use cases don't want fody extension run in build environments.
Comments
Post a Comment