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

Using compile-time aspects to implement abstract interfaces

As I understand it, all compile-time .NET aspect-oriented-programming frameworks (such as PostSharp or Fody) can only process code that has already successfully compiled. This presents an obstacle if you want to use an aspect from these frameworks…
Tim Crews
  • 435
  • 5
  • 13
1
vote
1 answer

Fody/Mono.Cecil: Hide Lines in debugger

I am developing a fody addin (using mono.cecil) and inject some code at the beginning of a method. I want the debugger to step over the injected code. I found some information here: http://blogs.msdn.com/b/abhinaba/archive/2005/10/10/479016.aspx So…
Guido Roth
  • 219
  • 3
  • 10
1
vote
2 answers

msbuild not restoring only fody nuget package

I am using Stamp.Fody nuget package to stamp my .Net assembly. It has Fody as dependent nuget package. Jenkin is our continuous integration server. In order to build .Net solution MSBuild command line call is used. Upon running the msbuild command…
manu
  • 1,807
  • 4
  • 25
  • 32
1
vote
1 answer

Using Fody.PropertyChanged, how to use with a property of BindingList?

I have the following classes using Fody.PropertyChanged weaving: [ImplementPropertyChanged] public class OtherClass : INotifyPropertyChanged { #pragma warning disable 67 public event PropertyChangedEventHandler PropertyChanged; #pragma…
Stécy
  • 11,951
  • 16
  • 64
  • 89
1
vote
1 answer

Unable to filter on class name (in NLog.config) when using anotar catel nlog logging

I am using anotar catel fody for logging in my application. In NLog.config I want to use different levels for certain classes. Example config
user3235211
1
vote
1 answer

Fody-PropertyChanged raising on Dependent Property Change

I have a ProjectModel and a ProjectViewModel class; my Model handles direct manipulation of a project, while the view model is providing the "view friendly" properties and commands However, in my ViewModel I'm exposing the read-only project contract…
Meirion Hughes
  • 24,994
  • 12
  • 71
  • 122
1
vote
1 answer

PropertyChanged.Fody migrating notifypropertychanged

I have been using NotifyProperyWeaver and noticed it is deprecated in the latest build to Fody using PropertyChanged.Fody. I had NotifyProperyWeaver to only weave the properties i had attributes on and all other notifying was disabled. Is there a…
0
votes
0 answers

Embedding DLLs in a compiled executable in regards to PDFIUM

I need to get pdfium.dll into my .exe in visual studio 2019+ , but fody/costura . Has anyone managed to use any sort of weaver tool to bundle in pdfium.dll into an exe? and if so, why am I having a hard time bundling this .dll into the exe?
d delep
  • 31
  • 1
  • 1
  • 5
0
votes
0 answers

Costura.Fody nuget package rolls back when installing

I started a new c# .net Framework 4.8 console project with no code. I tried to install Costura.Fody nuget package. The installation starts to install as expected but then once it hits System.Runtime.InteropServices.RuntimeInformation.4.3.0 the…
Charlie P
  • 51
  • 2
  • 8
0
votes
1 answer

How to handle Fody related issues

I have just taken over a C# application, which seems to use some Fody library (whatever that means). First I had some problems that the Fody things were not working, not recognised, ..., and I've removed the Fody package and the PropertyChanged…
Dominique
  • 16,450
  • 15
  • 56
  • 112
0
votes
1 answer

MethodBoundaryAspect.Fody - LogAspect decoration not working when inside another Nuget

Well, I'm trying to make a Nuget just to simplify the process to Log in Azure Insights. I'm using Serilog, MethodBoundaryAspect and default Microsoft logging libraries to make my package, the idea was just to use the decoration instead of writing…
0
votes
0 answers

Fody not weaving PropertyChanged

I'm having trouble getting Fody & PropertyChanged working. I've got a .NET 4.7.2 project with both Fody(6.6.4) and PropertyChanged.Fody (4.1.0) packages added through NuGet, but only "PropertyChanged" shows in the solution explorer. My example…
AMG
  • 139
  • 13
0
votes
0 answers

How to apply a Fody.OnMethodBoundaryAspect-based aspect to all public methods in assembly?

Is there a way to apply a custom method interceptor aspect, based on Fody.OnMethodBoundaryAspect, to all public methods in an assembly without marking each method with the attribute? I've tried applying it using [assembly:…
EVT
  • 1
0
votes
1 answer

Get named values from a Fody CustomAttribute Constructor

Can anyone tell me how to read the property assignments of a CustomAttribute's constructor [Display(Name = "This name and value")] They don't seem to appear in either theattribute.ConstructorArguments or theAttribute.Properties (which is always…
Peter Morris
  • 20,174
  • 9
  • 81
  • 146
0
votes
1 answer

Fody: Copy an attribute from one property to another

I iterate through all classes, then all properties, then their attributes. When I see an attribute MetaAttribute(typeof(SomethingElse)) I find a property named Target on that class and copy all of its properties across to the current property on the…
Peter Morris
  • 20,174
  • 9
  • 81
  • 146