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/extensibility/migration/update-visual-studio-extension.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ All these steps can be completed with Visual Studio 2019.
135
135
Leave the `source.extension.vsixmanifest` file in the VSIX project.
136
136

137
137
138
-
1. Metadata files (release notes, license, icons, and so on) and VSCT files should be moved to a shared directory and added as linked files to the VSIX project.
138
+
1. Metadata files (release notes, license, icons, and so on) and VSCT files should be moved to a shared directory and added as linked files to the VSIX project. Note that the shared directory is separate from the shared project.
139
139

140
140
- For Metadata files, set BuildAction to `Content` and set Include in VSIX to `true`.
Copy file name to clipboardExpand all lines: docs/ide/reference/simplify-linq-expression.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Simplify LINQ expression
3
3
description: "This refactoring is used to remove unnecessary calls to the Enumerable for the Where method."
4
-
ms.date: 08/12/2020
4
+
ms.date: 07/05/2021
5
5
ms.topic: reference
6
6
author: m-redding
7
7
ms.author: midumont
@@ -22,7 +22,7 @@ This refactoring applies to:
22
22
23
23
**When:** All instances where the method calls `Single()`, `SingleOrDefault()`, and so on, doesn't have any arguments and is preceded by a `Where()` expression. The input to the `Where()` expression cannot be constructed as an expression tree.
24
24
25
-
**Why:** Removing the unnecessary call to the Enumerable for the `.Where()` method improves performance and readability.
25
+
**Why:** Removing the unnecessary call to the Enumerable for the `.Where()` method improves readability and in some cases performance, see remarks.
26
26
27
27
## How-to
28
28
@@ -31,6 +31,10 @@ This refactoring applies to:
31
31
3. Select **Simplify LINQ expression**
32
32
33
33

34
+
35
+
## Remarks
36
+
37
+
In some cases this refactoring may reduce performance. LINQ operations on `List<T>` and `T[]` are not optimized in this case and result in worse performance.
Copy file name to clipboardExpand all lines: docs/ide/work-with-multi-factor-authentication.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Clicking on **Reenter your credentials** will open your system's default web bro
63
63
64
64
## How to opt out of using a specific Azure Active Directory tenant in Visual Studio
65
65
66
-
Visual Studio 2019 version 16.6 offers the flexibility to filter out tenants individually or globally, effectively hidding them from Visual Studio. Filtering eliminates the need to authenticate with that tenant, but it also means that you won't be able to access any associated resources.
66
+
Visual Studio 2019 version 16.6 offers the flexibility to filter out tenants individually or globally, effectively hiding them from Visual Studio. Filtering eliminates the need to authenticate with that tenant, but it also means that you won't be able to access any associated resources.
67
67
68
68
This functionality is useful when you have multiple tenants, but want to optimize your development environment by targeting a specific subset. It can also help in instances when you can't validate a particular CA/MFA policy, as you can filter out the offending tenant.
The MSBuild `GetDirectoryNameOfFileAbove` property function looks for a filein the directories above the current directory in the path.
213
+
The MSBuild `GetDirectoryNameOfFileAbove` property function searches upward for a directory containing the specified file, beginning in (and including) the specified directory. It returns the full path of the nearest directory containing the file if it is found, otherwise an empty string.
The `GetPathOfFileAbove` property function in MSBuild returns the path of the specified file, if located in the directory structure above the current directory. It is functionally equivalent to calling
235
+
The MSBuild `GetPathOfFileAbove` property function searches upward for a directory containing the specified file, beginning in (and including) the specified directory. It returns the full path of the nearest matching file if it is found, otherwise an empty string.
where `file` is the name of the file to search for and `startingDirectory` is an optional directory to start the search in. By default, the search will start in the current file's own directory.
244
+
245
+
This example shows how to import a file named *dir.props* in or above the current directory, only if a match is found:
However, sometimes you need to start the search in the parent directory, to avoid matching the current file. This example shows how a *Directory.Build.props* file can import the nearest *Directory.Build.props* file in a strictly higher level of the tree, without recursively importing itself:
Copy file name to clipboardExpand all lines: docs/vsto/upgrading-and-migrating-office-solutions.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Upgrade and migrate Office solutions"
3
-
description: You must upgrade the project to use it in current versions of Visual Studio if you have a Offince project that was created in an earlier version of Visual Studio.
3
+
description: You must upgrade the project to use it in current versions of Visual Studio if you have an Office project that was created in an earlier version of Visual Studio.
0 commit comments