Skip to content

Commit ae12323

Browse files
committed
Merge remote-tracking branch 'MicrosoftDocs/master'
2 parents 3ec7ef5 + 67fae7d commit ae12323

File tree

1,162 files changed

+12245
-12256
lines changed

Some content is hidden

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

1,162 files changed

+12245
-12256
lines changed

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.c text
7+
*.h text
8+
9+
# Declare files that will always have CRLF line endings on checkout.
10+
*.sln text eol=crlf
11+
12+
# Denote all files that are truly binary and should not be modified.
13+
*.png binary
14+
*.jpg binary

.openpublishing.publish.config.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
}
8787
],
8888
"notification_subscribers": [],
89+
"sync_notification_subscribers": [
90+
91+
],
8992
"branches_to_filter": [],
9093
"git_repository_url_open_to_public_contributors": "https://github.com/MicrosoftDocs/visualstudio-docs",
9194
"git_repository_branch_open_to_public_contributors": "master",
@@ -113,11 +116,11 @@
113116
]
114117
},
115118
"need_generate_pdf_url_template": true,
116-
"targets": {
117-
"Pdf": {
118-
"template_folder": "_themes.pdf"
119-
}
120-
},
119+
"Targets": {
120+
"Pdf": {
121+
"template_folder": "_themes.pdf"
122+
}
123+
},
121124
"need_generate_pdf": false,
122125
"need_generate_intellisense": false
123126
}

.openpublishing.redirection.json

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "docs/debugger/debug-interface-access/dia2dump-cpp-source-file.md",
5+
"redirect_url": "/visualstudio/debugger/debug-interface-access/dia2dump-sample",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "docs/extensibility/shell/shell-isolated-or-integrated.md",
510
"redirect_url": "https://vspartner.com/pages/vsshells",
@@ -1092,7 +1097,13 @@
10921097
},
10931098
{
10941099
"source_path": "docs/ide/not-in-toc/web-publish-options.md",
1095-
"redirect_url": "/visualstudio/deployment/deploying-applications-services-and-components-resources", "redirect_document_id": false
1100+
"redirect_url": "/visualstudio/deployment/deploying-applications-services-and-components-resources",
1101+
"redirect_document_id": false
1102+
},
1103+
{
1104+
"source_path": "docs/ide/not-in-toc/intellicode-faq.md",
1105+
"redirect_url": "/visualstudio/intellicode/faq",
1106+
"redirect_document_id": false
10961107
},
10971108
{
10981109
"source_path": "docs/ide/optimize-solution-loading-in-visual-studio.md",
@@ -1659,6 +1670,51 @@
16591670
"redirect_url": "/visualstudio/profiling/how-to-instrument-a-dotnet-framework-component-and-collect-memory-data",
16601671
"redirect_document_id": false
16611672
},
1673+
{
1674+
"source_path": "docs/profiling/how-to-launch-a-stand-alone-native-application-with-the-profiler-to-collect-concurrency-data-by-using-the-command-line.md",
1675+
"redirect_url": "/visualstudio/profiling/how-to-launch-a-stand-alone-native-application-to-collect-concurrency-data",
1676+
"redirect_document_id": false
1677+
},
1678+
{
1679+
"source_path": "docs/profiling/how-to-attach-the-profiler-to-a-native-stand-alone-application-and-collect-concurrency-data-by-using-the-command-line.md",
1680+
"redirect_url": "/visualstudio/profiling/how-to-attach-the-profiler-to-a-native-app-and-collect-concurrency-data",
1681+
"redirect_document_id": false
1682+
},
1683+
{
1684+
"source_path": "docs/profiling/how-to-attach-the-profiler-to-a-dotnet-framework-stand-alone-application-to-collect-memory-data-by-using-the-command-line.md",
1685+
"redirect_url": "/visualstudio/profiling/how-to-attach-the-profiler-to-a-dotnet-framework-app-to-collect-memory-data",
1686+
"redirect_document_id": false
1687+
},
1688+
{
1689+
"source_path": "docs/profiling/how-to-instrument-a-statically-compiled-aspnet-web-application-and-collect-memory-data-by-using-the-profiler-command-line.md",
1690+
"redirect_url": "/visualstudio/profiling/how-to-instrument-a-statically-compiled-aspnet-app-and-collect-memory-data",
1691+
"redirect_document_id": false
1692+
},
1693+
{
1694+
"source_path": "docs/profiling/how-to-launch-a-stand-alone-dotnet-framework-application-with-the-profiler-to-collect-memory-data-by-using-the-command-line.md",
1695+
"redirect_url": "/visualstudio/profiling/how-to-launch-a-stand-alone-dotnet-framework-app-to-collect-memory-data",
1696+
"redirect_document_id": false
1697+
},
1698+
{
1699+
"source_path": "docs/profiling/how-to-launch-a-stand-alone-application-with-the-profiler-and-collect-application-statistics-by-using-the-command-line.md",
1700+
"redirect_url": "/visualstudio/profiling/how-to-launch-a-stand-alone-app-and-collect-application-statistics",
1701+
"redirect_document_id": false
1702+
},
1703+
{
1704+
"source_path": "docs/profiling/how-to-attach-the-profiler-to-a-native-stand-alone-application-and-collect-application-statistics-by-using-the-command-line.md",
1705+
"redirect_url": "/visualstudio/profiling/how-to-attach-the-profiler-to-a-native-app-and-collect-application-statistics",
1706+
"redirect_document_id": false
1707+
},
1708+
{
1709+
"source_path": "docs/profiling/how-to-instrument-a-stand-alone-dotnet-framework-component-and-collect-timing-data-with-the-profiler-from-the-command-line.md",
1710+
"redirect_url": "/visualstudio/profiling/how-to-instrument-a-dotnet-framework-component-and-collect-timing-data",
1711+
"redirect_document_id": false
1712+
},
1713+
{
1714+
"source_path": "docs/profiling/how-to-instrument-a-native-stand-alone-component-and-collect-timing-data-with-the-profiler-from-the-command-line.md",
1715+
"redirect_url": "/visualstudio/profiling/how-to-instrument-a-native-component-and-collect-timing-data",
1716+
"redirect_document_id": false
1717+
},
16621718
{
16631719
"source_path": "docs/profiling/how-to-launch-a-stand-alone-dotnet-framework-application-with-the-profiler-to-collect-concurrency-data-by-using-the-command-line.md",
16641720
"redirect_url": "/visualstudio/profiling/how-to-launch-a-stand-alone-dotnet-framework-app-to-collect-concurrency-data",
@@ -2284,6 +2340,11 @@
22842340
"redirect_url": "/visualstudio/vsto/office-and-sharepoint-development-in-visual-studio",
22852341
"redirect_document_id": false
22862342
},
2343+
{
2344+
"source_path": "docs/vsto/updating-ribbon-customizations-in-office-projects-that-you-migrate-to-the-dotnet-framework-4-or-the-dotnet-framework-4-5.md",
2345+
"redirect_url": "/visualstudio/vsto/update-ribbon-customizations-in-office-projects-to-migrate-to-dotnet-framework-4-or-4-5",
2346+
"redirect_document_id": false
2347+
},
22872348
{
22882349
"source_path": "docs/vsto/you-must-explicitly-enable-access-to-the-microsoft-office-visual-basic-for-applications-project-system-before-you-can-create-or-open-a-----for-the-microsoft-office-system-project.md",
22892350
"redirect_url": "/visualstudio/vsto/enable-access-to-vba-to-create-or-open-a-visual-studio-tools-for-office-system-project",
@@ -5730,6 +5791,11 @@
57305791
"source_path": "mac/benefits-vsmac-over-xs.md",
57315792
"redirect_url": "/visualstudio/mac/",
57325793
"redirect_document_id": false
5794+
},
5795+
{
5796+
"source_path": "docs/cross-platform/overview-of-visual-studio-tools-for-unity.md",
5797+
"redirect_url": "/visualstudio/cross-platform/visual-studio-tools-for-unity",
5798+
"redirect_document_id": false
57335799
}
57345800

57355801
]

docs/ai/tensorflow-local.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Download this [GitHub repository](https://github.com/Microsoft/samples-for-ai) c
4646

4747
![Open solution](media\tensorflow-local\open-solution.png)
4848

49-
- Find the MNIST Project in the **Solution Explorer**, right-click and select **Set as StartUp Project**.
49+
- Find the MNIST Project in **Solution Explorer**, right-click and select **Set as StartUp Project**.
5050

5151
- Click **Start**.
5252

docs/ai/train-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Sumbit a job to train model in Azure Batch AI
2+
title: Submit a job to train model in Azure Batch AI
33
description: train model cloud
44
keywords: ai, visual studio, train model, cloud
55
author: lisawong19

docs/chromeless.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
### YamlMime:ContextObject
2+
chromeless: true
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: Analyzer rule sets
3+
ms.date: 07/20/2018
4+
ms.prod: visual-studio-dev15
5+
ms.technology: vs-ide-code-analysis
6+
ms.topic: conceptual
7+
helpviewer_keywords:
8+
- "analyzers, rule sets"
9+
- "rule sets for analyzers"
10+
author: gewarren
11+
ms.author: gewarren
12+
manager: douge
13+
ms.workload:
14+
- "multiple"
15+
---
16+
# Rule sets for Roslyn analyzers
17+
18+
Predefined rule sets are included with some NuGet analyzer packages. For example, the rule sets that are included with the [Microsoft.CodeAnalysis.FxCopAnalyzers NuGet analyzer package](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/) (starting in version 2.6.2) enable or disable rules based on their category, such as security, naming, or performance. Using rule sets makes it easy to quickly see only those rule violations that pertain to a particular category of rule.
19+
20+
If you're migrating from legacy "FxCop" static code analysis to Roslyn analyzers, these rule sets enable you to continue using the same rule configurations you used previously.
21+
22+
## Use analyzer rule sets
23+
24+
After you [install a NuGet analyzer package](install-roslyn-analyzers.md), locate the predefined rule set in its *rulesets* directory, for example *%USERPROFILE%\\.nuget\packages\microsoft.codequality.analyzers\<version>\rulesets*. From there, you can drag and drop, or copy and paste, one or more of the rulesets to your Visual Studio project in **Solution Explorer**.
25+
26+
To make a rule set the active rule set for analysis, right-click on the project in **Solution Explorer** and choose **Properties**. In the project property pages, select the **Code Analysis** tab. Under **Run this rule set**, select **Browse**, and then select the desired rule set that you copied to the project directory. Now you only see rule violations for those rules that are enabled in the selected rule set.
27+
28+
You can also [customize a predefined rule set](how-to-create-a-custom-rule-set.md#create-a-custom-rule-set) to your preference. For example, you can change the severity of one or more rules so that violations appear as errors or warnings in the **Error List**.
29+
30+
## Available rule sets
31+
32+
The predefined analyzer rule sets include three rulesets that affect all the rules in the package&mdash;one that enables them all, one that disables them all, and one that honors each rule's default severity and enablement settings:
33+
34+
- AllRulesEnabled.ruleset
35+
- AllRulesDisabled.ruleset
36+
- AllRulesDefault.ruleset
37+
38+
Additionally, there are two rule sets for each category of rules in the package, such as performance or security. One rule set enables all rules for the category, and one rule set honors the default severity and enablement settings for each rule in the category.
39+
40+
The [Microsoft.CodeAnalysis.FxCopAnalyzers NuGet analyzer package](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers/) includes rule sets for the following categories, to match the rule sets available for legacy "FxCop" static code analysis:
41+
42+
- design
43+
- documentation
44+
- maintainability
45+
- naming
46+
- performance
47+
- reliability
48+
- security
49+
- usage
50+
51+
## See also
52+
53+
- [Overview of .NET Compiler Platform analyzers](roslyn-analyzers-overview.md)
54+
- [Install .NET Compiler Platform analyzers](install-roslyn-analyzers.md)
55+
- [Configure and use Roslyn analyzer rules](use-roslyn-analyzers.md)
56+
- [Use rule sets to group code analysis rules](using-rule-sets-to-group-code-analysis-rules.md)

docs/code-quality/c6248.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ void f( PSECURITY_DESCRIPTOR pSecurityDescriptor )
4343
}
4444
```
4545

46-
To see a complete example on how to create security descriptor, see [Creating a Security Descriptor for a New Object in C++](http://msdn.microsoft.com/library/aa446595.aspx). For more information, see [Creating a DACL](http://msdn.microsoft.com/library/ms717798.aspx).
46+
To see a complete example on how to create security descriptor, see [Creating a Security Descriptor for a New Object in C++](http://msdn.microsoft.com/library/aa446595.aspx). For more information, see [Creating a DACL](/windows/desktop/SecBP/creating-a-dacl).

docs/code-quality/ca0063.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,27 @@ ms.workload:
1414
- "multiple"
1515
---
1616
# CA0063
17+
1718
Failed to load rule set file or one of its dependent rule set files.
1819

19-
Failed to load rule set file or one of its dependent rule set files.
20+
Failed to load rule set file or one of its dependent rule set files.
2021

21-
The specified ruleset could not be found or one of the ruleset files included in your ruleset could not be found. Make sure that the all the rulesets included in your ruleset exist on disk and that the appropriate ruleset directories are being specified in your project through the **CodeAnalysisRuleSetDirectories** property of [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)].
22+
The specified rule set could not be found or one of the rule set files included in your rule set could not be found. Make sure that the all the rule sets included in your rule set exist on disk and that the appropriate rule set directories are being specified in your project through the **CodeAnalysisRuleSetDirectories** property of [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)].
2223

23-
To debug the error, examine your ruleset file in a text editor. To find the path to the ruleset file, right-click the project in Solution Explorer, click **Properties**, and then click **Code Analysis**. Make sure the ruleset file is selected in **Run this rule set**. The Path to the rule set is listed in the description field.
24+
To debug the error, examine your rule set file in a text editor. To find the path to the rule set file, right-click the project in Solution Explorer, click **Properties**, and then click **Code Analysis**. Make sure the rule set file is selected in **Run this rule set**. The Path to the rule set is listed in the description field.
2425

25-
Examine the **Path** attribute value all the **Include** elements. Include paths can use relative paths to the parent/current ruleset file, environment variables, and absolute paths. For example:
26+
Examine the **Path** attribute value all the **Include** elements. Include paths can use relative paths to the parent/current rule set file, environment variables, and absolute paths. For example:
2627

27-
```
28+
```xml
2829
<Include Path="%PUBLIC%\Documents\RuleSets\alldesign.ruleset" Action="Default" />
2930
<Include Path="..\alldesign.ruleset" Action="Default" />
3031
<Include Path="C:\Rulesets\alldesign.ruleset" Action="Default" />
3132
```
3233

33-
Inspect each of these include paths and verify they are all valid.
34+
Inspect each of these include paths and verify they are all valid.
3435

35-
In some cases, the location of a ruleset can be dependent on an [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] property. [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] properties cannot be referenced from a ruleset. To work around this issue, specify additional search paths in the **CodeAnalysisRuleSetDirectories** property of [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)]. In this scenario, specify only the name of the ruleset in the **Path** attribute of the **Include** element.
36+
In some cases, the location of a rule set can be dependent on an [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] property. [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] properties cannot be referenced from a rule set. To work around this issue, specify additional search paths in the **CodeAnalysisRuleSetDirectories** property of [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)]. In this scenario, specify only the name of the rule set in the **Path** attribute of the **Include** element.
3637

3738
## See Also
38-
[Code Analysis Application Errors](../code-quality/code-analysis-application-errors.md)
39+
40+
- [Code Analysis Application Errors](../code-quality/code-analysis-application-errors.md)

docs/code-quality/ca0064.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ No analysis was performed because the specified rule set did not contain any FxC
1919

2020
This warning can occur in one of the following situations:
2121

22-
- If you encounter this warning in conjunction with CA0063 warnings, there was an a problem loading your ruleset file. For more information, see the [CA0063](ca0063.md) documentation.
22+
- If you encounter this warning in conjunction with CA0063 warnings, there was a problem loading your rule set file. For more information, see the [CA0063](ca0063.md) article.
2323

24-
- If you encounter this error in conjunction with CA0062 warnings, it most likely that Code Analysis was unable to find the assembly or assemblies that contain the rules specified by the ruleset. For more information, see the [CA0062](ca0062.md) documentation.
24+
- If you encounter this error in conjunction with CA0062 warnings, it most likely that code analysis was unable to find the assembly or assemblies that contain the rules specified by the rule set. For more information, see the [CA0062](ca0062.md) article.
2525

26-
- Otherwise, this warning usually occurs when your ruleset is empty or all of the rules enabled in a child rule set have been disabled. Use the Visual Studio [rule set editor](../code-quality/working-in-the-code-analysis-rule-set-editor.md) to enable some rules in your ruleset.
26+
- Otherwise, this warning usually occurs when your rule set is empty or all of the rules enabled in a child rule set are disabled. Use the Visual Studio [rule set editor](../code-quality/working-in-the-code-analysis-rule-set-editor.md) to enable some rules in your rule set.
2727

2828
## See also
2929

30-
- [Code Analysis Application Errors](../code-quality/code-analysis-application-errors.md)
30+
- [Code analysis application errors](../code-quality/code-analysis-application-errors.md)

0 commit comments

Comments
 (0)