Does Worlklight Studio really supports Windows 8.1? - visual-studio

I am working with Eclipse Kepler 4.3.2 and latest Worklight Studio downloaded and installed through Eclipse Marketplace (6.2.0.00-20140801-1709).
There are a lot of official IBM docs and web pages stating that WL 6.2 supports Win 8.1 hybrid store app development. At the same time, the IBM tutorials lead to complete the build cycle using MS Visual Studio 12 Express.
As long as I know, VS 12 targets Win 8 only, so VS 13 is needed to target Win 8.1 store apps.
So, after creating a new hybrid app, I add the Window 8 desktop and tablet environment (and the JSONStore optional feature also), then build that environment. At this point I use VS 2013 to open the .jsproj located in the windows8/native folder. VS 2013 notifies that the project must be retargeted from Windows 8 to Windows 8.1, then asks confirmation to make writable two read-only files: index.html and cordova.js. The reason for changing the content of these files during the migration from Win 8 to Win 8.1 is to change several references from "Microsoft.WINJS.1.0" to "Microsoft.WINJS.2.0".
At this point the Visual Studio project is fully functional, and also correctly runs on the Windows 8.1 tablet simulator. The noisy problem is that at every build of the windows8 environment Worklight regenerates index.html and cordova.js adding again the references to WinJS.1.0.
So, the question is: does the current Worlkight Studio version full supports Windows 8.1 development? Or, there is something wrong in my approach?

Worklight Studio is certified to work on Windows 8.1 using Visual Studio 2013.
From reading your question, and specificically this part:
At this point the Visual Studio project is fully functional, and also
correctly runs on the Windows 8.1 tablet simulator. The noisy problem
is that at every build of the windows8 environment Worklight
regenerates index.html and cordova.js adding again the references to
WinJS.1.0.
What I think is going on here is this:
You are creating your project in Worklight Studio and then open it in VS13 which then asks to migrate WinJS 1.0 to 2.0 and everything is working for you.
What you then do is re-build your project in Worklight Studio which brings back WinJS 1.0 as well as index.html
If you do changes in Visual Studio but do not bring them back into Eclipse, then your changes from VS will be lost. That is expected, because you are working with 2 IDEs, so you need to make sure that you copy back your code.
The template for a Windows8 app from Worklight Studio seems to be generating WinJS 1.0 regardless of targetting VS12 or VS13
So the only issue here is 2 above. It is worth investigating and it will be.
As for a "workaround", as long as you properly manage your code in 1, 2 should not prevent anything as you will still be given the option in VS to migrate to WinJS 2.0; it's an annoynace, though.

Related

VisualStudio XAML designer tell me i need build 19041 but it's already installed

I'm creating a windows desktop universal app (UWP) using Windows Template Studio on Visual Studio 2019 Community, on a Windows 10 Family Edition.
Windows and VS2019 were updated today (before creating this app).
After the project was created using WTS i have an error telling me (mine is in french so i'll try my best to translate) that : I need to upgrade to "windows 10, version 2004 (10.0.19041.0)" in order to display this content (aka : the XAML UI designer). However, the 19041 sdk is already installed. I can build and run the application just fine. It only a problem with the designer.
If i change the application property target to from 19041 to version 1903 (10.0 ; Build 18362) and reload the project, it works just fine.
I don't think i really need this 19041 (i hope so) but : what's happening and how to fix it ?
If you set the target version at 19041 (2004), this requires your development environment to be at least 19041. The SDK installed through Visual Studio contains some development tools corresponding to the platform, but UWP development usually requires some native resources (such as colors, control styles, etc.), and these resources will follow the system update.
So when you set the target version of the project to 19041, the target of some local resources referenced by the project is 19041. If your development environment is lower than this version, the designer will not be able to display.

Migrating driver project from VS2013 to VS2015 community

Long time reader first time poster here.
I'm a Linux developer trying to get started on Windows development in my new job. I knew it would not be trivial but the first thing I'm trying to do is complete and integrate a netvmini port driver (started by a co-op student) into one of their C++ apps. I am struggling to get the build environment going...
The project was started in Visual Studio 2013 with a Windows 7 target. When I now open it in Visual Studio 2015 and try to build the solution I get:
"Unknown or unsupported property value Win7 for TargetVersion"
for each project. This also happens if I set the configuration to Win8 (both release and debug). If I set it to Win 8.1 I get:
"An SDK corresponding to WDK version '8.1' was not found. Please install the SDK before building"
I have installed every WDK and SDK I can lay my hands on from Windows 7 to Windows 10 using both the web and the VS2015 installer. I have even installed Visual Studio 2013 again but I can't even seem to get the WDK to integrate with that.
The end goal here is to be able to build this (and hopefully debug remotely in kernel mode) from my Windows 10/VS2015 workstation for targets from Windows 7-10. Any advice or documentation that details how to integrate new build platforms into VS would be helpful (all the MS documentation just tells me what I can do if I install this or that, but not HOW to do it)
I also had the same problem after running the Project Upgrade tool.
I discovered when making new configurations that "Win7" and "Win8" TargetVersion are now "Windows7" and "Windows8".
The upgrade tool does not make that change for you but I was able to manually edit my upgraded project with those changes and got it to build for all targets.
I discovered that the installer doesn't install the windows 10 SDK by default. So all the installing of other SDK's was useless. I Also found out that by installing the Win 10 SDK through the VS 2015 installer it integrates and allows me to build for targets back to windows 7 in VS 2015.

Can't create a UWP app

I recently, upgraded to Windows 10 and got Visual Studio 2015 Community hoping to build UWP apps and ASP.Net 5 apps. At first, I installed everything, but ended up skipping / canceling the Windows 8.1 / 10 mobile emulators (my PC can't even run them). After everything was installed, I went to create a new UWP app (C#), and got this error:
Next, I try the same thing, but with JavaScript. It works perfectly! on the same UAP 10.0.0.0 that is supposedly missing. The link it provides is completely useless (it sends me to http:/microsoft.com/en-us) -_-. Oddly, this only happens when I try to use C# or VB.Net, JavaScript UWP apps seem to work fine. What is going on here? Where can I find the real link to the SDK I need?
UPDATE
JavaScript UWP apps will be create just fine, but when I attempt to build, I get:
Error "10.0.0.0" is not a supported value forTargetPlatformVersion.
Please change it on the Project Property page. Test
C:\Program Files (x86) \MSBuild\Microsoft\VisualStudio\v14.\JavaScript\Microsoft.VisualStudio.JavaScript.UAP.targets
This is the download link for the standalone SDK, maybe reinstalling the sdk will fix the problem.
https://dev.windows.com/en-us/downloads/windows-10-sdk
Normally you don't always have to reinstall visual studio when something goes wrong because it takes a lot of time to reinstall again. From your question you skipped/cancel that feature, the first thing to do is go to the control panel and double click on visual studio under programs to Modify the software and enable those features.
In the case, visual studio was working properly before but due to some updates it stopped, go to control panel right click the visual studio version you have under programs to repair.
If the above doesn't work try to reinstall it again. I hope this helps.

How to debug JS on Windows Phone 8.1 Cordova Project

I have been trying to debug a Windows Phone 8.1 app using Cordova on Visual Studio.
I would like to debug the Javascript in the app - set break points and such in Visual Studio.
I have tried Weinre, and it gives me DOM elements, and read logs from console, but I would like to know if there is any way I can set breakpoints in the Javascript and see if a code path is executed and look at the local variables and step-in.
I have tried to search online, but couldn't really find a good way to do this - actually I couldn't find any way that was working.
If you guys were able to find a way to debug Javascripts effectively in Windows Phone 8.1 apps, please let me know :).
Debugging Apache Cordova apps on Windows Phone targets is not yet supported in the current release but you can open up the native Windows Phone project (CordovaApp.Phone.jsproj) that's under the bld\Debug\platforms\windows folder of your Cordova project and you'll have full JS debugging support from within Visual Studio for that one.
Since this is not yet answered: You can debug Windows Phone 8.1 apps perfectly (=breakpoints, watches, ...) using Visual Studio 2015 (e.g. the free community version).

Is it possible to create a Windows 8 Store App from Visual Studio 2013?

So, I have a Windows 8.1 machine with Visual Studio 2013 installed. Whenever I go to create a new Windows Store project I do not see any options to create a new Windows 8 Store app, rather than Windows 8.1 Store App. However, I have no problem opening existing Windows 8 Store App Projects.
Is it possible to create a Windows 8 Store App project from Visual Studio 2013 when running on Windows 8.1?
It's easy - create a new 8.1 project and remove the following lines from the .csproj file:
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
Reopen the file and voila - it's a Windows 8 project!
Additionally, you might want to change the following as well:
In MainPage.xaml:
- <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
+ <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
In Package.appxmanifest:
- <m2:VisualElements
+ <VisualElements
- Square150x150Logo="Assets\Logo.png"
- Square30x30Logo="Assets\SmallLogo.png"
+ Logo="Assets\Logo.png"
+ SmallLogo="Assets\SmallLogo.png"
- <m2:SplashScreen Image="Assets\SplashScreen.png" />
+ <SplashScreen Image="Assets\SplashScreen.png" />
- </m2:VisualElements>
+ </VisualElements>
If this doesn't work - it might mean that the project files have further changed in current versions of VS and you might need to install VS 2012 (Express should do) and create a project in that. You can then work on it in the new version of VS.
Is it possible to create a Windows 8 Store App project from Visual Studio 2013 when running on Windows 8.1?
No. You need to use Visual Studio 2012 to create the Windows 8 project, then open it in VS 2013. This can be done in Windows 8.1, but requires installing VS 2012 side by side with VS 2013.
I did the following:
It's easy - create a new 8.1 project and remove the following lines from the .csproj file:
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
Reopen the file and voila - it's a Windows 8 project!
But it's not Voila. Reloading the project after this edit puts up a dialog saying VS2013 needs an update, and directs you to the MS Download site (assumedly to download the Phone 8.0 SDK.
I made completely sure I had the Phone 8.0 SDK installed with VS2013 installer. I even went so far as to remove (with 2013 installer) and re-add. Still this behavior persists. I'm now downloading the 8.0 SDK, which is installing 2012 Express of course. We'll see if that helps, but it seems like this shouldn't be necessary. What am I missing?
It didn't resolve the behavior. Now, I load up the solution and it won't load the project. The project has the notation (update required). When you select download update from the context menu, it just takes you to MS Downloads--no idea what needs to be downloaded.
Can someone please explain the highly voted answer above? I'm running Win 8.1 Pro with VS2013 Premium (Phone 8 SDK installed)...and I now have the VS2012 Express install that came with the regular Phone 8.0 SDK download. Thanks.
As Reed said, you cannot create Windows 8 App store project in Visual Studio 2013 and you need to have VS2012 installed too. But as a trick you can make a copy from an existing Win 8 app project and modify it. It is not very neat solution but works if you do not want to install VS2012 as well.
You need to use Visual Studio 2012 to create the Windows 8 projects.
Based on my own experience if you don't have do developer a Windows 8 version, just focus on 8.1. For me only 3% of the sales are generated by the Windows 8 version. I only backported my 8.1 app for experience sake.
You cannot developer Windows 8.0 application using VS 2013. You have to install VS 2012 for Windows 8.0.

Resources