InlineIL.Fody and .NET Core 3.1
See original GitHub issueIs it possible to use InlineIL.Fody in .NET Core 3.1 (or higher)? I get some weird error regarding System.ValueTuple
not being found.
Error Fody/InlineIL: Unexpected error occured while processing method T HookManager.Program::Read(System.Void*) at instruction IL_001b: call System.Void InlineIL.IL/Emit::Ldobj(InlineIL.TypeRef): System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'System.ValueTuple, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at InlineIL.Fody.Model.TypeRefBuilder.AddModifiers(TypeReference type)
at InlineIL.Fody.Processing.ArgumentConsumer.ConsumeArgTypeRef(Instruction typeRefInstruction)
at InlineIL.Fody.Processing.MethodWeaver.<ProcessIlEmitMethodCall>g__CreateInstructionToEmit|22_0(<>c__DisplayClass22_0& )
at InlineIL.Fody.Processing.MethodWeaver.ProcessIlEmitMethodCall(Instruction emitCallInstruction, Instruction& nextInstruction)
at InlineIL.Fody.Processing.MethodWeaver.ProcessMethodCalls()
HookManager D:\Repos\ConsoleApp2\HookManager\Program.cs 173
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:17 (8 by maintainers)
Top Results From Across the Web
ltrzesniewski/InlineIL.Fody: Inject arbitrary IL code at ...
This is an add-in for Fody which lets you inject arbitrary IL into your assembly at compile time. The following C# code, Is...
Read more >InlineIL.Fody 1.7.4
InlineIL.Fody. This is an add-in for Fody which lets you inject arbitrary IL into your assembly at compile time. Installation. Include the Fody...
Read more >Can Fody and its plugins be used with .NET Core (3.0)?
It should work. Fody is compatible with .NET Standard. Create a new WPF app using the WPF App (.NET Core) template in Visual...
Read more >InlineIL.Fody 1.3.1
InlineIL.Fody 1.3.1 .NET Standard 2.0 .NET Framework 4.5.2. There is a newer version of this package available.
Read more >Best 20 NuGet fody Packages
Find out most popular NuGet fody Packages. ... Fody. Extensible tool for weaving .net assemblies. ... Fody. Add null checks. Score: 5 |...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works like a charm now! Thank you so much for such great responsiveness!
I released v1.4.2 which removes the dependency on
System.ValueTuple
, it turns out there was a single usage.It should be available on NuGet in a few minutes.