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

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.

Related

Taco roadmap - Update 11 with Cordova 7 support

Are there any plans by Microsoft to release a Taco Update 11 with native Cordova 7, Node 4.x support?
Is Taco still an active project since the last update was two years ago?
I think it is safe to assume Microsoft has abandoned TACO platform, putting their focus in this space to Xamarin.
As you pointed out, the last update to the tool was 2 years ago, Jan 2016.
The last entry in The Visual Studio Blog ("The official source of product insight from the Visual Studio Engineering Team") was 15 months ago, Oct 2016.
According to his LinkedIn profile, Jordan Matthiesen, who was Program Manager for VS Taco, is now Program Manager for Visual Studio For Mac.
For myself, a Visual Studio user for 27 years, I have switched to using Cordova CLI and Visual Studio Code on Mac.
After a few try i have found a way:
Follow this steps:
install nodejs 4.8.7 on your machine
in visual studio go under tools>options>"Tools for apache cordova"
and deflag chekbox "use a sandboxed version of NodeJS"
Edit taco.json file of your project and set "cordova-cli": "7.1.0"
Open a new console and install cordova on your machine (npm install
-g cordova#7.1.0)
For android build:
open prompt, digit android and press return
dovnload API 26 SDK from tool
download gradle 2.x and put bin folder in your system path
install jdk 1.8.x and set java_home system var to it
reboot
For those that still use TACO for visual studio, I found the following instructions to update Visual Studio Tools for Apache Cordova for VS 2017 to use Cordova #7.1.0 and Cordova-Android #6.3.0
https://github.com/brunolau/vs-taco-update
It tells you how to find the old toolset (6.3.1) and how to replace it with a new version, and also how to update android to API level 26.
It also shows you how to create your own custom toolset, which I haven't tried, but sounds very useful.

VS2015 Unable to Create New Windows 10 UWP Project or Build Existing Windows UWP Samples

When I try to create a new Windows 10 UWP, or open or build existing samples or projects, I get the following error:
The imported project "C:\Program Files
(x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.CSharp.targets"
was not found. Confirm that the path in the declaration is correct,
and that the file exists on disk
I am running VS2015 Enterprise on Windows 10 Pro. Windows 10 SDK (10240) and Emulators installed. Have re-installed VS2015 several times without luck. There is no v14.0\8.2 folder on my machine. Tried to copy the v14.0\8.1 folder to create v14.0\8.2 folder but this only allows you to load the project or create new ones, but build fails. This is driving me crazy.
Note: An earlier install of same VS2015 ISO and SDK on Windows 10 Enterprise Evaluation was running successfully until I had to re-format a few days ago when I upgraded my Windows 7 to Windows 10 Pro. I have now also tried to install a clean copy of Windows 10 Enterprise, re-install VS2015 with SDK and emulators, and yet no luck. Same error keeps repeating.
Any suggestions on where/how to create the v14.0\8.2 folder would be appreciated.
The solution is to navigate to Control Panel | Uninstall a program and to select Visual Studio 2015. This allows you modify you existing Visual Studio 2015 installation. When you install, it is recommended to select the "install all" features which added the templates.
This blog should be helpful for you.
Besides, what's the exact version of VS2015 and Win10 you installed?

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.

Does Worlklight Studio really supports Windows 8.1?

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.

windows 8 - How to run XNA?

I have a windows 8 pc, I recently installed windows phone 7.1 sdk but it continously gave me the error that it couldn't install XNA 4.0 Refresh and MS VS 2010 Extensions for XNA. When I make a project of windows phone and run it it gives me this error:
Error 1 The target "GetCopyToOutputDirectoryContentProjectItems" does not exist in the project. PhoneApp2
Any suggestions/solutions would be greatly appreciated!
Thanks :)
If you are running visual studio 2010 on Windows 8, then following the steps here should work:
http://www.demonixis.net/blog/installer-xna-4-0-sous-windows-8/
If possible you might want to uninstall what you have for xna and the windows phone sdk so far. (I'm not sure if it would work properly without doing so.)
Basically, it has three steps:
1)Go to xbox.com/en-US/LIVE/PC/DownloadClient
Start by pressing the download button on this page. I am not sure what the significance of downloading that client is, however, it did the trick when I installed it.
2)Then reinstalling xna on this page:
microsoft.com/en-us/download/details.aspx?id=23714
3)And this last step is to download Windows SDK 7.1 here:
microsoft.com/en-us/download/details.aspx?id=27570

Resources