Перейти к файлу
Codrin-Victor Poienaru 5a62ce8617
Merge pull request #290 from dotnet/dev/copoiena/rel-17.2-to-17.2.1
Bumped Microsoft.NET.Test.Sdk version to 17.2.1
2023-03-29 16:25:19 +02:00
.github Update AzureDevOps.yml 2022-02-25 10:29:30 +01:00
Documentation/MigrationPlan Updating the timeline for move to Arcade. 2019-01-21 15:33:21 +05:30
Templates Bumped Microsoft.NET.Test.Sdk version to 17.2.1 2023-03-27 15:50:23 +02:00
WizardExtensions Update to 17.1.0 (#229) 2022-04-06 12:59:41 +00:00
eng Update public pool names 2023-03-28 17:12:26 +02:00
template_feed Reverted net7.0 template upgrade 2023-03-29 14:33:20 +02:00
test Updated tests 2023-03-28 16:59:49 +02:00
.editorconfig Initial move of test content to a new repository 2018-06-14 11:08:51 -07:00
.gitattributes Initial move of test content to a new repository 2018-06-14 11:08:51 -07:00
.gitignore Update to 17.1.0 (#229) 2022-04-06 12:59:41 +00:00
CODE-OF-CONDUCT.md Link Code of Conduct 2020-04-02 14:28:55 -07:00
Directory.Build.props Set copyright and package license 2019-02-20 18:09:20 -08:00
Directory.Build.targets Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
LICENSE.txt Enable source-build with arcade 2021-02-10 11:23:57 -05:00
NuGet.config enable <UsingToolTemplateLocalizer> 2022-01-26 15:30:05 +01:00
README.md Update README.md (#230) 2022-04-06 14:49:33 +02:00
azure-pipelines.yml Fix public pool machine name (#275) 2023-03-28 17:12:54 +02:00
build.cmd Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
build.sh Enable source-build with arcade 2021-02-10 11:23:57 -05:00
global.json Added support for net7.0 runtime 2023-03-29 11:28:15 +02:00
test.cmd Change AcceptanceTests naming to allow arcade detect that this is a test project by naming convention. 2020-08-06 09:49:28 +02:00

README.md

Overview

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.

Usage

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.

Contributing

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.

Acquire

  • Fork this repository.
  • Clone the forked repository to your local machine.
    • main is our default branch. It should be checked out for you automatically.
    • Create topic branch to hold your change e.g. git checkout -b "update-mstest".
    • Make your changes, commit, and make PR that targets our main branch.

Build & Run

  • Open up a command prompt and navigation to the root of your source code.
  • Run the build script appropriate your environment.
  • When running the build script creates the nuget packages for net core test templates and vsix for classic test templates.
  • The build produces the template NuGet packages currently has a dependency on nuget.exe.
  • Because of this, those that wish to install using the template NuGet packages will need to be on Windows in order to produce the appropriate assets.

Test

  • Users can test the dotnet core templates that reside in the templates_feed folder by running the test script test.cmd
  • Note: Please make sure you have run the build script before you run the test script.