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
0
votes
1 answer

Fody.WeavingTask task fails unexpectedly with System.TypeInitializationException

I am on Fody 2.3.15 with Nullguard 1.6.3. The build environment uses MS Build 15.0. The devops build task was working fine in the past but now the build log files show the following error to which I get no clues. Can someone let me know what I am…
Codecrasher99
  • 351
  • 3
  • 17
0
votes
1 answer

Fody System.OutOfMemoryException

I have a Xamarin Forms project where I use PropertyChanged.Fody. I have update at the version 3.2.8 and this error is trigger when I try to compile the PCL project. I'm on Visual Studio 16.6.0 on Windows. How can I solve this? Severity Code …
Hikari
  • 589
  • 7
  • 29
0
votes
0 answers

Can't extend MVVMLight's ViewModelBase with INotifyPropertyChanged

I had been using my own ViewModelBase and RelayCommand, and recently I installed MVVMLight, as well as PropertyChanged.Fody. It appears that PropertyChanged.Fody doesn't notify if you're using a custom setter, so I do need to implement…
Jonathan Tuzman
  • 11,568
  • 18
  • 69
  • 129
0
votes
1 answer

Adding a call to a generic method within an open generic in Fody

I'm attempting to weave a method call using Fody to fix an issue that causes some incompatibility between ReactiveUI and PropertyChanged.Fody Now the implementation works just fine for all of my test cases except one - weaving it into an open…
Rhys Bevilaqua
  • 2,102
  • 17
  • 20
0
votes
1 answer

NuGet references in VS

I am using fody and methodboundaryaspect.fody in this class as NuGet references. The references are installed properly but here it says that it can not find "OnMethodBoundaryAspect" which is part of MethodBoundaryAspect. Does anyone faced a similar…
edgj4718
  • 47
  • 9
0
votes
1 answer

Apply fody weavers to the entire solution

I'try to setup Tracer.Fody and it works perfectly when I add it to one project. However I would like to setup tracer logs for the entire solution and to configure it with only one FodyWeavers.xml. Is it possible to setup Fody only on the Main…
Dmitry
  • 2,033
  • 1
  • 22
  • 31
0
votes
0 answers

Costura.Fody doesn't want to embed anything in C#, I've already done everything as shown

I installed costura.fody successfully, set the FodyWeavers.xml, yet still it doesnt say embedding (dll) in the console. I've tried launching my app and indeed it didn't embed anything. My DLLs are added as references and I also even added them as…
0
votes
2 answers

How can I use AOP for Blazor assemblies?

What are the possibilities to process Blazor C# compiled code (Wasm) reusing weavers that worked on .NET Standard assemblies (e.g. Fody).
algorytmus
  • 953
  • 2
  • 9
  • 28
0
votes
1 answer

Reactive UI Extending View Support The Type has a on_PropertyName_Changed method ** which is static

Based off this link: https://reactiveui.net/docs/handbook/view-location/extending-iviewfor Whenever I try to execute the code in the example using the RG.Plugins.Popup nuget I receive the following error: Fody: The Type MyType '1 has a…
KING
  • 938
  • 8
  • 26
0
votes
0 answers

Using multithread in ModuleInitializer using ModuleInit.Fody

I using ModuleInit.Fody for create code that should be invoke on load of assembly. In this code I need do some operation in task. Unfortunately there is problem with this code... code inside the task is not fired. when i used this same code after…
0
votes
1 answer

Why NullGuard.Fody doesn't support value types

I'm currently maintaining a legacy project with tens of thousands of existing code. Since there are tons of code that happily assumes every single caller is a well-behaved citizen and just skips validating any data passed to it, I'm introducing Fody…
0
votes
1 answer

Why does Fody weaving fail to weave other projects?

Sorry for the use of pictures here but it seemed appropriate. I have a simple method interceptor working in the first image, but when I move my interceptor to be a part of the library that I want it to live in (for reusability) it just stops…
Daniel Armstrong
  • 829
  • 9
  • 22
0
votes
1 answer

Use methods added by Fody in same solution

I'm using a custom Fody weaver to add new methods to existing classes. Using dnSpy, I can see that the methods are added but, projects (unit testing and benchmarks) in the same solution with direct dependency, don't compile. If I change these to…
Antao Almada
  • 445
  • 5
  • 12
0
votes
1 answer

Errore Package SpalshScreen.Fody

English Translation : I installed the SplashScreen.Fody Package in the VisualStudio environment for my project, the user guide was to add a WPF UserControl to the project that generated a .xaml file for creating and managing a SplashScreen. Only…
0
votes
1 answer

NCrunch build fails, starting with fody >= 4.0.0 "Cannot convert transparent proxy to IInnerWeaver"

I have the following error while building my projects using NCrunch. Fody: An unhandled exception occurred: Exception: Der transparente Proxy kann nicht in den Typ "IInnerWeaver" umgewandelt werden. Type: System.InvalidCastException StackTrace: …
sa.he
  • 1,391
  • 12
  • 25