[Updated 12/16/2013] Updated with screenshots of different files in the new exported version. At bottom of this post.
In the latest build when you create a windows 8 app or any app and export as a windows 8 app, the index.html file does not have everything it should. I can compare it with my older windows 8 export that works fine, but with exporting using the latest build I consistently get the javascript error. I can confirm it is an issue with the way the page is formed by copying the contents of my old index.html file in place of the new one and the new app will start working. There are a bunch of little differences between the structure of the new index.html files and the old ones that C2 would generate.
I am in the process of rebuilding my windows 8 application and cannot use the export functionality for a new build due to this issue. Here are Links to the old and new index.html as well that will help you find the issue.
Old Index.html file(working): dl.dropboxusercontent.com/u/138635871/C2BugCapx/indexOLDWorking.html
New Index.html file(broken): dl.dropboxusercontent.com/u/138635871/C2BugCapx/indexNEWBroken.html
Link to .capx file (required!):
dl.dropboxusercontent.com/u/138635871/C2BugCapx/win8adtest.capx
Steps to reproduce:
1. Open the capx
2. Export to windows 8
3. Open in visual studio
4. add the test certificate
5. Run the app (F5)
Observed result:
App Fails to run and displays a javascript error that jQuery is undefined.
Here is the Error Text:
Unhandled exception at line 77, column 3 in ms-appx://1195e6d7-3fa5-4ca5-ba49-a39875d7e345/index.html
0x800a1391 - JavaScript runtime error: 'jQuery' is undefined
Here is the code from line 77:
jQuery(window).resize(function () {
?cr_sizeCanvas(jQuery(window).width(), jQuery(window).height());
});
Expected result:
App should run and display in windows 8
Browsers affected:
Chrome: N/A
Firefox: N/A
Internet Explorer: N/A
Operating system & service pack:
Windows 8.1 (All current updates)
Construct 2 version:
r154
Just wanted to update this, I am seeing differences in the files that are generated in the solution as well. Some also seem to be missing according to visual studio... Did something get changed or mixed up between the windows 8.1 and windows 8.0 options? I export as windows 8.0 and here is the difference between my old and new exports (old is r152, new is r154)
New is on the left, old (working) is on the right...
<img src="http://dl.dropboxusercontent.com/u/138635871/IssueScreenShots/Win8SolutionFilesDifferent.png" border="0" />
I figure you guys are probably off for the weekend, so I am just trying to add as much detail as I can to get the windows 8 export piece fixed as it is currently broken and I cannot run the generated solutions from Visual Studio any more...