Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Erol
    @FrEaKmAn
    hi all, when I share the final built files, why do I also need to include .deps.json file?
    tom-englert
    @tom-englert
    @FrEaKmAn .deps.json is not related to Fody, it is part of the regular dotnet build output.
    gitoslavexxx
    @gitoslavexxx
    Hi, i have a problem with the hooking right assembly. I need to modify System.Numerics. I've wrote the weaver to hook it and patch, when im testing this weaver on already compiled .dll file all works as expected but when i add the nuget with my weaver to the project, instead of hooking real System.Numerics.dll it hooks ref version of this lib with only class structure and without any implementations, so how to get a real lib with the actual code during the compilation process?
    .net 5 or 6
    also i've added System.Numerics to the GetAssembliesForScanning method
    gitoslavexxx
    @gitoslavexxx
    tom-englert
    @tom-englert
    @gitoslavexxx You can't use Fody to modify any other assembly than the one you are building. You could intercept or replace calls to System.Numerics
    Simon Cropp
    @SimonCropp
    just a heads up dotnet/roslyn#56678
    "hot reload does not support IL weavers"
    Brandon Butler
    @Hackmodford
    Has anyone else had any issues using NotifyPropertyChanged's DependsOn attribute? It just isn't working for me in a recent project. https://stackoverflow.com/questions/69519382/propertychanged-fody-dependson-not-working
    tom-englert
    @tom-englert
    @Hackmodford can you provide a complete sample? It is hard to guess the connecting parts from that snippets.
    Brandon Butler
    @Hackmodford
    I will create a simple repo to demonstrate
    Brandon Butler
    @Hackmodford
    Of course I created a simple console application to demonstrate and it works...
    Brandon Butler
    @Hackmodford
    I even went one step up and created a minimal xamarin.forms application with mvvmcross and it still works :/
    Brandon Butler
    @Hackmodford
    Okay. I think I've narrowed it down to this extension method causing the problem.
    public static IDisposable ToPropertyChanged<TSender, TParent, TRet, TRet2>(
                this IObservable<IObservedChange<TSender, TRet>> changeObservable,
                TParent owner,
                Expression<Func<TParent, TRet2>> parentProperty) where TParent : MvxNotifyPropertyChanged
            {
                return changeObservable.Subscribe(value =>
                {
                    var expression = (MemberExpression)parentProperty.Body;
                    var name = expression.Member.Name;
                    owner.RaisePropertyChanged(name);
                });
            }
    Brandon Butler
    @Hackmodford

    Here is a simplified project demonstrating the problem.

    https://github.com/Hackmodford/DependsOn_broken_example

    tom-englert
    @tom-englert
    @Hackmodford you are trying to mix two incompatible tools. Maybe try ReactiveUI.Fody instead of PropertyChanged.Fody?
    Brandon Butler
    @Hackmodford
    I don't think that would be the issue. I'm still using MvvmCross for the viewmodels. I am not using ReactiveObject at all, just some nifty helper methods from ReactiveUI.
    Brandon Butler
    @Hackmodford
    @tom-englert I created a branch that does not have ReactiveUI. It has the same problem.
    tom-englert
    @tom-englert
    Don't know what library ToPropertyChanged belongs to, but it's not with PropertyChanged Fody
    ... not compatible ...
    Brandon Butler
    @Hackmodford

    @tom-englert It's a extension method that I created. But my latest example has that completely removed on the other branch.

    The issue is that calling MvvmCross's RaisePropertyChanged does not seem to trigger fody.

    tom-englert
    @tom-englert
    @Hackmodford no, that's by design; setting a property triggers fody, and fody calls RaisePropertyChanged - there is no back loop.
    Brandon Butler
    @Hackmodford
    @tom-englert So the "DependsOn" does not use INotifyPropertyChanged at all?
    tom-englert
    @tom-englert
    AtlantisDe
    @AtlantisDe
    Catel.Fody Hello, can the unmanaged C# dll be packaged as a single exe?
    I don't seem to see any useful information. Can I do this?
    tom-englert
    @tom-englert
    @AtlantisDe "unmanaged C# DLL" ?
    AtlantisDe
    @AtlantisDe

    @tom-englert Yes .... C# importing C++ dll Example:

      [DLLImport( "Libraries\lib.dll" )];
    static extern void MyNativeMethod();

    the dll...lib.dll is my c++dll...
    Now i need packaged as a single exe Pack this c++dll into it

    tom-englert
    @tom-englert
    AtlantisDe
    @AtlantisDe
    @tom-englert thank you very much.... i can do it ....ths
    Ronnie Overby
    @ronnieoverby

    I'm trying to use Tracer.Fody to rewrite a netstandard2.0 class library assembly, but at build time the error I get is :

    ```
    Fody: An unhandled exception occurred:
    Exception:
    Could not load file or assembly 'Mono.Cecil, Version=0.11.0.0, Culture=neutral, PublicKeyToken=1ca091877d12ca03'. The system cannot find the file specified.
    Type:
    System.IO.FileNotFoundException
    StackTrace:
    at InnerWeaver.Execute()
    at Processor.ExecuteInOwnAssemblyLoadContext() in C:\projects\fody\Fody\Processor.cs:line 148
    at Processor.Inner() in C:\projects\fody\Fody\Processor.cs:line 122
    at Processor.Execute() in C:\projects\fody\Fody\Processor.cs:line 50
    Source:
    FodyIsolated
    TargetSite:
    Void Execute()

    The tracer weaver is pinned to fody 4.2.1. Is that my problem?
    AtlantisDe
    @AtlantisDe
    Hello everyone, how do I configure the obfuscated dll before packaging with fody?
    Simon Cropp
    @SimonCropp
    @AtlantisDe obfuscated assemblies are not supported
    Lelelo1
    @Lelelo1
    Hello. I have question about the location of the xml file. I have a Xamarin setup, with a Net standard library, Xamarin forms, Android and iOS projects. Should FodyWeavers.xml be added to all projects?
    chrwell
    @chrwell
    Hello, since using Fody (6.6.0) with ConfigureAwait.Fody (3.3.1) I'm having those build failures on and off: "Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Repeat 2 times: at Mono.Cecil.Pdb.ISymUnmanagedWriter2.Close()" on Win10 (64bit, 32GB, i7-9700), both calling MSBuild (from .NET SDK 5.0.4) directly and through JetBrains Rider. ConfigureAwait.Fody is configured through an MSBuild property in the project file. Any ideas of the cause and/or where to submit an issue?
    The Stonefox
    @thestonefox

    Hi, I'm trying to upgrade Fody from version 3.3.5 to the latest 6.6.0 but i'm hitting an error where it says WeaverEntry doesn't contain a reference for AssemblyName and I can see in the git commit history that WeaverEntry was completely changed after 3.3.5 and there is no replacement for the AssemblyName (or its not apparent from the new code or any commit messages)

    does anyone know how I can set the assembly name still on the weaver entry?

    AtlantisDe
    @AtlantisDe
    Can anyone please help me how to use Costura.Fody to package LevelDB.Standard ? Got this error System.TypeInitializationException: ""LevelDB.LevelDBInterop" This is the Demo code I made for reference. matjazbravc/Embedded-SQLite-Demo#1
    tom-englert
    @tom-englert
    AtlantisDe
    @AtlantisDe
    @tom-englert Thanks But I tested it and it still failed. Would you mind giving me a demo? Can successfully package LevelDB.Standard .................ths
    AtlantisDe
    @AtlantisDe

    @tom-englert My temporary plan is this
    If there is no other solution, I will close this issue in the next 5 days

    var dllHandle = LoadLibrary("leveldb.dll");

    Geert van Horrik
    @GeertvanHorrik
    Have you considered hiring someone to debug this for you?
    AtlantisDe
    @AtlantisDe
    @GeertvanHorrik I have solved it myself. I re-downloaded the source code and modified it to get the expected effect. But I wonder if I can support using the official distribution package directly.
    Kirk Woll
    @kswoll
    I have a Fody plugin I was hoping could be added to https://github.com/Fody/Home/blob/master/pages/addins.md Is there a process for that?
    Lucas Trzesniewski
    @ltrzesniewski
    @kswoll You can send a PR which adds your plugin to the addins.md file (please just keep the alphabetical order)
    Kirk Woll
    @kswoll
    thanks!
    David Lo
    @dav1d992

    Hi there,
    I'm trying to use Fody.EmptyConstructor on my Domain project without introducing the dependency to Fody in there.
    My Business project has a reference to the Domain project. Ideally the dependency to Fody should be in my Business project. Is this possible and how?
    Thanks for any suggestions.

    On stackoverflow:
    https://stackoverflow.com/questions/72088286/use-fody-emptyconstructor-on-a-separate-project

    Lucas Trzesniewski
    @ltrzesniewski
    @dav1d992 Hi, I posted an answer on SO.