MonoGame / MonoGame.Samples

A few cross-platform game samples using MonoGame.
www.monogame.net
Other
570 stars 298 forks source link

Adding the converted Ship Game sample #67

Closed SimonDarksideJ closed 5 months ago

SimonDarksideJ commented 6 months ago

Adding the converted Ship Game sample, direct conversion from the XNA sample.

Note, still a desktop/console focused game.

TODO

SimonDarksideJ commented 5 months ago

Never tried it that way, but I can give it a go. Works make the multiplatform template a lot cleaner. But wouldn't that affect the projects being opened individually?

SimonDarksideJ commented 5 months ago

As confirmed in testing @dellis1972 , having a single .config folder for the solution creates issues if you try to open just the projects themselves, and can cause the MGCB tool not to be usable for individual projects.

Unless your testing shows something different?

dellis1972 commented 5 months ago

As confirmed in testing @dellis1972 , having a single .config folder for the solution creates issues if you try to open just the projects themselves, and can cause the MGCB tool not to be usable for individual projects.

Unless your testing shows something different?

From the docs

"If the file doesn't contain an entry for "isRoot": true, then also check further up the file hierarchy for additional tool manifest files.".

So if you remove the isRoot, it will pick up files from above the directory.

SimonDarksideJ commented 5 months ago

As confirmed in testing @dellis1972 , having a single .config folder for the solution creates issues if you try to open just the projects themselves, and can cause the MGCB tool not to be usable for individual projects. Unless your testing shows something different?

From the docs

"If the file doesn't contain an entry for "isRoot": true, then also check further up the file hierarchy for additional tool manifest files.".

So if you remove the isRoot, it will pick up files from above the directory.

OK, so I tried a root config without the "isRoot" and nothing would build. But I tested again with the single .config at the root of the project and everything does indeed work. WIll push that Projects HAVE to be built from the root folder anyway as you need the .sln file for the dependencies