Version
Google Translate

WPF Application Startup Template

This template is used to create a minimalist WPF application project.

How to Start With?

First, install the VCP CLI if you haven't installed before:

dotnet tool install -g Verto.Vcp.Studio.Cli

Then use the vcp new command in an empty folder to create a new solution (with the --old parameter at the end of the command):

vcp new Acme.MyWpfApp -t wpf --old

Note: Since this startup template is not provided by the new VCP Studio Templates yet, you need to pass the --old parameter at the end of the command to use the old CLI & templating system for this startup template.

Acme.MyWpfApp is the solution name, like YourCompany.YourProduct. You can use single level, two-levels or three-levels naming.

Solution Structure

After you use the above command to create a solution, you will have a solution like shown below:

basic-wpf-application-solution

  • HelloWorldService is a sample service that implements the ITransientDependency interface to register this service to the dependency injection system.
In this document