diff --git a/Demos.Android/Resources/Resource.Designer.cs b/Demos.Android/Resources/Resource.Designer.cs index a040fa0..7d74379 100644 --- a/Demos.Android/Resources/Resource.Designer.cs +++ b/Demos.Android/Resources/Resource.Designer.cs @@ -2,7 +2,6 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -15,7 +14,7 @@ namespace Demos.Android { - [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] public partial class Resource { diff --git a/Demos.DesktopGL/Demos.DesktopGL.csproj b/Demos.DesktopGL/Demos.DesktopGL.csproj index 05930bc..14808c5 100644 --- a/Demos.DesktopGL/Demos.DesktopGL.csproj +++ b/Demos.DesktopGL/Demos.DesktopGL.csproj @@ -2,7 +2,7 @@ Exe - net462 + netcoreapp3.1 @@ -13,8 +13,8 @@ - - + + diff --git a/Demos/Demos.csproj b/Demos/Demos.csproj index fd4d84e..e0742c1 100644 --- a/Demos/Demos.csproj +++ b/Demos/Demos.csproj @@ -11,7 +11,7 @@ - + all diff --git a/Demos/GameImpl.cs b/Demos/GameImpl.cs index 5ff94f0..f2c0315 100644 --- a/Demos/GameImpl.cs +++ b/Demos/GameImpl.cs @@ -32,6 +32,10 @@ namespace Demos { } protected override void LoadContent() { + // TODO remove with MonoGame 3.8.1 https://github.com/MonoGame/MonoGame/issues/7298 + this.GraphicsDeviceManager.PreferredBackBufferWidth = 1280; + this.GraphicsDeviceManager.PreferredBackBufferHeight = 720; + this.GraphicsDeviceManager.ApplyChanges(); base.LoadContent(); var tex = LoadContent("Textures/Test"); diff --git a/Sandbox/Content/Content.mgcb b/Sandbox/Content/Content.mgcb index 45d0b90..7749651 100644 --- a/Sandbox/Content/Content.mgcb +++ b/Sandbox/Content/Content.mgcb @@ -10,7 +10,7 @@ #-------------------------------- References --------------------------------# -/reference:..\bin\Debug\net462\MonoGame.Extended.Content.Pipeline.dll +/reference:..\bin\Debug\netcoreapp3.1\MonoGame.Extended.Content.Pipeline.dll #---------------------------------- Content ---------------------------------# diff --git a/Sandbox/GameImpl.cs b/Sandbox/GameImpl.cs index fd56602..ef2dbcb 100644 --- a/Sandbox/GameImpl.cs +++ b/Sandbox/GameImpl.cs @@ -40,6 +40,11 @@ namespace Sandbox { } protected override void LoadContent() { + // TODO remove with MonoGame 3.8.1 https://github.com/MonoGame/MonoGame/issues/7298 + this.GraphicsDeviceManager.PreferredBackBufferWidth = 1280; + this.GraphicsDeviceManager.PreferredBackBufferHeight = 720; + this.GraphicsDeviceManager.ApplyChanges(); + base.LoadContent(); this.Components.Add(this.rawContent = new RawContentManager(this.Services)); diff --git a/Sandbox/Sandbox.csproj b/Sandbox/Sandbox.csproj index db72943..1e8b101 100644 --- a/Sandbox/Sandbox.csproj +++ b/Sandbox/Sandbox.csproj @@ -2,7 +2,7 @@ Exe - net462 + netcoreapp3.1 @@ -14,10 +14,10 @@ - + - +