Hello,
how load strings from RESW?
I have created a Strings.resw file in monogame UWP project.
Trying to load string
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
var resourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView();
var test = resourceLoader.GetString("test");
spriteBatch.Begin();
spriteBatch.DrawString(font, test, Vector2.Zero, Color.White);
spriteBatch.End();
base.Draw(gameTime);
}
after running a game I get error.
Resource Contexts may not be created on threads that do not have a CoreWindow. (Exception from HRESULT: 0x80073B27)