locked
How to update a Windows 8 application to latest WinJS (4.0-preview) RRS feed

  • Question

  • Hello,

    I am having issues in my Windows 8 application, because of this issue:
    https://github.com/winjs/winjs/issues/146

    This is a strange race condition that was fixed by @rigdern in this commit:
    https://github.com/winjs/winjs/commit/dbc7a96d53bbed9d68471d1b6a84b7a130e7dfec

    In my Windows 8 application project, I have a reference to:
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\Microsoft.WinJS.2.0\1.0\

    And ui.js is currently located in:
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\Microsoft.WinJS.2.0\1.0\DesignTime\CommonConfiguration\neutral\Microsoft.WinJS.2.0\js\ui.js

    With this link (https://github.com/winjs/winjs/releases/download/release%2F4.0.0-preview/winjs.zip) I can get all the files for WinJS 4.0-preview but how exactly am I supposed to use this? 
    Should I monkey patch what's in Program Files so that the new files will be packaged?
    Should I remove the reference to WinJS 2.0 from my project and include the downloaded WinJS 4.0 files in my project directly and reference them in my head tags? Will that even work or does Visual Studio need to have a WinJS reference to be able to package my application?

    Thanks for your help,
    Fabien
    Sunday, April 19, 2015 9:48 PM

Answers

  • Hello,

    I actually cross-posted on Github and got an answer there. For those with the same issue:

    https://github.com/winjs/winjs/issues/1061#issuecomment-94602854

    Fabien

    Tuesday, April 21, 2015 7:08 AM

All replies

  • Please post problems with the WinJS preview on the Issues section of its github project: https://github.com/winjs/winjs/issues

    That said, you should be able to include the new files and change the references in your head tags to the new version. Beware though that there may be some other breaking changes you'll need to deal with.

    Tuesday, April 21, 2015 2:28 AM
    Moderator
  • Hello,

    I actually cross-posted on Github and got an answer there. For those with the same issue:

    https://github.com/winjs/winjs/issues/1061#issuecomment-94602854

    Fabien

    Tuesday, April 21, 2015 7:08 AM