Template <name> is not valid for the selected project.

This error generally occurs when an unknown template name has been entered for the New File command, File.NewFile, or for the Add New Solution Item command, File.AddNewSolutionItem.

To correct this error

  1. Re-enter the command and its arguments.

    —or—

  2. Check the "New File Command" or "Add New Solution Item Command" topics for the correct syntax.

See Also

Reference

New File Command

Add New Item Command

Visual Studio Commands and Switches

Visual Studio Commands with Arguments