Skip to content

Commit 9ccb34e

Browse files
authored
Merge pull request #794 from MicrosoftDocs/gewarren-bugfixes
Fixed bugs/github issues
2 parents 6a1bfc6 + dd24c21 commit 9ccb34e

15 files changed

+64
-127
lines changed

docs/ide/create-portable-custom-editor-options.md

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,13 @@ ms.reviewer: ""
66
ms.suite: ""
77
ms.tgt_pltfrm: ""
88
ms.topic: "article"
9-
dev_langs:
10-
- "VB"
11-
- "CSharp"
12-
- "C++"
13-
- "aspx"
149
helpviewer_keywords:
1510
- "editor"
1611
ms.assetid:
1712
caps.latest.revision: 29
1813
author: "gewarren"
1914
ms.author: "gewarren"
2015
manager: "ghogen"
21-
translation.priority.ht:
22-
- "cs-cz"
23-
- "de-de"
24-
- "es-es"
25-
- "fr-fr"
26-
- "it-it"
27-
- "ja-jp"
28-
- "ko-kr"
29-
- "pl-pl"
30-
- "pt-br"
31-
- "ru-ru"
32-
- "tr-tr"
33-
- "zh-cn"
34-
- "zh-tw"
3516
ms.technology:
3617
- "vs-ide-general"
3718
---
@@ -88,13 +69,36 @@ Now, when you press the TAB key, you get Tab characters instead of spaces.
8869

8970
In most cases when you implement a Visual Studio language service, no additional work is needed to support EditorConfig universal properties. The core editor automatically discovers and reads the .editorconfig file when users open files, and it sets the appropriate text buffer and view options. However, some language services opt to use an appropriate contextual text view option rather than using global settings for items such as tabs and spaces when a user edits or formats text. In these cases, the language service must be updated to support EditorConfig files.
9071

91-
The following table lists the changes needed to update a language service to support EditorConfig files.
72+
Following are the changes needed to update a language service to support EditorConfig files, by replacing a global language-specific option with a contextual option:
9273

93-
| Deprecated global language-specific option | Contextual option replacement |
94-
| :------------- | :------------- |
95-
| Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES.fInsertTabs or Microsoft.VisualStudio.Package.LanguagePreferences.InsertTabs | !textBufferOptions.GetOptionValue(DefaultOptions.ConvertTabsToSpacesOptionId) or !textView.Options.GetOptionValue(DefaultOptions.ConvertTabsToSpacesOptionId) |
96-
| Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES.uIndentSize or Microsoft.VisualStudio.Package.LanguagePreferences.InsertTabs.IndentSize | textBufferOptions.GetOptionValue(DefaultOptions. IndentSizeOptionId) or textView.Options.GetOptionValue(DefaultOptions. IndentSizeOptionId) |
97-
| Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES.uTabSize or Microsoft.VisualStudio.Package.LanguagePreferences.InsertTabs.TabSize | textBufferOptions.GetOptionValue(DefaultOptions.TabSizeOptionId) or textView.Options.GetOptionValue(DefaultOptions.TabSizeOptionId) |
74+
Replace:
75+
76+
Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES.fInsertTabs or Microsoft.VisualStudio.Package.LanguagePreferences.InsertTabs
77+
78+
With:
79+
80+
!textBufferOptions.GetOptionValue(DefaultOptions.ConvertTabsToSpacesOptionId) or
81+
!textView.Options.GetOptionValue(DefaultOptions.ConvertTabsToSpacesOptionId)
82+
83+
*****
84+
Replace:
85+
86+
Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES.uIndentSize or Microsoft.VisualStudio.Package.LanguagePreferences.InsertTabs.IndentSize
87+
88+
With:
89+
90+
textBufferOptions.GetOptionValue(DefaultOptions. IndentSizeOptionId) or
91+
textView.Options.GetOptionValue(DefaultOptions. IndentSizeOptionId)
92+
93+
*****
94+
Replace:
95+
96+
Microsoft.VisualStudio.TextManager.Interop.LANGPREFERENCES.uTabSize or Microsoft.VisualStudio.Package.LanguagePreferences.InsertTabs.TabSize
97+
98+
With:
99+
100+
textBufferOptions.GetOptionValue(DefaultOptions.TabSizeOptionId) or
101+
textView.Options.GetOptionValue(DefaultOptions.TabSizeOptionId)
98102

99103
# See Also
100104
[Create Portable Custom Editor Options with EditorConfig](create-portable-custom-editor-options.md)
Loading
Loading
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 KB
Loading
56.8 KB
Loading
Loading
Loading

docs/ide/reference/TOC.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# [Visual Studio Reference](visual-studio-reference.md)
2-
# [Visual Studio for Applications Reference](visual-studio-for-applications-reference.md)
32
# [General User Interface Elements](general-user-interface-elements-visual-studio.md)
43
## [Call Hierarchy](call-hierarchy.md)
54
## [Choose Toolbox Items, WPF Components](choose-toolbox-items-wpf-components.md)
Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
11
---
2-
title: "Visual Studio for Applications Reference | Microsoft Docs"
3-
ms.custom: ""
4-
ms.date: "11/04/2016"
5-
ms.reviewer: ""
6-
ms.suite: ""
7-
ms.technology:
8-
- "vs-ide-general"
9-
ms.tgt_pltfrm: ""
10-
ms.topic: "article"
11-
ms.assetid: 877a0fa3-4b6f-4056-b320-d8727793f708
12-
caps.latest.revision: 3
13-
author: "gewarren"
14-
ms.author: "gewarren"
15-
manager: "ghogen"
16-
translation.priority.ht:
17-
- "cs-cz"
18-
- "de-de"
19-
- "es-es"
20-
- "fr-fr"
21-
- "it-it"
22-
- "ja-jp"
23-
- "ko-kr"
24-
- "pl-pl"
25-
- "pt-br"
26-
- "ru-ru"
27-
- "tr-tr"
28-
- "zh-cn"
29-
- "zh-tw"
2+
redirect_url: /visualstudio/ide/reference/visual-studio-reference
303
---
314
# Visual Studio for Applications Reference
32-
The Visual Studio for Applications namespaces provide interfaces for integrating .NET Framework script engines into applications.
33-
34-
## In This Section
5+
The Visual Studio for Applications namespaces provide interfaces for integrating .NET Framework script engines into applications.

docs/ide/reference/visual-studio-reference.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ This section includes user interface reference, language equivalents, and other
4545
[XML Tools in Visual Studio](../../xml-tools/xml-tools-in-visual-studio.md)
4646
Contains documents about the XML tools in Visual Studio and provides links to more information.
4747

48-
[Visual Studio for Applications Reference](../../ide/reference/visual-studio-for-applications-reference.md)
49-
Contains reference documentation for interfaces that you can use to integrate .NET Framework script engines into applications.
50-
5148
[MSBuild](../../msbuild/msbuild.md)
5249
Contains documents about how to use the Microsoft build platform, which is integrated into [!INCLUDE[vsprvs](../../code-quality/includes/vsprvs_md.md)].
5350

docs/ide/walkthrough-building-an-application.md

Lines changed: 33 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Walkthrough: Building an Application | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
4+
ms.date: "09/25/2017"
55
ms.reviewer: ""
66
ms.suite: ""
77
ms.technology:
@@ -13,23 +13,9 @@ caps.latest.revision: 8
1313
author: "gewarren"
1414
ms.author: "gewarren"
1515
manager: "ghogen"
16-
translation.priority.ht:
17-
- "cs-cz"
18-
- "de-de"
19-
- "es-es"
20-
- "fr-fr"
21-
- "it-it"
22-
- "ja-jp"
23-
- "ko-kr"
24-
- "pl-pl"
25-
- "pt-br"
26-
- "ru-ru"
27-
- "tr-tr"
28-
- "zh-cn"
29-
- "zh-tw"
3016
---
3117
# Walkthrough: Building an Application
32-
By completing this walkthrough, you'll become more familiar with several options that you can configure when you build applications with Visual Studio. You'll create a custom build configuration, hide certain warning messages, and increase build output information, among other tasks, for a sample application.
18+
By completing this walkthrough, you'll become more familiar with several options that you can configure when you build applications with Visual Studio. You'll create a custom build configuration, hide certain warning messages, and increase build output information for a sample application.
3319

3420
This topic contains the following sections:
3521

@@ -46,43 +32,7 @@ By completing this walkthrough, you'll become more familiar with several option
4632
[Create a Release Build](../ide/walkthrough-building-an-application.md#BKMK_releasebuild)
4733

4834
## <a name="BKMK_installapp"></a> Install the Sample Application
49-
You'll use the **Extensions and Updates** dialog box to find and install the [Introduction to Building WPF Applications](http://code.msdn.microsoft.com/Introduction-to-Building-b8d16419?SRC=VSIDE) sample from the Samples Gallery on the Microsoft website. The Samples Gallery provides a variety of example projects and code that you can download and review as you plan and develop your applications.
50-
51-
#### To install the sample application
52-
53-
1. On the menu bar, choose **Tools**, **Extensions and Updates**.
54-
55-
2. Choose the **Online** category, and then choose the **Samples Gallery** category.
56-
57-
3. Specify `Introduction` in the search box to find the sample.
58-
59-
![Extensions and Updates dialog box](../ide/media/buildwalk_extensionsdialogsampledownload.png "BuildWalk_ExtensionsDialogSampleDownload")
60-
61-
4. In the results list, choose either **Introduction to Building WPF Applications (Visual C#)** or **Introduction to Building WPF Applications (Visual Basic)**.
62-
63-
5. Choose the **Download** button, and then choose the **Close** button.
64-
65-
The Introduction to Building WPF Applications sample appears in the **New Project** dialog box.
66-
67-
#### To create a solution for the sample application
68-
69-
1. Open the **New Project** dialog box.
70-
71-
![On the menu bar, choose File, New, Project](../ide/media/exploreide-filenewproject.png "ExploreIDE-FileNewProject")
72-
73-
2. In the **Installed** category, choose the **Samples** category to display the Introduction to Building WPF Applications sample.
74-
75-
3. Name the solution `IntroWPFcsharp` for Visual C#.
76-
77-
![New Project dialog box, Installed Samples](../ide/media/buildwalk_newprojectdlgintrotowpfsample.png "BuildWalk_NewProjectdlgIntrotoWPFsample")
78-
79-
OR
80-
81-
Name the solution `IntroWPFvb` for Visual Basic.
82-
83-
![New Project dialog box, Visual Basic Sample](../ide/media/buildwalk_newprojectdlgintrotowpfsamplevb.png "BuildWalk_NewProjectdlgIntrotoWPFsampleVB")
84-
85-
4. Choose the **OK** button.
35+
Download the [Introduction to Building WPF Applications](https://code.msdn.microsoft.com/Introduction-to-Building-b8d16419) sample. Choose either C# or Visual Basic. After the .zip file has downloaded, extract it and open the **ExpenseItIntro.sln** file using Visual Studio.
8636

8737
## <a name="BKMK_CreateBuildConfig"></a> Create a Custom Build Configuration
8838
When you create a solution, debug and release build configurations and their default platform targets are defined for the solution automatically. You can then customize these configurations or create your own. Build configurations specify the build type. Build platforms specify the operating system that an application targets for that configuration. For more information, see [Understanding Build Configurations](../ide/understanding-build-configurations.md), [Understanding Build Platforms](../ide/understanding-build-platforms.md), and [Debug and Release Project Configurations](http://msdn.microsoft.com/en-us/0440b300-0614-4511-901a-105b771b236e).
@@ -95,15 +45,15 @@ By completing this walkthrough, you'll become more familiar with several option
9545

9646
![Build menu, Configuration Manager command](../ide/media/buildwalk_configurationmanagerdialogbox.png "BuildWalk_ConfigurationManagerDialogBox")
9747

98-
2. In the **Active solution configuration** list, choose **New**.
48+
2. In the **Active solution configuration** list, choose **\<New...\>**.
9949

10050
3. In the **New Solution Configuration** dialog box, name the new configuration `Test`, copy settings from the existing Debug configuration, and then choose the **OK** button.
10151

10252
![New Solution Configuration Dialog Box](../ide/media/buildwalk_newsolutionconfigdlgbox.png "BuildWalk_NewSolutionConfigDlgBox")
10353

104-
4. In the **Active solution platform** list, choose **New**.
54+
4. In the **Active solution platform** list, choose **\<New...\>**.
10555

106-
5. In the **New Solution Platform** dialog box, choose**x64**, and don't copy settings from the x86 platform.
56+
5. In the **New Solution Platform** dialog box, choose **x64**, and don't copy settings from the x86 platform.
10757

10858
![New Solution Platform Dialog Box](../ide/media/buildwalk_newsolutionplatform.png "BuildWalk_NewSolutionPlatform")
10959

@@ -113,9 +63,11 @@ By completing this walkthrough, you'll become more familiar with several option
11363

11464
![Configuration Manager with Test configuration](../ide/media/buildwalk_configmanagertestconfig.png "BuildWalk_ConfigManagerTestconfig")
11565

116-
You can quickly verify or change the active solution configuration by using the **Solution Configurations** list on the **Standard** toolbar.
66+
7. Choose **Close**.
67+
68+
You can quickly verify or change the active solution configuration by using the **Solution Configurations** list on the **Standard** toolbar.
11769

118-
![Solution Configuration option Standard Toolbar](../ide/media/buildwalk_standardtoolbarsolutioncongfig.png "BuildWalk_StandardToolbarSolutionCongfig")
70+
![Solution Configuration option Standard Toolbar](../ide/media/buildwalk_standardtoolbarsolutioncongfig.png "BuildWalk_StandardToolbarSolutionCongfig")
11971

12072
## <a name="BKMK_building"></a> Build the Application
12173
Next, you'll build the solution with the custom build configuration.
@@ -124,8 +76,21 @@ By completing this walkthrough, you'll become more familiar with several option
12476

12577
- On the menu bar, choose **Build**, **Build Solution**.
12678

127-
The **Output** window displays the results of the build. The build succeeded, but several warning messages were generated.
79+
The **Output** window displays the results of the build. The build succeeded.
12880

81+
## <a name="BKMK_hidewarning"></a> Hide Compiler Warnings
82+
Next we'll introduce some code that causes a warning to be generated by the compiler.
83+
84+
1. In the C# project, open the **ExpenseReportPage.xaml.cs** file. In the **ExpenseReportPage** method, add the following code: `int i;`.
85+
86+
OR
87+
88+
In the Visual Basic project, open the **ExpenseReportPage.xaml.vb** file. In the custom constructor **Public Sub New...**, add the following code: `Dim i`.
89+
90+
2. Build the solution.
91+
92+
The **Output** window displays the results of the build. The build succeeded, but warnings were generated:
93+
12994
Figure 1: Visual Basic warnings
13095

13196
![Output Window Visual Basic](../ide/media/buildwalk_vbbuildoutputwnd.png "BuildWalk_VBBuildOutputWnd")
@@ -134,9 +99,8 @@ By completing this walkthrough, you'll become more familiar with several option
13499

135100
![Output Window Visual C&#35;](../ide/media/buildwalk_csharpbuildoutputwnd.png "BuildWalk_CsharpBuildOutputWnd")
136101

137-
## <a name="BKMK_hidewarning"></a> Hide Compiler Warnings
138-
You can temporarily hide certain warning messages during a build rather than have them clutter up the build output.
139-
102+
You can temporarily hide certain warning messages during a build rather than have them clutter up the build output.
103+
140104
#### To hide a specific Visual C# warning
141105

142106
1. In **Solution Explorer**, choose the top-level project node.
@@ -145,7 +109,7 @@ By completing this walkthrough, you'll become more familiar with several option
145109

146110
The **Project Designer** opens.
147111

148-
3. Choose the **Build** page and then, in the **Suppress warnings** box, specify the warning number `1762`.
112+
3. Choose the **Build** page and then, in the **Suppress warnings** box, specify the warning number **0168**.
149113

150114
![Build page, Project Designer](../ide/media/buildwalk_csharpsupresswarnings.png "BuildWalk_CsharpSupressWarnings")
151115

@@ -199,7 +163,7 @@ By completing this walkthrough, you'll become more familiar with several option
199163

200164
5. Build the solution, and then review the information in the **Output** window.
201165

202-
The build information includes the time that the build started (located at the beginning), the order in which files were processed, and the amount of time that the process took to complete (located at the end). This information also includes the actual compiler syntax that Visual Studio runs during the build.
166+
The build information includes the time that the build started (located at the beginning) and the order in which files were processed. This information also includes the actual compiler syntax that Visual Studio runs during the build.
203167

204168
For example, in the Visual C# build, the [/nowarn](/dotnet/visual-basic/reference/command-line-compiler/nowarn) option lists the warning code, 1762, that you specified earlier in this topic, along with three other warnings.
205169

@@ -208,7 +172,7 @@ By completing this walkthrough, you'll become more familiar with several option
208172
> [!TIP]
209173
> You can search the contents of the **Output** window if you display the **Find** dialog box by choosing the Ctrl+F keys.
210174
211-
For more information, see [How to: View, Save, and Configure Build Log Files](../ide/how-to-view-save-and-configure-build-log-files.md).
175+
For more information, see [How to: View, Save, and Configure Build Log Files](../ide/how-to-view-save-and-configure-build-log-files.md).
212176

213177
## <a name="BKMK_releasebuild"></a> Create a Release Build
214178
You can build a version of the sample application that's optimized for shipping it. For the release build, you'll specify that the executable is copied to a network share before the build is kicked off.
@@ -257,13 +221,15 @@ By completing this walkthrough, you'll become more familiar with several option
257221
> [!IMPORTANT]
258222
> A message box might appear, warning you that the network share that you've specified might not be a trusted location. If you trust the location that you've specified, choose the **OK** button in the message box.
259223
260-
6. Build the application.
224+
6. On the **Standard toolbar**, set the Solution Configurations to **Release** and the Solution Platforms to **x86**.
225+
226+
7. Build the application.
261227

262228
![Build Solution command on the Build menu](../ide/media/exploreide-buildsolution.png "ExploreIDE-BuildSolution")
263229

264230
The executable file is copied to the network path that you specified. Its path would be \\\myserver\builds\\*FileName*.exe.
265231

266-
Congratulations: you've successfully completed this walkthrough.
232+
Congratulations: you've successfully completed this walkthrough.
267233

268234
## See Also
269235
[Walkthrough: Building a Project (C++)](/cpp/ide/walkthrough-building-a-project-cpp)

0 commit comments

Comments
 (0)