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
6
votes
2 answers

Error on using Fody [ImplementPropertyChanged]

I am Using VS 2017 Community Edition I am creating MVVM pattern. After i installed fody i got error on my code while the instructor of the tutorial implemented it on vs 2015 here is the code: using PropertyChanged; using…
A.Hussainy
  • 103
  • 1
  • 10
6
votes
0 answers

How to introduce new property based on existing property and modify existing one?

I am trying to automate this XmlSerializer workaround pattern. See update below. Is it possible to introduce new property based on existing property and modify attributes of existing one using PostSharp (or maybe some other AOP tool) ? It would be…
Anton Krouglov
  • 3,077
  • 2
  • 29
  • 50
6
votes
2 answers

Auto property initialization IL instruction order

I want to get the default value set on an auto property to do some IL weaving with Fody. As I understand, the initialization is just a syntactic sugar that sets the backing field in the constructor. So I thought the default value is created with the…
Yusuf Tarık Günaydın
  • 3,016
  • 2
  • 27
  • 41
6
votes
2 answers

Fody Async MethodDecorator to Handle Exceptions

I am trying to use Fody to wrap all exceptions thrown from a method with a common exception format. So I have added the required interface declaration and class implementation that looks like this : using System; using System.Diagnostics; using…
swestner
  • 1,881
  • 15
  • 19
6
votes
4 answers

How to properly remove PropertyChanged.Fody via NuGet

I intended to use Fody.PropertyChanged in one of my projects, and it was properly added via NuGet: Install-Package PropertyChanged.Fody I realized, it was in the wrong project, so I used the uninstall command: Uninstall-Package…
Nestor
  • 8,194
  • 7
  • 77
  • 156
5
votes
1 answer

How to properly setup Fody.Costura in .NET Core or .NET Standard

I am not able to get Fody.Costura running in a .NET Core 2.1 or .NET Standard 2.0 library. The wiki and open issues seem to not directly answer the question what has to be done differently than in a classic .NET Framework project (.exe or…
stev-e
  • 436
  • 6
  • 15
5
votes
0 answers

Using Dotfuscator with Fody/Costura

I use Fody/Costura to embed my Class Library inside Console Application resources, I want to obfuscate my Application and Class Library using Dotfuscator. Since, Dotfuscator CE runs after build - Class Library already inside Application resources…
Andrew
  • 129
  • 9
5
votes
0 answers

Change Fody weavers.xml Location

VisualStudio 2017, latest Fody nuget package, WinForms, C# When you install https://github.com/Fody/Fody it autogenerates FodyWeavers.xml in the project main directory. How can I change the location for this file? I tried changing content include in…
Jenny
  • 572
  • 4
  • 16
5
votes
0 answers

Postsharp and Fody Compatibility

I am using the free edition of PostSharp extensively in a project. I would like to use the PropertyChanged.Fody addin to handle all the PropertyChanged Notifications automatically. (I know that PostSharp offers a library for this, but it is not…
Michal Steyn
  • 341
  • 2
  • 5
4
votes
1 answer

Embedding dlls into exe with Mono support with Fody

Well my question is almost similar to Embedding DLLs in a compiled executable but the very great answer provided here looses the compatiblity with mono runtime, though it works on windows. So how can I use Fody (Costura) and also maintain mono…
Rishav
  • 3,818
  • 1
  • 31
  • 49
4
votes
1 answer

What's different about these IL lines? (Fody output assembly)

Dotfuscator uses ildasm to get IL code, which is what it then performs its obfuscation on. Dotfuscator has been choking on one particular assembly. This is the only assembly in the solution which uses Fody, an IL weaver, to "weave" additional CIL…
Void Star
  • 2,401
  • 4
  • 32
  • 57
4
votes
1 answer

Proper Architecture: Adding Attributes to Domain Model in .NET

Background I like Jeffrey Palermo's Onion Architecture model (similar to Hexagonal Architecture) which prescribes that the Domain Model be at the 'center' and the concrete implementations of infrastructure, specifically Concrete Repositories be on…
Philip Pittle
  • 11,821
  • 8
  • 59
  • 123
4
votes
5 answers

Disable Fody Costura

Is there a way to disable Fody Costura? I need to perform some troubleshooting and I want to know that Fody Costura is not part of the problem. I would prefer to disable it instead of removing the nuget which would be one solution. Removing…
Magnus Lindhe
  • 7,157
  • 5
  • 48
  • 60
4
votes
0 answers

Weave third party dll with fody

I would like to write a Fody plugin that will allow me to weave a third party dll. Is it possible? Reading the documentation and the source code from different plugins, I haven't found any way to do so. It appears that fody only enables to weave the…
4
votes
1 answer

How to get Fody / PropertyChanged to work in an iOS project in Xamarin Studio?

I've installed Nuget for Xamarin Studio and tried to add Fody/PropertyChanged to my iOS solution. However I get the following error: Adding 'PropertyChanged.Fody 1.41.0.0' to ImapClientApp.iOS. Could not install package 'PropertyChanged.Fody…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
1
2
3
12 13