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/ide/create-portable-custom-editor-options.md
+29-25Lines changed: 29 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,13 @@ ms.reviewer: ""
6
6
ms.suite: ""
7
7
ms.tgt_pltfrm: ""
8
8
ms.topic: "article"
9
-
dev_langs:
10
-
- "VB"
11
-
- "CSharp"
12
-
- "C++"
13
-
- "aspx"
14
9
helpviewer_keywords:
15
10
- "editor"
16
11
ms.assetid:
17
12
caps.latest.revision: 29
18
13
author: "gewarren"
19
14
ms.author: "gewarren"
20
15
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"
35
16
ms.technology:
36
17
- "vs-ide-general"
37
18
---
@@ -88,13 +69,36 @@ Now, when you press the TAB key, you get Tab characters instead of spaces.
88
69
89
70
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.
90
71
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:
92
73
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
Copy file name to clipboardExpand all lines: docs/ide/reference/visual-studio-reference.md
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,6 @@ This section includes user interface reference, language equivalents, and other
45
45
[XML Tools in Visual Studio](../../xml-tools/xml-tools-in-visual-studio.md)
46
46
Contains documents about the XML tools in Visual Studio and provides links to more information.
47
47
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
-
51
48
[MSBuild](../../msbuild/msbuild.md)
52
49
Contains documents about how to use the Microsoft build platform, which is integrated into [!INCLUDE[vsprvs](../../code-quality/includes/vsprvs_md.md)].
Copy file name to clipboardExpand all lines: docs/ide/walkthrough-building-an-application.md
+33-67Lines changed: 33 additions & 67 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Walkthrough: Building an Application | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "11/04/2016"
4
+
ms.date: "09/25/2017"
5
5
ms.reviewer: ""
6
6
ms.suite: ""
7
7
ms.technology:
@@ -13,23 +13,9 @@ caps.latest.revision: 8
13
13
author: "gewarren"
14
14
ms.author: "gewarren"
15
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"
30
16
---
31
17
# 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.
33
19
34
20
This topic contains the following sections:
35
21
@@ -46,43 +32,7 @@ By completing this walkthrough, you'll become more familiar with several option
46
32
[Create a Release Build](../ide/walkthrough-building-an-application.md#BKMK_releasebuild)
47
33
48
34
## <aname="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
-

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
-

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#.
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.
86
36
87
37
## <aname="BKMK_CreateBuildConfig"></a> Create a Custom Build Configuration
88
38
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
2. In the **Active solution configuration** list, choose **New**.
48
+
2. In the **Active solution configuration** list, choose **\<New...\>**.
99
49
100
50
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.
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:
@@ -199,7 +163,7 @@ By completing this walkthrough, you'll become more familiar with several option
199
163
200
164
5. Build the solution, and then review the information in the **Output** window.
201
165
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.
203
167
204
168
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.
205
169
@@ -208,7 +172,7 @@ By completing this walkthrough, you'll become more familiar with several option
208
172
> [!TIP]
209
173
> You can search the contents of the **Output** window if you display the **Find** dialog box by choosing the Ctrl+F keys.
210
174
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).
212
176
213
177
## <aname="BKMK_releasebuild"></a> Create a Release Build
214
178
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
257
221
> [!IMPORTANT]
258
222
> 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.
259
223
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.
261
227
262
228

263
229
264
230
The executable file is copied to the network path that you specified. Its path would be \\\myserver\builds\\*FileName*.exe.
265
231
266
-
Congratulations: you've successfully completed this walkthrough.
232
+
Congratulations: you've successfully completed this walkthrough.
267
233
268
234
## See Also
269
235
[Walkthrough: Building a Project (C++)](/cpp/ide/walkthrough-building-a-project-cpp)
0 commit comments