Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Could not load monogame#408x128 asset as a non-content file!

$
0
0

@Romeo_Berlov wrote:

I try to load monogame#408x128.xnb file in Linux but get error:
Could not load monogame#408x128 asset as a non-content file!

at Microsoft.Xna.Framework.Content.ContentManager.OpenStream (System.String assetName) [0x00045] in /media/Documents/Projects/MonoGame-master/MonoGame.Framework/Content/ContentManager.cs:240
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T] (System.String assetName, System.Action`1[T] recordDisposableObject) [0x0007c] in /media/Documents/Projects/MonoGame-master/MonoGame.Framework/Content/ContentManager.cs:282

I use microsoft content project for building assets. It's my loading code:

Content.Load(fileName.Split('.')[0]);

But I can load other files from same folder. What is problem in? Maybe file name

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles