Skip to content

Commit 708de22

Browse files
committed
Merge branch 'master' into linq-to-xml
2 parents 2d9b4e3 + 3c05332 commit 708de22

File tree

453 files changed

+2598
-5512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+2598
-5512
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@
446446
"source_path": "docs/core/tutorials/cli-console-app-tutorial-advanced.md",
447447
"redirect_url": "/dotnet/core/tutorials"
448448
},
449+
{
450+
"source_path": "docs/core/tutorials/consuming-library-with-visual-studio.md",
451+
"redirect_url": "/nuget/quickstart/install-and-use-a-package-in-visual-studio"
452+
},
449453
{
450454
"source_path": "docs/core/tutorials/create-custom-template.md",
451455
"redirect_url": "/dotnet/core/tutorials/cli-templates-create-item-template"
@@ -4349,7 +4353,7 @@
43494353
},
43504354
{
43514355
"source_path": "docs/visual-basic/sample-applications.md",
4352-
"redirect_url": "https://github.com/dotnet/samples/tree/master/snippets/visualbasic"
4356+
"redirect_url": "https://docs.microsoft.com/samples/browse/?languages=vb"
43534357
},
43544358
{
43554359
"source_path": "docs/visual-basic/developing-apps/customizing-extending-my/customizing-projects-and-extending-my.md",

docs/architecture/cloud-native/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This book is provided "as-is" and expresses the author's views and opinions. The
2929

3030
Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred.
3131

32-
Microsoft and the trademarks listed at https://www.microsoft.com on the "Trademarks" webpage are trademarks of the Microsoft group of companies.
32+
Microsoft and the trademarks listed at [https://www.microsoft.com](https://www.microsoft.com) on the "Trademarks" webpage are trademarks of the Microsoft group of companies.
3333

3434
Mac and macOS are trademarks of Apple Inc.
3535

docs/core/toc.yml

Lines changed: 84 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -81,59 +81,90 @@
8181
href: compatibility/
8282
- name: Tutorials
8383
items:
84-
- name: Overview
85-
href: tutorials/index.md
86-
- name: Get started with .NET Core using Visual Studio
87-
href: tutorials/with-visual-studio.md
88-
- name: Get started with .NET Core using Visual Studio Code
89-
href: tutorials/with-visual-studio-code.md
90-
- name: Get started with .NET Core using the CLI
91-
href: tutorials/cli-create-console-app.md
92-
- name: Get started with .NET Core using Visual Studio Code on macOS
93-
href: tutorials/using-on-macos.md
94-
- name: Get started with .NET Core using Visual Studio for Mac
95-
href: tutorials/using-on-mac-vs.md
96-
- name: Debug an application using Visual Studio
97-
href: tutorials/debugging-with-visual-studio.md
98-
- name: Publish an application with Visual Studio
99-
href: tutorials/publishing-with-visual-studio.md
100-
- name: Create a .NET Standard library in Visual Studio
101-
href: tutorials/library-with-visual-studio.md
102-
- name: Test a .NET Standard library in Visual Studio
103-
href: tutorials/testing-library-with-visual-studio.md
104-
- name: Consume a .NET Standard library in Visual Studio
105-
href: tutorials/consuming-library-with-visual-studio.md
106-
- name: Build a complete .NET Core solution on macOS
107-
href: tutorials/using-on-mac-vs-full-solution.md
108-
- name: Organize and test projects with the .NET Core CLI
109-
href: tutorials/testing-with-cli.md
110-
- name: Develop libraries with cross-platform tools
111-
href: tutorials/libraries.md
112-
- name: Create a .NET Core app with plugins
113-
href: tutorials/creating-app-with-plugin-support.md
114-
- name: Develop ASP.NET Core apps
115-
href: tutorials/aspnet-core.md
116-
- name: Host .NET Core from native code
117-
href: tutorials/netcore-hosting.md
118-
- name: Create templates for the CLI
84+
- name: Use Visual Studio
85+
items:
86+
- name: Create a console app
87+
href: tutorials/with-visual-studio.md
88+
displayName: tutorials, visual studio, vs
89+
- name: Debug an app
90+
href: tutorials/debugging-with-visual-studio.md
91+
displayName: tutorials, visual studio, vs
92+
- name: Publish an app
93+
href: tutorials/publishing-with-visual-studio.md
94+
displayName: tutorials, visual studio, vs
95+
- name: Create a library
96+
href: tutorials/library-with-visual-studio.md
97+
displayName: tutorials, visual studio, vs
98+
- name: Unit test a library
99+
href: tutorials/testing-library-with-visual-studio.md
100+
displayName: tutorials, visual studio, vs
101+
- name: Install and use a package
102+
href: /nuget/quickstart/install-and-use-a-package-in-visual-studio
103+
displayName: tutorials, visual studio, vs
104+
- name: Create and publish a package
105+
href: /nuget/quickstart/create-and-publish-a-package-using-visual-studio
106+
displayName: tutorials, visual studio, vs
107+
- name: Use Visual Studio Code
108+
items:
109+
- name: Create a console app
110+
href: tutorials/with-visual-studio-code.md
111+
displayName: tutorials, visual studio code, vs code, cli
112+
- name: Create a console app and publish it
113+
href: tutorials/cli-create-console-app.md
114+
displayName: tutorials, cli
115+
- name: Create a library and unit test it - macOS
116+
href: tutorials/using-on-macos.md
117+
displayName: tutorials, visual studio code, vs code, cli
118+
- name: Install and use a package
119+
href: /nuget/quickstart/install-and-use-a-package-using-the-dotnet-cli
120+
displayName: tutorials, cli
121+
- name: Create and publish a package
122+
href: /nuget/quickstart/create-and-publish-a-package-using-the-dotnet-cli
123+
displayName: tutorials
124+
- name: Use Visual Studio for Mac
119125
items:
120-
- name: 1 - Create an item template
121-
href: tutorials/cli-templates-create-item-template.md
122-
- name: 2 - Create a project template
123-
href: tutorials/cli-templates-create-project-template.md
124-
- name: 3 - Create a template pack
125-
href: tutorials/cli-templates-create-template-pack.md
126-
- name: Create tools for the CLI
126+
- name: Create a console app
127+
href: tutorials/using-on-mac-vs.md
128+
displayName: tutorials
129+
- name: Create a library and unit test it
130+
href: tutorials/using-on-mac-vs-full-solution.md
131+
displayName: tutorials
132+
- name: Install and use a package
133+
href: /nuget/quickstart/install-and-use-a-package-in-visual-studio-mac
134+
displayName: tutorials
135+
- name: Advanced topics
127136
items:
128-
- name: 1 - Create a tool
129-
displayName: tools, tutorials
130-
href: tools/global-tools-how-to-create.md
131-
- name: 2 - Use a global tool
132-
displayName: tools, tutorials
133-
href: tools/global-tools-how-to-use.md
134-
- name: 3 - Use a local tool
135-
href: tools/local-tools-how-to-use.md
136-
displayName: tools, tutorials
137+
- name: Unit test an app with xUnit
138+
href: tutorials/testing-with-cli.md
139+
displayName: tutorials, cli
140+
- name: How to create libraries
141+
href: tutorials/libraries.md
142+
- name: Create templates for the CLI
143+
items:
144+
- name: 1 - Create an item template
145+
href: tutorials/cli-templates-create-item-template.md
146+
displayName: tutorials, cli
147+
- name: 2 - Create a project template
148+
href: tutorials/cli-templates-create-project-template.md
149+
displayName: tutorials, cli
150+
- name: 3 - Create a template pack
151+
href: tutorials/cli-templates-create-template-pack.md
152+
displayName: tutorials, cli
153+
- name: Create tools for the CLI
154+
items:
155+
- name: 1 - Create a tool
156+
displayName: tools, tutorials, cli
157+
href: tools/global-tools-how-to-create.md
158+
- name: 2 - Use a global tool
159+
displayName: tools, tutorials, cli
160+
href: tools/global-tools-how-to-use.md
161+
- name: 3 - Use a local tool
162+
href: tools/local-tools-how-to-use.md
163+
displayName: tools, tutorials, cli
164+
- name: Create an app with plugins
165+
href: tutorials/creating-app-with-plugin-support.md
166+
- name: More tutorials
167+
href: tutorials/index.md
137168
- name: Project SDKs
138169
items:
139170
- name: Overview
@@ -441,6 +472,8 @@
441472
href: distribution-packaging.md
442473
- name: Expose .NET Core components to COM
443474
href: native-interop/expose-components-to-com.md
475+
- name: Host .NET Core from native code
476+
href: tutorials/netcore-hosting.md
444477
- name: Packages, metapackages, and frameworks
445478
href: packages.md
446479
- name: Continuous integration

docs/core/tools/custom-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The *mytemplate* folder is an installable template pack. Once the pack is instal
9191

9292
## Packing a template into a NuGet package (nupkg file)
9393

94-
A custom template is packed with the [dotnet pack](dotnet-pack.md) command and a *.csproj* file. Alternatively, [NuGet](https://docs.microsoft.com/nuget/tools/nuget-exe-cli-reference) can be used with the [nuget pack](https://docs.microsoft.com/nuget/tools/cli-ref-pack) command along with a *.nuspec* file. However, NuGet requires the .NET Framework on Windows and [Mono](https://www.mono-project.com/) on Linux and MacOS.
94+
A custom template is packed with the [dotnet pack](dotnet-pack.md) command and a *.csproj* file. Alternatively, [NuGet](https://docs.microsoft.com/nuget/tools/nuget-exe-cli-reference) can be used with the [nuget pack](https://docs.microsoft.com/nuget/tools/cli-ref-pack) command along with a *.nuspec* file. However, NuGet requires the .NET Framework on Windows and [Mono](https://www.mono-project.com/) on Linux and macOS.
9595

9696
The *.csproj* file is slightly different from a traditional code-project *.csproj* file. Note the following settings:
9797

docs/core/tools/dotnet-add-package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ The *ToDo.csproj* file now contains a [`<PackageReference>`](/nuget/consume-pack
8585

8686
- **`-s|--source <SOURCE>`**
8787

88-
The NuGet package source to use during the restore operation.
88+
The URI of the NuGet package source to use during the restore operation.
8989

9090
- **`-v|--version <VERSION>`**
9191

docs/core/tools/dotnet-build.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ ms.date: 02/14/2020
1717
dotnet build [<PROJECT>|<SOLUTION>] [-c|--configuration <CONFIGURATION>]
1818
[-f|--framework <FRAMEWORK>] [--force] [--interactive] [--no-dependencies]
1919
[--no-incremental] [--no-restore] [--nologo] [-o|--output <OUTPUT_DIRECTORY>]
20-
[-r|--runtime <RUNTIME_IDENTIFIER>] [-v|--verbosity <LEVEL>]
21-
[--version-suffix <VERSION_SUFFIX>]
20+
[-r|--runtime <RUNTIME_IDENTIFIER>] [-s|--source <SOURCE>]
21+
[-v|--verbosity <LEVEL>] [--version-suffix <VERSION_SUFFIX>]
2222
2323
dotnet build -h|--help
2424
```
@@ -115,6 +115,10 @@ The project or solution file to build. If a project or solution file isn't speci
115115

116116
Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the [RID catalog](../rid-catalog.md).
117117

118+
- **`-s|--source <SOURCE>`**
119+
120+
The URI of the NuGet package source to use during the restore operation.
121+
118122
- **`-v|--verbosity <LEVEL>`**
119123

120124
Sets the MSBuild verbosity level. Allowed values are `q[uiet]`, `m[inimal]`, `n[ormal]`, `d[etailed]`, and `diag[nostic]`. The default is `minimal`.

docs/core/tools/dotnet-install-script.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dotnet-install.ps1 [-Architecture <ARCHITECTURE>] [-AzureFeed]
2525
dotnet-install.ps1 -Help
2626
```
2727

28-
Linux/macOs:
28+
Linux/macOS:
2929

3030
```bash
3131
dotnet-install.sh [--architecture <ARCHITECTURE>] [--azure-feed]
@@ -94,7 +94,7 @@ The install scripts do not update the registry on Windows. They just download th
9494

9595
- **`-InstallDir|--install-dir <DIRECTORY>`**
9696

97-
Specifies the installation path. The directory is created if it doesn't exist. The default value is *%LocalAppData%\Microsoft\dotnet*. Binaries are placed directly in this directory.
97+
Specifies the installation path. The directory is created if it doesn't exist. The default value is *%LocalAppData%\Microsoft\dotnet* on Windows and */usr/share/dotnet* on Linux/macOS. Binaries are placed directly in this directory.
9898

9999
- **`-JSonFile|--jsonfile <JSONFILE>`**
100100

docs/core/tools/dotnet-list-reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ ms.date: 02/14/2020
1414
## Synopsis
1515

1616
```dotnetcli
17-
dotnet list [<PROJECT>|<SOLUTION>] reference
17+
dotnet list [<PROJECT>] reference
1818
1919
dotnet list -h|--help
2020
```
2121

2222
## Description
2323

24-
The `dotnet list reference` command provides a convenient option to list project references for a given project or solution.
24+
The `dotnet list reference` command provides a convenient option to list project references for a given project.
2525

2626
## Arguments
2727

28-
* **`PROJECT | SOLUTION`**
28+
* **`PROJECT`**
2929

30-
Specifies the project or solution file to use for listing references. If not specified, the command searches the current directory for a project file.
30+
The project file to operate on. If a file is not specified, the command will search the current directory for one.
3131

3232
## Options
3333

docs/core/tools/dotnet-restore.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dotnet restore [<ROOT>] [--configfile <FILE>] [--disable-parallel]
1919
[--interactive] [--lock-file-path <LOCK_FILE_PATH>] [--locked-mode]
2020
[--no-cache] [--no-dependencies] [--packages <PACKAGES_DIRECTORY>]
2121
[-r|--runtime <RUNTIME_IDENTIFIER>] [-s|--source <SOURCE>]
22-
[--use-lockfile] [-v|--verbosity <LEVEL>]
22+
[--use-lock-file] [-v|--verbosity <LEVEL>]
2323
2424
dotnet restore -h|--help
2525
```
@@ -137,9 +137,9 @@ There are three specific settings that `dotnet restore` ignores:
137137

138138
- **`-s|--source <SOURCE>`**
139139

140-
Specifies a NuGet package source to use during the restore operation. This setting overrides all of the sources specified in the *nuget.config* files. Multiple sources can be provided by specifying this option multiple times.
140+
Specifies the URI of the NuGet package source to use during the restore operation. This setting overrides all of the sources specified in the *nuget.config* files. Multiple sources can be provided by specifying this option multiple times.
141141

142-
- **`--use-lockfile`**
142+
- **`--use-lock-file`**
143143

144144
Enables project lock file to be generated and used with restore.
145145

docs/core/tools/dotnet-test.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Where `Microsoft.NET.Test.Sdk` is the test host, `xunit` is the test framework.
7373
- **`--collect <DATA_COLLECTOR_FRIENDLY_NAME>`**
7474

7575
Enables data collector for the test run. For more information, see [Monitor and analyze test run](https://aka.ms/vstest-collect).
76+
77+
To collect code coverage on any platform that is supported by .NET Core, install [Coverlet](https://github.com/coverlet-coverage/coverlet/blob/master/README.md) and use the `--collect:"XPlat Code Coverage"` option.
78+
79+
On Windows, you can collect code coverage by using the `--collect "Code Coverage"` option. This option generates a *.coverage* file, which can be opened in Visual Studio 2019 Enterprise. For more information, see [Use code coverage](/visualstudio/test/using-code-coverage-to-determine-how-much-code-is-being-tested) and [Customize code coverage analysis](/visualstudio/test/customizing-code-coverage-analysis).
7680

7781
- **`-d|--diag <PATH_TO_DIAGNOSTICS_FILE>`**
7882

@@ -112,7 +116,7 @@ Where `Microsoft.NET.Test.Sdk` is the test host, `xunit` is the test framework.
112116

113117
- **`-o|--output <OUTPUT_DIRECTORY>`**
114118

115-
Directory in which to find the binaries to run. If not specified, the default path is `./bin/<configuration>/<framework>/`. For projects with multiple target frameworks (via the `TargetFrameworks` property), you also need to define `--framework` when you specify this option. `dotnet test` always run tests from the output directory. You can use <xref:System.AppDomain.BaseDirectory%2A?displayProperty=nameWithType> to consume test assets in the output directory.
119+
Directory in which to find the binaries to run. If not specified, the default path is `./bin/<configuration>/<framework>/`. For projects with multiple target frameworks (via the `TargetFrameworks` property), you also need to define `--framework` when you specify this option. `dotnet test` always runs tests from the output directory. You can use <xref:System.AppDomain.BaseDirectory%2A?displayProperty=nameWithType> to consume test assets in the output directory.
116120

117121
- **`-r|--results-directory <PATH>`**
118122

@@ -165,6 +169,18 @@ Where `Microsoft.NET.Test.Sdk` is the test host, `xunit` is the test framework.
165169
dotnet test --logger trx
166170
```
167171

172+
- Run the tests in the project in the current directory, and generate a code coverage file (after installing [Coverlet](https://github.com/tonerdo/coverlet/blob/master/README.md)):
173+
174+
```dotnetcli
175+
dotnet test --collect:"XPlat Code Coverage"
176+
```
177+
178+
- Run the tests in the project in the current directory, and generate a code coverage file (Windows only):
179+
180+
```dotnetcli
181+
dotnet test --collect "Code Coverage"
182+
```
183+
168184
- Run the tests in the project in the current directory, and log with detailed verbosity to the console:
169185

170186
```dotnetcli
@@ -189,6 +205,7 @@ Where `Microsoft.NET.Test.Sdk` is the test host, `xunit` is the test framework.
189205
| -------------- | --------------------------------------------------------------------------------------------------------- |
190206
| MSTest | <ul><li>FullyQualifiedName</li><li>Name</li><li>ClassName</li><li>Priority</li><li>TestCategory</li></ul> |
191207
| xUnit | <ul><li>FullyQualifiedName</li><li>DisplayName</li><li>Traits</li></ul> |
208+
| NUnit | <ul><li>FullyQualifiedName</li><li>Name</li><li>TestCategory</li><li>Priority</li></ul> |
192209

193210
The `<operator>` describes the relationship between the property and the value:
194211

0 commit comments

Comments
 (0)