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

[FIXED] ContentLoadException when using project on another computer

$
0
0

@Jelle wrote:

Hi there

I recently copied my MonoGame 3.6 working project on a USB stick, and placed it on another computer.
There are no errors shown in the visual studio error list, but I get a ContentLoadException for every texture file when launching the project.

Example:

        mouseTexture = new Image(content.Load<Texture2D>(@"Images/Mouse_Texture"), new Point(3, 3), new Point(0, 0));

-> This image is located here: ...Content\Images\Mouse_Texture.png (in debug and release folder)
-> Build action is set to: "Content"
-> Copy to output directory is set to: "Copy if newer"

I tried moving a project to another computer a long time ago on MonoGame 3.5, and that worked perfectly. I can't seem to find the problem here.
Note: I have the same error with all the projects.

Thanks in advance

UPDATE
It works when placing all the texture (.png) files in the Content.mgcb (content pipeline) file. Why could I use normal .png's before, and not now?

Picture:
Before:

Now:

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles