Перейти к файлу
Medeni Baykal ee2850229e
Merge pull request #125 from dotnet/feed-update-rel/16.8
[rel/16.8] NuGet Feed Update
2021-02-09 19:43:56 +01:00
Documentation/MigrationPlan Updating the timeline for move to Arcade. 2019-01-21 15:33:21 +05:30
Templates Updated test templates 2020-11-11 14:14:28 +01:00
WizardExtensions Update nugets 2020-04-01 14:57:59 +02:00
eng Update dependencies from https://github.com/dotnet/arcade build 20200321.1 (#84) 2020-03-27 15:16:45 +00:00
template_feed Updated test templates 2020-11-11 14:14:28 +01:00
test Change naming of acceptance tests 2020-08-06 13:54:32 +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 Change naming of acceptance tests 2020-08-06 13:54:32 +02: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 Creating LICENSE 2019-04-01 13:34:19 +05:30
NuGet.config Fixup feeds 2021-02-03 10:50:33 -08:00
README.md Adding the readme info for testing the templates. 2019-02-25 23:42:24 +05:30
azure-pipelines.yml Merged PR 7612: Use pipeline publishing instead of BAR publishing 2020-04-27 12:20:20 +00:00
build.cmd Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
build.sh Move build for Net Core templates to Arcade (#37) 2019-01-09 01:19:15 +05:30
global.json Update dependencies from https://github.com/dotnet/arcade build 20200321.1 (#84) 2020-03-27 15:16:45 +00:00
test.cmd Adding configure and restore script to install all the relevant runtimes. 2019-02-20 16:45:56 +05:30

README.md

Overview

This repository is the home for the .NET Core Test Templates. It also contains Classic .Net Framework and Universal Test templates for C# and VB.

Creating new projects

You can create new projects with dotnet new, this section will briefly describe that. For more info take a look at Announcing .NET Core Tools Updates in VS 2017 RC.

Let's create a new test project named "NewMSTestProject" in the "src/MyTest" directory.

$ dotnet new mstest -n NewMSTestProject 
The template "Unit Test Project" was created successfully.

The project was successfully created on disk as expected in src/MyTest. From here, we can run normal dotnet commands like dotnet restore and dotnet build.

We have a pretty good help system built in, including template specific help (for example dotnet new mstest --help). If you're not sure the syntax please try that, if you have any difficulties please file a new issue.

How to build, run & debug the latest

If you're authoring templates, or interested in contributing to this repo, then you're likely interested in how to use the latest version of this experience. The steps required are outlined below.

Aquire

  • Fork this repository.
  • Clone the forked repository to your local machine.
    • master is a build branch and does not accept contributions directly.
    • The default branch is the active development branch that accepts contributions and flows to master to produce packages.

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.