locked
Upgrading To Visual Studio 2013 - and keeping references for winjs 1.0 RRS feed

  • Question

  • I've been trying for the last 2 hours to get our project to recongize the references. When I build my project it says it cant find  these references. I've added them - readded them like 20 times. This software is pretty buggy to throw at developers and have us attempt to upgrade our apps. Does anyone have any ideas?

        <!-- WinJS references -->
        <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
        <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
        <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    Saturday, October 19, 2013 10:35 PM

Answers

  • Did you upgrade your app to target Windows 8.1 or is it still a Windows 8 app? Windows 8.1 apps need to use WinJS 2.0. WinJS 1.0 is only for Windows 8 apps.

    Visual Studio 2013 Express can create only Windows 8.1 apps. Visual Studio 2013 Pro can modify existing Windows 8.0 apps without upgrading them.

    --Rob

    Sunday, October 20, 2013 3:26 AM
    Moderator

All replies

  • Hi imaginedesign,

    I'm not quite understand your question, you mean you have a WinJS project created by VS 2012 and now opened with VS 2013, the reference issue happens? Or you simply create a new project with VS 2013 and want to use WinJS 1.0 library?

    In VS 2013 the default reference is WinJS 2.0, therefore I think you could modify the 1.0 to 2.0, and in your app manifest, update the OSMinVersion and OSMaxVersionTested values to 6.3.0, Take a look at this documentation for more information: http://msdn.microsoft.com/en-us/library/windows/apps/bg182879.aspx 

    And if you create a new VS 2013 WinJS project and wanna use WinJS 1.0, I don't think its possible, since WinJS 2.0 is the upgrade version of WinJS 1.0, it contains more useful features, to use 2.0 version would be better than 1.0 version. 

    Best Regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Sunday, October 20, 2013 2:33 AM
    Moderator
  • Did you upgrade your app to target Windows 8.1 or is it still a Windows 8 app? Windows 8.1 apps need to use WinJS 2.0. WinJS 1.0 is only for Windows 8 apps.

    Visual Studio 2013 Express can create only Windows 8.1 apps. Visual Studio 2013 Pro can modify existing Windows 8.0 apps without upgrading them.

    --Rob

    Sunday, October 20, 2013 3:26 AM
    Moderator