Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find ContentTypeReader Type. Please ensure the name of the Assembly that contains the Type matches the assembly in the full type name: #7534

Closed
V8275 opened this issue Jul 17, 2021 · 5 comments

Comments

@V8275
Copy link

V8275 commented Jul 17, 2021

I don't understand why this error appears when i add a model .dae

Microsoft.Xna.Framework.Content.ContentLoadException: "Could not find ContentTypeReader Type. Please ensure the name of the Assembly that contains the Type matches the assembly in the full type name: Microsoft.Xna.Framework.Content.ReflectiveReader1[[Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent, MonoGame.Framework.Content.Pipeline, Version=3.8.0.1641, Culture=neutral, PublicKeyToken=null]] (Microsoft.Xna.Framework.Content.ReflectiveReader1[[Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent, MonoGame.Framework.Content.Pipeline]])"

What version of MonoGame does the bug occur on:

  • MonoGame 3.8/0/1641

What operating system are you using:

  • Windows 10

What MonoGame platform are you using:

  • DesktopGL
@mrhelmut
Copy link
Contributor

Do you happen to have enabled .NET trimming?

@V8275
Copy link
Author

V8275 commented Jul 17, 2021

Do you happen to have enabled .NET trimming?

How can I check this?

@akghasemi
Copy link

I had the same issue with 3.8.1 , and I disabled .NET trimming and it worked, should it be disabled in monogame?

@Ragath
Copy link
Contributor

Ragath commented Jan 23, 2023

I had the same issue with 3.8.1 , and I disabled .NET trimming and it worked, should it be disabled in monogame?

no you just need to tell it not to trim types you're actually using, like the readers. https://devblogs.microsoft.com/dotnet/customizing-trimming-in-net-core-5/

@mrhelmut
Copy link
Contributor

Duplicate of #8104

@mrhelmut mrhelmut marked this as a duplicate of #8104 Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants