Questions tagged [fody]

Extensible tool for weaving .net assemblies

Extensible tool for weaving .NET assemblies

Uses Mono.Cecil and an add-in based approach to modifying the IL of .net assemblies at compile time.

  • No install required to build
  • No attributes required
  • No references required
  • Supports .NET 3.5, .NET 4, .NET 4.5, Silverlight 3, Silverlight 4, Silverlight 5, Windows Phone 7 and .NET Metro on Windows 8, MonoTouch, MonoDroid, Mono
  • Supports client profile mode

Links:

181 questions
1
vote
0 answers

Fody weaving - should I include dlls from referenced project as well?

I have a 'service' csproj that has references to topshelf (to make this as windows service), quartz (for scheduling) and a reference to my 'core' csproj where my actual code is. I use costura to merge all dlls to make into one final exe. I have…
Jap Evans
  • 1,097
  • 8
  • 22
  • 42
1
vote
1 answer

Xamarin Prism Model to ViewModel Fody

how do I Intercept From Model to ViewModel using Fody ? I tried putting this in my ViewModel but nothing happens, Am I missing something ? I'm Using Xamarin Forms, Prism Model public class Question : INotifyPropertyChanged { public…
LeRoy
  • 4,189
  • 2
  • 35
  • 46
1
vote
3 answers

PropertyChanged isn't working as expected

I'm currently trying myself on creating a WPF project with MVVM using Fody Property changed.
Theo
  • 31
  • 5
1
vote
1 answer

Visual Studio 2017 could not copy dll, because it's being used by MSBuild.exe process

I have a solution with 2 projects included: a WPF Applicatin and a ClassLibrary (tried both Standard and Framework template). The WPFApp references the ClassLibrary. The problem is: when I try to build the solution I get the following…
1
vote
1 answer

Substituting Static Methods for Spec

I'm trying to use the Ionad plugin for Fody. I've created my substitution but the dependent code doesn't call the substitute. Substitute [StaticReplacement(typeof(AppUtils))] public static class AppUtilsSubsitute { public static void…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
1
vote
2 answers

Xamarin Realm in shared project, error "Fody not properly installed"

I’m trying to add Realm to Xamarin project. Project contain two platform-specific projects (Android and iOS) and PCL (.NET framework). I can successfully add realm separately to each platform, but when I’m trying to move my code to PCL, I have an…
Marek Loose
  • 1,115
  • 13
  • 17
1
vote
0 answers

Change code in non-virtual method with Fody

Is it possible to change code in a non-virtual method using Fody or some other framework? I'm not looking to mock it but rather change the code in the generated assembly at compile-time. Ex. I would like to change: private int SomeInt() { return 1;…
user152949
1
vote
1 answer

How to Use StructureMap From A Static Class in Web API 2?

I have a WebApi Solution and I am using StructureMap.WebApi2 Nuget Package for Dependency Injection. I want to use Fody Tracer to weave in trace methods. I am implementing my own custom log adapter which requires me to return an instance of my…
jkruer01
  • 2,175
  • 4
  • 32
  • 57
1
vote
1 answer

Fody looks for intermediate files in the wrong directory

To be able to publish a single .exe I've added Costura/Fody package to my C# project. I've used this package before but now I get the following error message: MSBUILD : error : Fody: AssemblyPath "C:\Projects\X\MSBuild\obj\x86\Debug\X.exe" does…
Roy T.
  • 9,429
  • 2
  • 48
  • 70
1
vote
0 answers

Fody Stamp taking forever

simple question here. I am using Fody Stamp to stamp the current git version to my projects assemblies, and it works perfectly. My problem is, the solution have a very large number of projects, and each take some time to process making the build…
Dunge
  • 89
  • 1
  • 11
1
vote
1 answer

Unknown custom metadata item kind: 6 when using Costura.Fody

I try using Costura.Fody to embed DLL files into exe file. First I install Costura.Fody by run this command in package manager console : install-package Costura.Fody, Then Build the project. But building project was unsuccessful and this is the…
Saman Salehi
  • 1,995
  • 1
  • 22
  • 36
1
vote
1 answer

Fody.PropertyChanged doesn't fire on inherited Property

I have a Control which inherits from NumericUpDown in WinForms. I want to handle changes to the DecimalPlaces-Property of NumericUpDown, therefore I have both tried declaring a void OnDecimalPlacesChanged() { MessageBox.Show("Moeeep"); } and…
nozzleman
  • 9,529
  • 4
  • 37
  • 58
1
vote
0 answers

Fody.PropertyChanged does not work in F# interactive

In my WPF project I have something like this: open PropertyChanged [] type Type1 = { mutable Name : string mutable Value : decimal } , and it works fine when compiled and application is running. But in F#…
fpawel
  • 309
  • 1
  • 3
  • 14
1
vote
0 answers

How can I apply the Fody Equals to all classes in my assembly?

Is there a way to bind the [Equals] Attribute of Fody-Equals to all classes in an assembly and just somehow ignore the classes that should not contain the Fody-Equals implementation?
Domenic
  • 708
  • 1
  • 9
  • 23
1
vote
1 answer

Catel + Fody/LoadAssembliesOnStartup + Fody/ModuleInit and order of loading modules

I use Catel + Fody/LoadAssembliesOnStartup + Fody/ModuleInit. I would like to know, how can I specify the load order of modules? I want to use the serviceLocator.RegisterTypeAndInstantiate for this I need to load modules in a specific order. How can…
Alex808
  • 101
  • 6