This repository contains test templates that are consumed by dotnet new
. The templates are C#, F# and VB languages; for MSTest, NUnit and XUnit testing frameworks.
It also contains classic .NET Framework and Universal Test templates for C# and VB.
You can create new test project with dotnet new mstest
, dotnet new nunit
, or dotnet new xunit
. Full documentation for dotnet new
is here. And here is documentation for each template: mstest or xunit, nunit.
There are 2 main areas in this repository:
template_feed
contains the .NET templates that are inserted into dotnet/installer.Templates
, WizardExtensions
contain "legacy" templates for .NET Framework test projects in VisualStudio.template_feed
contains all the templates from the oldest version of .NET to the newest. We build all of these templates, but might not ship all of them. If you are doing bigger changes please make them in bulk to all the templates.
main
is our default branch. It should be checked out for you automatically.git checkout -b "update-mstest"
.main
branch.install
using the template NuGet packages will need to be on Windows in order to produce the appropriate assets.