Skip to content
| Marketplace
Sign in
Visual Studio>Templates>Console App (Universal) Project Templates

Console App (Universal) Project Templates

Andrew Whitechapel MSFT

|
105,346 installs
| (2) | Free
Project templates for a Console App (Universal Windows).

A set of project templates for C++/CX, C++/WinRT and C#, for building Universal Console Apps.

The following notes apply to all releases:

  • The C# template will only work with Visual Studio 2017 Version 15.7 or later. Note that with the C# template, you might get the error message "Output type 'Console Application' is not supported by one or more of the project's targets". You can ignore this message, as it does not prevent the project from building correctly.

  • The C# console apps are only supported on Windows 10 from version 10.0.17134.0 of the platform. You should therefore specify a version >= 10.0.17134.0 for the TargetPlatformMinVersion when you create your project.

  • For the C++/WinRT flavor, note that more strict language conformance means that if you target 10.0.17134.0 of the platform you will need to remove the /permissive- flag from the C++ compiler options. Alternatively, you can target 10.0.17663.0 or later. This is described more fully here: https://kennykerr.ca/2018/08/15/compilers-and-conformance/.


Version 1.9 adds support for Visual Studio 2019, which is in preview as of this release.


Version 1.8 removes the message about installing a version of Microsoft.NETCore.UniversalWindowsPlatform, and the related delay in generating the project.


Version 1.7 reverts the fix in 1.6 - because the correct fix is in Visual Studio itself. That fix is available from Visual Studio 2017 Version 15.9 Preview 3. The updated project template for C# sets the .csproj back to the v1.5 state, with these 2 lines: Exe true

...instead of the one line: AppContainerExe


Version 1.6 corrects a bug in the C# template where the final package would fail the Windows App Cert Kit (WACK) tests. If you want to retro-fit the fix to an existing project, you can edit your .csproj file manually, and replace these 2 lines: Exe true

...with this one line instead: AppContainerExe

New projects created with the v1.6 template will already have this fix. This only applies to C# not to C++.


Version 1.5 adds support for C#.


Version 1.4 corrects a couple of bugs in the previous version, as detailed below. These bugs do not prevent the app from building and executing, but they do prevent correct packaging and store publication. If you have already created projects using the old templates, you can apply the fixes by making the same changes in the .vcxproj and package.appxmanifest files manually:

For both C++/CX and C++/WinRT: In the .vcxproj file, removed the .NET Native declarations – both the target framework declarations at the top of the file: .NETCore v5.0

...and also multiple instances of the following: v141 true

In the package.appxmanifest file, added iot2 to the ignorable XML namespaces: IgnorableNamespaces="uap mp uap5 iot2 desktop4">


Version 1.1 is the first release, and includes project templates for C++/CX and C++/WinRT.


  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft