ContentLoadException in MonoGame

后端 未结 5 715
夕颜
夕颜 2021-01-13 19:29

I\'ve been trying load a texture in MonoGame using Xamarin Studio. My code is set up as below :

#region Using Statements
using System;

using Microsoft.Xna.F         


        
5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 20:06

    Set the 'Build action' of the png file to 'Content' and set 'Copy to output directory' to 'Copy if newer'.

    You can bring up the properties window in Xamarin Studio by ctrl clicking the file and pressing properties.

    You shouldn't include the file extension.

提交回复
热议问题