You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/diagnostics/dotnet-monitor.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: dotnet-monitor diagnostic tool - .NET
3
3
description: Learn how to install and use the dotnet-monitor tool to collect dumps, traces, logs, and metrics from applications in production environments.
4
-
ms.date: 06/16/2022
4
+
ms.date: 03/04/2025
5
5
ms.topic: reference
6
6
---
7
7
# Diagnostic monitoring and collection utility (dotnet-monitor)
-`Shell` - Outputs in a format usable in Linux shells such as Bash.
210
210
-`Text` - Outputs in a format that is plain text.
211
211
212
-
## See Also
212
+
-**`-e|--expiration <expiration>`**
213
+
214
+
The expiration time after which the generated API key will no longer be accepted. The value must be in <xref:System.TimeSpan> format (for example, "7.00:00:00" for 7 days). Default: "7.00:00:00" (7 days).
Copy file name to clipboardExpand all lines: docs/core/install/linux-ubuntu.md
+36-21Lines changed: 36 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: .NET and Ubuntu overview
3
3
description: Learn about the ways you can install .NET on Ubuntu, either from the built-in package feed, the .NET backports repository, or the Microsoft repository.
@@ -48,7 +48,7 @@ Use the following sections to determine how you should install .NET:
48
48
49
49
### I'm using Ubuntu 22.04 or later, and I only need .NET
50
50
51
-
Install .NET through the Ubuntu feed. For more information, see the following pages:
51
+
If you don't need other Microsoft packages, such as `powershell`, `mdatp`, or `mssql`, install .NET through the Ubuntu feed. For more information, see the following pages:
52
52
53
53
-[Install .NET on Ubuntu 24.10](linux-ubuntu-install.md?pivots=os-linux-ubuntu-2410).
54
54
-[Install .NET on Ubuntu 24.04](linux-ubuntu-install.md?pivots=os-linux-ubuntu-2404).
@@ -137,27 +137,34 @@ Canonical supports .NET versions in the built-in Ubuntu feed for the lifetime of
Depending on your version of Ubuntu, you might need to register either the Ubuntu backports or the Microsoft package repository.
143
+
144
+
> [!IMPORTANT]
145
+
> Make sure you consider the information in the [Decide how to install .NET section](#decide-how-to-install-net).
146
+
147
+
-[Register the Ubuntu .NET backports package repository](#ubuntu-net-backports-package-repository)
148
+
-[Register the Microsoft package repository](#register-the-microsoft-package-repository)
149
+
150
+
### Ubuntu .NET backports package repository
141
151
142
152
The Ubuntu .NET backports package repository provides versions of .NET that aren't available in the built-in Ubuntu feed. The [Supported distributions](#supported-distributions) section provides a table that lists which versions of .NET are available in the package feed. Canonical maintains the packages contained in this package repository and provides best-effort support, which does not extend beyond the Microsoft-provided support lifetime or the support period of the particular Ubuntu version.
143
153
144
154
See the [web-view of the Ubuntu .NET backports package repository](https://launchpad.net/~dotnet/+archive/ubuntu/backports) for more details.
145
155
146
-
### Register the Ubuntu .NET backports package repository
156
+
####Register the Ubuntu .NET backports package repository
147
157
148
158
Open a terminal and run the following command:
149
159
150
160
```bash
151
161
sudo add-apt-repository ppa:dotnet/backports
152
162
```
153
163
154
-
> [!TIP]
155
-
> You do not need to call `apt update`. The `add-apt-repository` command does this by default.
156
-
157
164
> [!NOTE]
158
165
> The Ubuntu .NET backports package repository is compatible with the built-in Ubuntu feed. Therefore you do not need to configure your package manager to ignore .NET packages in the built-in Ubuntu feed.
159
166
160
-
### Unregister the Ubuntu .NET backports package repository
167
+
####Unregister the Ubuntu .NET backports package repository
161
168
162
169
If you no longer want to consume packages from the Ubuntu .NET backports package repository you can unregister it. Open a terminal and run the following command:
> Unregistering the Ubuntu .NET backports package repository does not uninstall any packages.
170
177
171
-
### add-apt-repository command not found
178
+
####add-apt-repository command not found
172
179
173
180
The [`add-apt-repository(1)`](https://manpages.ubuntu.com/manpages/noble/en/man1/add-apt-repository.1.html) utility is pre-installed on most Ubuntu installations.
174
181
@@ -179,7 +186,7 @@ sudo apt update
179
186
sudo apt install software-properties-common
180
187
```
181
188
182
-
## Register the Microsoft package repository
189
+
###Register the Microsoft package repository
183
190
184
191
> [!IMPORTANT]
185
192
> This only applies to Ubuntu versions prior to 24.04. Starting with Ubuntu 24.04, Microsoft no longer publishes packages to the Microsoft package repository. Use the [supported distributions table](#supported-distributions) to determine the best way to install .NET.
@@ -221,7 +228,11 @@ sudo apt update
221
228
>
222
229
> You can use a web browser and navigate to <https://packages.microsoft.com/config/ubuntu/> to see which versions of Ubuntu are available to use as the `$repo_version` value.
223
230
224
-
## Install .NET
231
+
## Install, uninstall, or update .NET
232
+
233
+
The following sections describe how to manage .NET through the package manager.
234
+
235
+
### Install .NET
225
236
226
237
Install .NET through the package manager with the `sudo apt install <package-name>` command. Replace `<package-name>` with the name of the .NET package you want to install. For example, to install .NET SDK 9.0, use the command `sudo apt install dotnet-sdk-9.0`. The following table lists the currently supported .NET packages (which [might vary by your Ubuntu version](#supported-distributions)):
227
238
@@ -239,7 +250,7 @@ Install .NET through the package manager with the `sudo apt install <package-nam
239
250
240
251
Some environment variables affect how .NET is run after it's installed. For more information, see [.NET SDK and CLI environment variables](../tools/dotnet-environment-variables.md#net-sdk-and-cli-environment-variables).
241
252
242
-
## Uninstall .NET
253
+
###Uninstall .NET
243
254
244
255
If you installed .NET through a package manager, uninstall in the same way with the `apt-get remove` command:
If you installed .NET through a package manager, you can upgrade the package with the `apt upgrade` command. For example, the following commands upgrade the `dotnet-sdk-9.0` package with the latest version:
> If you've upgraded your Linux distribution since installing .NET, you may need to reconfigure the Microsoft package repository. Run the installation instructions for your current distribution version to upgrade to the appropriate package repository for .NET updates.
271
274
275
+
## Manage preview versions
276
+
277
+
The following sections describe how to install and uninstall preview releases of .NET.
278
+
279
+
### Install preview versions
280
+
281
+
[!INCLUDE [preview installs don't support package managers](./includes/linux-install-previews.md)]
Starting with Ubuntu 22.04, you might run into a situation where it seems only a piece of .NET is available. For example, you've installed the runtime and the SDK, but when you run `dotnet --info` only the runtime is listed. This situation can be related to using two different package sources. The built-in Ubuntu 22.04 and Ubuntu 22.10 package feeds include some versions of .NET, but not all, and you might have also installed .NET from the Microsoft feeds. For more information about how to fix this problem, see [Troubleshoot .NET errors related to missing files on Linux](linux-package-mixup.md?pivots=os-linux-ubuntu#solutions).
Copy file name to clipboardExpand all lines: docs/core/testing/unit-testing-platform-faq.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,13 @@ ms.author: amauryleve
6
6
ms.date: 07/09/2024
7
7
---
8
8
9
-
# Microsoft.Testing.Platform FAQ
9
+
# Microsoft.Testing.Platform and extensions FAQ
10
10
11
11
This article contains answers to commonly asked questions about `Microsoft.Testing.Platform`.
12
12
13
-
## error CS8892: Method 'TestingPlatformEntryPoint.Main(string[])' will not be used as an entry point because a synchronous entry point 'Program.Main(string[])' was found
13
+
## Microsoft.Testing.Platform.MSBuild
14
+
15
+
### error CS8892: Method 'TestingPlatformEntryPoint.Main(string[])' will not be used as an entry point because a synchronous entry point 'Program.Main(string[])' was found
14
16
15
17
Manually defining an entry point (`Main`) in a test project or referencing a test project from an application that already has an entry point results in a conflict with the entry point generated by `Microsoft.Testing.Platform`. To avoid this issue, take one of these steps:
16
18
@@ -19,3 +21,12 @@ Manually defining an entry point (`Main`) in a test project or referencing a tes
19
21
- Disable the generation of the entry point by setting the `<GenerateTestingPlatformEntryPoint>false</GenerateTestingPlatformEntryPoint>` MSBuild property.
20
22
21
23
- Completely disable the transitive dependency to `Microsoft.Testing.Platform.MSBuild` by setting the `<IsTestingPlatformApplication>false</IsTestingPlatformApplication>` MSBuild property in the project that references a test project. This is needed when you reference a test project from a non-test project, for example, a console app that references a test application.
24
+
25
+
## Microsoft.Testing.Extensions.Fakes
26
+
27
+
### Fakes error Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables
28
+
29
+
This error can occur if not all of the Fakes assemblies are present in the bin folder.
30
+
31
+
- Ensure that the project either uses the [MSTest.SDK](./unit-testing-mstest-sdk.md) or references [Microsoft.Testing.Extensions.Fakes](./unit-testing-platform-extensions-fakes.md).
32
+
- For .NET Framework projects, avoid setting `<PlatformTarget>AnyCPU</PlatformTarget>` as this results in NuGet not copying all files to the bin folder.
Copy file name to clipboardExpand all lines: docs/core/testing/unit-testing-platform-vs-vstest.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,10 @@ VSTest is extensible and common types are placed in [Microsoft.TestPlatform.Obje
36
36
37
37
Microsoft.Testing.Platform is based on [Microsoft.Testing.Platform](https://www.nuget.org/packages/Microsoft.Testing.Platform) NuGet package and other libraries in the `Microsoft.Testing.*` namespace. Like VSTest, the `Microsoft.Testing.Platform` is open-source and has a [microsoft/testfx](https://github.com/microsoft/testfx/tree/main/src/Platform/Microsoft.Testing.Platform) GitHub repository.
38
38
39
-
## Communication protocol (preview)
39
+
## Communication protocol
40
40
41
41
> [!NOTE]
42
-
> The Visual Studio Test Explorer supports the Microsoft.Testing.Platform protocol in the **preview** versions since 17.10 onward. If you run/debug your tests using earlier versions of Visual Studio, Test Explorer will use `vstest.console.exe` and the old protocol to run these tests.
42
+
> The Visual Studio Test Explorer supports the Microsoft.Testing.Platform protocol since 17.12 onward. If you run/debug your tests using earlier versions of Visual Studio, Test Explorer will use `vstest.console.exe` and the old protocol to run these tests.
43
43
44
44
Microsoft.Testing.Platform uses a JSON-RPC based protocol to communicate between Visual Studio and the test runner process. The protocol is documented in the [MSTest GitHub repository](https://github.com/microsoft/testfx/tree/main/docs/mstest-runner-protocol).
45
45
@@ -49,6 +49,8 @@ VSTest also uses a JSON based communication protocol, but it's not JSON-RPC base
49
49
50
50
To disable the use of the new protocol in Test Explorer, you can edit your project to add the following property: `<DisableTestingPlatformServerCapability>true</DisableTestingPlatformServerCapability>`.
51
51
52
+
You can also go to Preview Features options in Visual Studio and deselect the "Use testing platform server mode" option.
53
+
52
54
## Executables
53
55
54
56
VSTest ships multiple executables, notably `vstest.console.exe`, `testhost.exe`, and `datacollector.exe`. However, MSTest is embedded directly into your test project and doesn't ship any other executables. The executable your test project compiles to is used to host all the testing tools and carry out all the tasks needed to run tests.
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-list-package.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,10 @@ The project or solution file to operate on. If not specified, the command search
118
118
119
119
-**`--vulnerable`**
120
120
121
-
Lists packages that have known vulnerabilities. Cannot be combined with `--deprecated` or `--outdated` options. Nuget.org is the source of information about vulnerabilities. For more information, see [Vulnerabilities](/nuget/api/registration-base-url-resource) and [How to Scan NuGet Packages for Security Vulnerabilities](https://devblogs.microsoft.com/nuget/how-to-scan-nuget-packages-for-security-vulnerabilities/).
121
+
Lists packages that have known vulnerabilities. Cannot be combined with `--deprecated` or `--outdated` options.
122
+
Use the `<AuditSources>` property in your configuration file to specify your source of vulnerability data, which is acquired from the [VulnerabilityInfo](/nuget/api/vulnerability-info) resource.
123
+
If `<AuditSources>` is not specified, the specified `<PackageSources>` are used to load vulnerability data.
124
+
For more information, see [Audit sources](/nuget/concepts/auditing-packages#audit-sources) and [How to scan NuGet packages for security vulnerabilities](https://devblogs.microsoft.com/nuget/how-to-scan-nuget-packages-for-security-vulnerabilities/).
0 commit comments