Visual C++ Nano Server application

This is a simple C++ template that helps you get started with writing applications that run on both Nano Server and other Windows installation options. The template is based on the Win32 console application with the following customizations:

  1. The template shows Intellisense for APIs that are supported on Nano Server
  2. Red error squiggles are shown for APIs that are not supported on Nano Server

FAQ

The API I want to use is not supported on Nano Server. What should I do?

APIs are not supported on Nano Server either because the underlying feature is also not supported or the API has been superseded by a newer API. In most cases, MSDN should offer a recommended substitution.

Does Nano Server support all platforms (x86/64/arm)?

No. Nano Server only supports x64. Be sure to set the debug target to x64 when building for Nano Server.

How do I deploy the project to a Nano Server machine?

At this time, automatic deployment of the binaries to a target node is not supported. Manually copy the exe and any dependents to the Nano Server machine.

How do I debug the project on Nano Server?

Configure Nano Server for remote debugging

  1. Copy the remote debugger binaries to the Nano Server machine
  2. Register and start the remote debugger

Configure your development environment

  1. Change the "Debugger to Launch" to Remote Windows Debugger
  2. Set Remote Server Name, Remote Command, Working Directory to point to the appropriate locations on the target
  3. Change Authentication type to "Remote with no authentication"
  4. Set the symbols path and start debugging