How to get working code to compile for Windows Store?

So I built my game for Windows 8 Phone and the installation went off without a hitch. Before I knew it I was playing the game… then I changed over to Store and tried Windows 8.1 , 8.1 Universal and 10 universal and in all three I get the most stupid and cryptic of error messages…

One tells me that during postprocessing it came across files with no names and that all files must have names.
Another one tells me that the EMPTY folder I am building into contains a version of the game that is not compatible with the version being built

So I decided to delete everything and start installing the packages one by one, fixing any errors that might popup but the very first package I installed (containing 4 scripts only) already has me beat… Apparently it is illegal to use the Rect type in your games…

I get the following 4 error messages:

Nowhere do I use OnGUI in the script so not really sure why that is even in there…

And finally:

Well THAT was probably the most useful error message they could possibly invent!

A mate of mine directed me to http://docs.unity3d.com/Manual/windowsstore-missingtypes.html where it finally became clear why some of my functions constructors were suddenly illegal and why the Close() method suddenly no longer exists, great… Useful hint.

Doesn’t explain why I can’t use Rect though… Nor the multitude of other errors I get that make even less sense than this.

This is my offending code

namespace MBS
{
public enum eSlideDirection	{Up=0, Down, Right, Left}
public enum eSlideState		{Closed=0, Opening, Opened, Closing}

[System.Serializable]
public class mbsSlider  {

	public bool Fade							= true;
	public bool Slide							= true;
	public eSlideDirection	slideInDirection	= eSlideDirection.Right;
	public eSlideDirection	slideOutDirection	= eSlideDirection.Right;
	public float			slideSpeed 			= 300.0f;
        public Rect tPos;

        public Action 	OnActivating,
					OnActivated,
					OnDeactivated,
					OnDeactivating;

	protected Rect			curPos;

	public float			alpha {get; set; }
	public mbsStateMachine<eSlideState>	slideState {get; set; }
	
	public Rect Pos { get { return curPos; } }

Note how I use Rect in multiple places but the error message only complains about tPos…

So two questions:

  1. What is wrong with my code?
  2. How do I get this working code to compile?

I noticed there is a handy “Getting started” section in the Docs containing “Coming soon” notifications so that is not really all that helpful as it might sound at first glance…

Anyone have any ideas?

Thanks

Edit:
Right after I typed this I finally got it to compile without complaining about the Rect. Still waiting to see if compilation actually COMPLETES since it likes to fail after a while but at least I got it to stop complaining about the Rect. All I had to do was remove the [system.serializable]… which I only added in afterwards because I got that error…

So anyway, it works for Win10, but for Win8.1 it now tells me:

…and so it goes on for 129 errors. Notice how it’s complaining about raycasters and Unity UI and my entire project doesn’t use any of it anywhere…

Same two questions as before still stand…

Which Unity version is this? Can we get a bug report, I’ve never seen such error popup in Unity’s assemblies

This is in the latest Unity 5 F release downloaded from the website 2 days ago.

When I boot back up into Bootcamp I can send you bug reports, sure.

I just submitted a bug report and included my project. Case number 727187

I am really hoping this is something stupidly simple like “Ahh, you didn’t install this or that patch” or something that I can fix on my end by just downloading something but I would greatly appreciate your advice on this.

Just to clarify one thing… In one of the other threads someone mentioned the VS version we need to have for compatibility with 5.2. I had a look in mine and I have exactly the right version of VS installed, just in case you are curious

So I created a new project and again only installed that one package…

Again it was complaining about two functions that use StreamReader and StreamWriter but this time, instead of deleting the two functions that I never use I just hid it via #if #endif and got ready to deal with the other errors that I mentioned before…

Wouldn’t you know it? Now there isnot a single error at all and the assemblies build and everything goes as expected… until it finally throws 2 copies of the same exception:

Strange how a new project with nothing in it can deliver a build an app I can actually start and look at the default sky in… but when I add a single package to the project, suddenly my Visual Studio projects can’t build any more…

Seriously, is there like some sort of “Getting strted with Windows” document somewhere? The info I found in the docs is all sorted into categories and look all nice and neat. Now if I can find a resource that says “You need to setup user settings here, you need to create a developer account with MS then create a personal key using this and that tool, now configure this XML fie with details from here and there and so and such, now go into unity and make your game. Before you hit build, first follow these additional 93 steps and modify those 5 settings from here and there before you hit build”, that would be awesome.

I’ve only recently started using Windows and some of the instructions in the docs simply assume that I am a master at Visual Studio and know exactly what the heck you ae speaking about or know where I am supposed to go to even start trying to figure out what it was that was just said…

Why is it so complicated to set Windows Store as a a build target?