RochesterIndiesAnonymous / Ironstag

XNA/MonoGame-based, megamanesque platformer with a space-western theme
3 stars 1 forks source link

XBOX One/UWP Build Task #10

Open thedarkprincedc opened 6 years ago

thedarkprincedc commented 6 years ago

I would like to get this project build for Xbox One. I did a little research and found out I would need to create a UWP project.

thedarkprincedc commented 6 years ago

..... I hope this isnt too hard. I think I would only need to change project dependencies....

thedarkprincedc commented 6 years ago

Hmm on first look im getting this error image

thedarkprincedc commented 6 years ago

http://community.monogame.net/t/problem-with-monogame-3-7-development-build/9034

Nevermind i managed to resolve the issue. For anyone else who may be having the same problem make sure and when you are prompted to select which build you want to target that you select the "Anniversary Update" and NOT the creators update. You may have some errors initially when loading the program but once you do an initial build everything will work fine.

thedarkprincedc commented 6 years ago

https://andrewlock.net/including-linked-files-from-outside-the-project-directory-in-asp-net-core/

this is to share files between projects in a solution.

thedarkprincedc commented 6 years ago

Interesting issues now.... So some base assemblies we use arnt supported by a uwp app such as system, system.drawing, system.xml lets see what further research will reveal....

thedarkprincedc commented 6 years ago

So the current namespace I am having trouble with is System.Drawing.RectangleF right now it looks the references could all be replaced with Monogame.Framework.Rectangle.

thedarkprincedc commented 6 years ago

Monogame.Framework.Rectangle is Microsoft.Xna.Rectangle its only support integers System.Drawing.RectangleF is for floats

thedarkprincedc commented 6 years ago

PointF RectangleF RectangeF.contains

Vector2 Rectangle

thedarkprincedc commented 6 years ago

IEnumerable<Type> types = from type in System.Reflection.Assembly.GetExecutingAssembly().GetTypes() where type.IsSubclassOf(typeof(WorldObject)) && !(type.Name == "Player") && type.GetConstructor(expectedCharacterArguments) != null && !type.IsAbstract select type;

Need to translate this into uwp......

thedarkprincedc commented 6 years ago

So far the app is compilable, as a UWP project but its having trouble loading content. The content pipelines are broken. we are using .NET 4.5 Framework vs .Net core

thedarkprincedc commented 6 years ago

So It looks like we have to create a build task with .net core, windows uwp monogame for the content pipeline