I'm working through the Head First C# (3rd ed) text with instructions specific to VS 2012 and I'm having trouble finding the equivalent in VS Community 2015.
The text says to begin a new project with Windows Store -> Blank App (XAML) but I don't see that as an option in my version of VS. The closest I could find was Windows Forms Application but that doesn't seem to be right since it didn't generate the MainPage.xaml among other things.
WPF is the closest you can get if you're not on Windows 8, the book says it too and it links to here where you can get the WPF version of the chapters.
You are right, a Windows Forms Application will be very different. While it may not be identical, the:
New Project -> Visual C# -> Windows -> Windows 8 -> Windows -> Blank App (Windows 8.1) is probably the closest.
I had the same problem. But I'm using 2019 version.
The answer seems to be to install the Universal Windows Platform development package from the Visual Studio installer (Modify button).
Then you can search for the correct project type by first selecting C# as the language and then typing 'blank app' and selecting the Blank App (Universal Windows) option.
Related
Using MS Visual Studio Community 2015 (Update 2), I have started a C# Universal application and I want to set its icon. The information here states where it should be and indeed where I thought it would be, but its not.
Am I missing an intrinsic part of setting my application up?
This is what I see where I would expect to see icon options: -
(This is my first venture in C#!)
The process (and link) you describe is for a Windows application, not an UWP application.
See this post for the instructions on setting up the icon of an UWP app.
I'm studying C# with the book, 'Head First C#' and the book requires me to make a new project using the Windows Store App Template. However, I cannot find the option when trying to make one. Could you help me out here? I want to know what is the problem and how to fix it.
I'm using Windows 8.1 Embedded Edition and Visual Studio Community. If there is anything you need to know more to fix this issue, please comment me.
When you click File > New > Project, Open up the 'Templates' menu on the left of the newly popped up dialog box, then find Visual C# > Windows > Windows 8 > Universal > Blank App (Universal Windows 8.1)
You might need to download the templates within Visual Studio first. A link should be in the same dialog, for 'Windows Metro Apps' or something similar
There's probably a really quick and easy solution to this but I was not able to find it in search. In a nutshell, created a windows 8.1 desktop project a while back in VS2013 on windows 10. Had to rebuild the win10 machine. Installed VS 2015 this time around. enable develop mode, crack open the same solution (project targets windows 8.1).....but my only debug options are my installed web browsers. It's as if VS has it confused as being a web app. Everything in the property pages looks correct. Any ideas?
Create a new desktop project in VS 2015, and then use a tool like winmerge or other diff tool to diff the project/solution files (your real one and the new one). That should show you what is incorrectly making VS treat it like a web project.
It was just me being a numb skull. Hadn't worked in VS in a while, had added a couple web projects to the solution right before walking away from it last, forgot to set windows 8 project as startup project. smh {-_-}
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.
I have Visual Studio 11 Beta (Express for Windows 8) installed in my Windows 8 VM. When I press New Project, I can see a lot of templates for Metro apps... but nothing else. I can't find templates for making any sort of desktop application. In particular I would like to be able to make a WPF project in C#. How should I go about this?
Yes, the "Express for Windows 8" version only allows you to create Metro apps. From the product page:
You can use the tools in Visual Studio 11 Express Beta for Windows 8 to create Metro style apps for Windows 8. The tools include a fully featured code editor, a powerful debugger, a focused profiler, and rich language support that you can use to build apps that written in HTML5, JavaScript, C++, C# or Visual Basic. Visual Studio 11 Express Beta for Windows 8 also includes a device simulator that you can use to test Metro style apps on multiple form factors.
If you want to build other types of apps, you need to download the beta of Visual Studio 11 Professional. (I expect there'll probably be a plain "Visual C# Express 11" which allows for WinForms and WPF apps when it's non-beta... there's going to be a Release Candidate soon, so that may come with a suitable Express version.)