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.

Unable to generate schema for type defined in .NET 5 assembly

See original GitHub issue

Hi,

I’m probably doing something stupid but I’m unable to generate avro schema using dotnet avro cli tool.

Command I’m executing: dotnet avro create -a bin/Debug/net5.0/Events.dll -t Events.AccountEvent

And error I’m getting in response: The type could not be found. You may need to provide additional assemblies.

So question is what am I doing wrong here? 😞 Thanks in advance!

Here is decompiled assembly in ILSpy: Screenshot 2021-02-08 at 17 25 23

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dstelljescommented, Feb 8, 2021

Yeah, the next major release will bump it to .NET 5. I’ll also keep this open as a bug since we’d want this to fail with a better message.

0reactions
dstelljescommented, Jul 12, 2021

Thanks for your patience on this; the 7.1.0 release later today will add net5.0 as a CLI target framework.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The type is defined in an assembly that is not referenced ...
When you get this error, it means that code you are using makes a reference to a type that is in an assembly,...
Read more >
XSD.exe does not work with .NET Core assemblies #61319
XSD.exe seems to be a .NET Framework executable. If you try to give it a .NET Core assembly to generate XSD files from,...
Read more >
Assembly Manifest doesn't match reference
This article helps you resolve an error (The located assembly's manifest definition does not match the assembly reference) that occurs when a ...
Read more >
Swashbuckle.AspNetCore
In versions prior to 5.0.0 , Swashbuckle will generate Schema's (descriptions of the data types exposed by an API) based on the behavior...
Read more >
How to resolve “Could not load file or assembly … or one of its ...
When you build solution there can be one Newtonsoft.JSON.dll in bin/debug or bin/release folder. fuslogvw.exe is assembly binding log viewer (installed with ...
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