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
57
votes
3 answers

Fody is only supported on MSBuild 16 and above. Current version: 15

Visual Studio 2017 let me know there was an upgrade to Fody version 5 this morning. I accepted and did a NuGet package update of both Fody and PropertyChanged.Fody. Now, my project/solution will no longer build. The error is: "Fody is only…
25
votes
6 answers

MsBuild cannot resolve MsBuildMajorVersion

I have Visual Studio Solution with more than 100 projects. Five of them have Fody's nuget packages installed (version 6.0.3). When I try to build the Solution I get the following error: Fody.6.3.0\build\Fody.targets(38,12): error MSB4086: A…
rgb
  • 1,750
  • 1
  • 20
  • 35
23
votes
5 answers

Error Fody: No weavers found. Add the desired weavers via their nuget package

I have already installed Fody in my application several and several times but still this error appears below, could anyone tell me why it happens? I use the latest version of Visual Studio and latest version of Framework
gbcga97
  • 347
  • 1
  • 2
  • 14
21
votes
3 answers

Xamarin issues with Fody.WeavingTask and SolutionDir

I have been trying to use Realm in my Xamarin android proyect, one of it's dependencie is Fody, each time i try to run my app it shows the following error: error MSB4044: The "Fody.WeavingTask" task was not given a value for the required parameter…
keitaro martin
  • 837
  • 7
  • 7
14
votes
6 answers

Unable to compile project due to Fody errors. Nothing with Fody (or any other code) has been changed

** This is an issue in Visual Studio 2013. The error I'm getting is massive and mostly useless, but the crux of it is Error 130 Fody: Could not load 'ModuleWeaver' from 'PropertyChanged.Fody, Version=1.50.3.0, Culture=neutral, PublicKeyToken=null'…
Justin
  • 533
  • 1
  • 7
  • 18
13
votes
3 answers

How to disable Costura.Fody resources embedding in Debug mode?

I'm using Costura.Fody to embed all dlls into my application assembly. Is there any way to disable Costura.Fody in Debug build mode? How to make Costura.Fody to work only in Release or custom build configuration?
Hooch
  • 28,817
  • 29
  • 102
  • 161
10
votes
2 answers

Does Fody leave any references/traces in final assembly?

Are there are any traces of Fody, or its dependencies (references), in the final weaved assembly?
Meirion Hughes
  • 24,994
  • 12
  • 71
  • 122
8
votes
3 answers

C# - why costura and fody doesn't work to me?

(Translator used.) I was making an exe file using Costura and Fody. However, if the dll file is missing, it cannot run. And there is a warning in my Visual Studio. Warn: FodyPackageReference Fody: The package reference for Costura.Fody is missing…
8
votes
2 answers

Fody Exception in Release Mode Symbol file .dll.mdb does not match assembly .dll

I'm having a problems building a PCL in Xamarin Studio on the Mac. It works fine in debug mode but fody throws an exception in Release Mode. Exception during build is listed below. Error: Fody: An unhandled exception occurred: Exception: Symbol…
rid00z
  • 1,566
  • 3
  • 16
  • 35
7
votes
2 answers

MEF - Get assembly from embedded DLL

I am using MEF to create "plugins" for my WPF application. Some of these plugins I want to embed directly into the EXE file as the EXE needs to be standalone. I am using Costura by Fody to embed the resource along with all my other references. As…
Danhol86
  • 1,352
  • 1
  • 11
  • 20
7
votes
3 answers

Problems with Fody/Costura

To start with: I'm a complete beginner. I have two projects in one solution. One project is a console application, which is called from the windows form application. Now I want to add these to one executable. I was told that it was possible with…
user3492582
  • 81
  • 1
  • 1
  • 6
7
votes
3 answers

Compile-time / Post-Build Dependency Injection IoC?

I currently use NInject to bind interfaces to concrete types and inject those into my classes. However, it is my understanding that this is a run-time affair. To me, it seems like a point of attack if someone wanted to change the behavior of my…
Meirion Hughes
  • 24,994
  • 12
  • 71
  • 122
6
votes
0 answers

How to Inject dependencies when using MethodDecorator.Fody

I am trying to use MethodDevorator.Fody to enable Attribute based method interception. https://github.com/Fody/MethodDecorator/blob/master/readme.md#your-code I wanted to create a reusable component (nuget package), expecting consumers to give…
6
votes
1 answer

What is the "module" keyword in C# .NET?

I am learning C# and came across the keyword module. I would like to know what this module keyword in C# is and how it is useful. For example, consider the below code: [module: Test] public class TestAttribute : Attribute { }
gnagesh
  • 83
  • 6
6
votes
1 answer

Could not find System.Object VB.NET

Error : Fody: Could not find 'System.Object'. WindowsApp1 hi, something called Fody, it embed dlls assembly into project. problem is it work only with C# |and i need use it as VB, i cant reduce Netframwork less than 4.6 cause dll's required high…
Darzy08
  • 105
  • 1
  • 4
  • 14
1
2 3
12 13