question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InlineIL.Fody and .NET Core 3.1

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hypeartistcommented, Jun 25, 2020

Works like a charm now! Thank you so much for such great responsiveness!

1reaction
ltrzesniewskicommented, Jun 25, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found