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.

The type could not be found. You may need to provide additional assemblies.

See original GitHub issue

Informations:

[Using WSL2]

dotnet avro --version
Chr.Avro.Cli 7.0.4
dotnet --list-sdks
3.1.302 [/usr/share/dotnet/sdk]

[Using Windows]

dotnet avro --version
Chr.Avro.Cli 7.0.4
dotnet --list-sdks
3.1.406 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]

When I try to run the readme example: dotnet avro create -t System.Int32 I got this message: The type could not be found. You may need to provide additional assemblies.

How could I solve this ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dstelljescommented, Mar 12, 2021

@davrobles, have you tried also passing System.Runtime as an assembly name as suggested above?

dotnet avro create --type AvroCsharpPOC.ExampleClass --assembly System.Runtime bin/Debug/net5.0/AvroCsharpPOC.dll
1reaction
dstelljescommented, Feb 19, 2021

Shoot, thanks for checking. We should also improve that message; it’d be good to know which type specifically it was failing to find.

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 >
The type or namespace name 'X' could not be found (are ...
I have a weird problem I just can't place. I have a SP 2010 project which contains two sub-projects of type class library...
Read more >
You must add a reference to assembly netstandard errors
I get these errors: csharp The type 'Object' is defined in an assembly ... The type or namespace name 'System' could not be...
Read more >
MSB3277: Found conflicts between different versions of ' ...
This error occurs during a build when more than one version of the same dependent assembly is referenced in a build of the...
Read more >
error CS0246: The type or namespace name ...
The type or namespace name 'ChannelListenerBase<>' could not be found (are you missing a using directive or an assembly reference?) error CS0246 ...
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