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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -