Skip to content

Commit 37c8711

Browse files
authored
Merge pull request #1579 from MicrosoftDocs/master
3/9 AM Publish
2 parents 3285243 + 8bda16c commit 37c8711

File tree

152 files changed

+3864
-4628
lines changed

Some content is hidden

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

152 files changed

+3864
-4628
lines changed

docs/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"uhfHeaderId": "MSDocsHeader-VisualStudio"
5252
},
5353
"template": [],
54-
"xref": ["missingapi.yml", "../dotnet-xref/_zip/dotnet.zip", "vs.110.zip", "vs.140.zip", "office15.zip"],
54+
"xref": ["missingapi.yml", "../dotnet-xref/_zip/dotnet.zip"],
5555
"dest": "vsdocsdocs"
5656
}
5757
}

docs/extensibility/how-to-diagnose-ui-delays-caused-by-extensions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,7 @@ PerfView has detailed guidance under the Help menu that you can use to identify
153153
* [https://aka.ms/vsthreading](https://aka.ms/vsthreading)
154154
* [https://aka.ms/vsthreadingcookbook](https://aka.ms/vsthreadingcookbook)
155155

156+
You can also use the new Visual Studio static analyzers for extensions (NuGet package [here](https://www.nuget.org/packages/microsoft.visualstudio.sdk.analyzers)), that provide guidance on best practices for writing efficient extensions. See a list of [VS SDK analyzers](https://github.com/Microsoft/VSSDK-Analyzers/blob/master/doc/index.md) and [threading analyzers](https://github.com/Microsoft/vs-threading/blob/master/doc/analyzers/index.md).
157+
156158
> [!NOTE]
157159
> If you are unable to address the unresponsiveness due to dependencies you do not have control over (e.g. if your extension has to call synchronous VS services on the UI thread), we would like to know about it. If you are a member of our Visual Studio Partner program, you can contact us by submitting a developer support request. Otherwise, use the 'Report a Problem' tool to submit your feedback and include `"Extension UI Delay Notifications"` in the title. Please also include a detailed description of your analysis.

docs/install/visual-studio-build-numbers-and-release-dates.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords:
55
author: TerryGLee
66
ms.author: tglee
77
manager: ghogen
8-
ms.date: 03/05/2018
8+
ms.date: 03/08/2018
99
ms.topic: article
1010
helpviewer_keywords:
1111
ms.technology:
@@ -21,6 +21,8 @@ The following table lists the build numbers and release dates for Visual Studio
2121

2222
| **Version**| **Channel** | **Release date** | **Build version** |
2323
| ---------------------- | ----------- | ---------------- | ----------------- |
24+
| 15.6.1 | Release | March 8, 2018 | 15.6.27428.2002 |
25+
| 15.6.1 Preview 1.0 | Preview | March 8, 2018 | 15.6.27428.2002 |
2426
| 15.6.0 | Release | March 5, 2018 | 15.6.27428.1 |
2527
| 15.6.0 Preview 7.0 | Preview | March 2, 2018 | 15.6.27428.1 |
2628
| 15.6.0 Preview 6.0 | Preview | February 23, 2018 | 15.6.27421.1 |

docs/office15.zip

-36.5 KB
Binary file not shown.

docs/python/debugging-python-code-on-remote-linux-machines.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,29 @@ For details on creating a firewall rule for an Azure VM, see [Opening ports to a
4444

4545
1. On the remote computer, create a Python file called `guessing-game.py` with the following code:
4646

47-
```python
48-
import random
49-
50-
guesses_made = 0
51-
name = input('Hello! What is your name?\n')
52-
number = random.randint(1, 20)
53-
print('Well, {0}, I am thinking of a number between 1 and 20.'.format(name))
54-
55-
while guesses_made < 6:
56-
guess = int(input('Take a guess: '))
57-
guesses_made += 1
58-
if guess < number:
59-
print('Your guess is too low.')
60-
if guess > number:
61-
print('Your guess is too high.')
62-
if guess == number:
63-
break
64-
if guess == number:
65-
print('Good job, {0}! You guessed my number in {1} guesses!'.format(name, guesses_made))
66-
else:
67-
print('Nope. The number I was thinking of was {0}'.format(number))
68-
```
69-
47+
```python
48+
import random
49+
50+
guesses_made = 0
51+
name = input('Hello! What is your name?\n')
52+
number = random.randint(1, 20)
53+
print('Well, {0}, I am thinking of a number between 1 and 20.'.format(name))
54+
55+
while guesses_made < 6:
56+
guess = int(input('Take a guess: '))
57+
guesses_made += 1
58+
if guess < number:
59+
print('Your guess is too low.')
60+
if guess > number:
61+
print('Your guess is too high.')
62+
if guess == number:
63+
break
64+
if guess == number:
65+
print('Good job, {0}! You guessed my number in {1} guesses!'.format(name, guesses_made))
66+
else:
67+
print('Nope. The number I was thinking of was {0}'.format(number))
68+
```
69+
7070
1. Install the `ptvsd` package into your environment using `pip3 install ptvsd`. (Note: it's a good idea to record the version of ptvsd that's installed in case you need it for troubleshooting; the [ptvsd listing](https://pypi.python.org/pypi/ptvsd) also shows available versions.)
7171

7272
1. Enable remote debugging by adding the code below at the earliest possible point in `guessing-game.py`, before other code. (Though not a strict requirement, it's impossible to debug any background threads spawned before the `enable_attach` function is called.)
Loading
Loading
Loading
Loading

docs/python/quickstart-02-python-in-visual-studio-project-from-template.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Quickstart - Create a Python project in Visual Studio using a template | Microsoft Docs
33
description: Get started quickly using Python by creating a Visual Studio project using one of the built-in templates.
44
ms.custom:
5-
ms.date: 09/25/2017
5+
ms.date: 03/08/2018
66
ms.reviewer:
77
ms.suite:
88
ms.technology:
@@ -62,22 +62,22 @@ Once you've [installed Python support in Visual Studio 2017](installing-python-s
6262
output += "%04d" % (carry + (total / scale))
6363
carry = total % scale
6464

65-
return output;
65+
return output
6666

6767
def test_py():
68-
digits = 1000;
68+
digits = 1000
6969

7070
start = perf_counter()
71-
output = pi_digits_Python(digits);
72-
elapsed = perf_counter() - start;
71+
output = pi_digits_Python(digits)
72+
elapsed = perf_counter() - start
7373

7474
print("PI to " + str(digits) + " digits in " + str(int(elapsed * 10000)/10000) + " seconds:")
7575

7676
## replace inserts the decimal point
7777
print(output.replace("3", "3.", 1))
7878

7979
if __name__ == "__main__":
80-
test_py();
80+
test_py()
8181
```
8282

8383
1. Run the program by pressing Ctrl+F5 or selecting **Debug > Start Without Debugging** on the menu. The results are displayed in a console window.

docs/python/tutorial-working-with-python-in-visual-studio-step-02-writing-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Although Solution Explorer is where you manage project files, the *editor* windo
7272

7373
```python
7474
import sys
75-
from math import sin, cos, radians
75+
from math import cos, radians
7676
```
7777

7878
> [!Tip]

docs/python/tutorial-working-with-python-in-visual-studio-step-04-debugging.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Working with Python in Visual Studio, Step 4, Debugging | Microsoft Docs
33
description: Step 4 of a core tutorial for working with Python within Visual Studio, covering how to run Python code in the debugger.
44
ms.custom:
5-
ms.date: 01/16/2018
5+
ms.date: 03/08/2018
66
ms.reviewer:
77
ms.suite:
88
ms.technology:
@@ -28,15 +28,14 @@ In addition to managing projects, providing a rich editing experience, and the i
2828
1. Replace the code in the `PythonApplication1.py` file with the following. This variation of the code expands `make_dot_string` so that you can examine its discrete steps in the debugger. It also places the `for` loop into a `main` function and runs it explicitly by calling that function:
2929

3030
```python
31-
import sys
32-
from math import sin, cos, radians
31+
from math import cos, radians
3332

3433
# Create a string with spaces proportional to a cosine of x in degrees
3534
def make_dot_string(x):
3635
rad = radians(x) # cos works with radians
3736
numspaces = int(20 * cos(radians(x)) + 20) # scale to 0-40 spaces
38-
str = ' ' * numspaces + 'o' # place 'o' after the spaces
39-
return str
37+
st = ' ' * numspaces + 'o' # place 'o' after the spaces
38+
return st
4039

4140
def main():
4241
for i in range(0, 1800, 12):

docs/python/tutorial-working-with-python-in-visual-studio-step-05-installing-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ The Python developer community has produced thousands of useful packages that yo
5252
1. Create a new project with **File > New > Project**, selecting the "Python Application" template. In the code file that appears, paste the following code, which creates a cosine wave like the previous tutorial steps, only this time plotted graphically:
5353

5454
```python
55+
from math import radians
5556
import numpy as np # installed with matplotlib
5657
import matplotlib.pyplot as plt
57-
from math import radians
5858

5959
def main():
6060
x = np.arange(0, radians(1800), radians(12))

docs/python/unit-testing-python-in-visual-studio.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ By convention, Visual Studio identifies tests are as methods whose names start w
3939

4040
1. This action creates a `test1.py` file with code that imports the standard `unittest` module, derives a test class from `unittest.TestCase`, and invokes `unittest.main()` if you run the script directly:
4141

42-
```python
43-
import unittest
42+
```python
43+
import unittest
4444

45-
class Test_test1(unittest.TestCase):
46-
def test_A(self):
47-
self.fail("Not implemented")
45+
class Test_test1(unittest.TestCase):
46+
def test_A(self):
47+
self.fail("Not implemented")
4848

49-
if __name__ == '__main__':
50-
unittest.main()
51-
```
49+
if __name__ == '__main__':
50+
unittest.main()
51+
```
5252

5353
1. Save the file if necessary, then open Test Explorer with the **Test > Windows > Test Explorer** menu command.
5454

docs/test/install-third-party-unit-test-frameworks.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,24 @@ Visual Studio Test Explorer can run any unit test framework that has developed a
5252

5353
3. In the **Category** list (labeled as **Showing**), expand the **Tools** node and then choose **Testing**.
5454

55-
4. Choose a framework in the results list to navigate to a Visual Studio Marketplace page for the tool.
56-
57-
## See Also
58-
[Unit Test Your Code](../test/unit-test-your-code.md)
55+
4. Choose a framework in the results list to navigate to a Visual Studio Marketplace page for the tool.
56+
57+
## Update to the latest test adapters
58+
59+
Update to the latest stable test adapter to experience better test discovery and execution. For more information about updates to MSTest, NUnit, and xUnit test adapters, see the [Visual Studio blog](https://blogs.msdn.microsoft.com/visualstudio/2017/11/16/test-experience-improvements/).
60+
61+
### To update to the latest stable test adapter version
62+
63+
1. Open the Nuget Package Manager for your solution by navigating to **Tools > NuGet Package Manager > Manage NuGet Packages for Solution...**
64+
65+
2. Click on the **Updates** tab and search for NUnit or xUnit test adapters that are installed.
66+
67+
3. Select each test adapter, and then select the latest stable version in the drop down menu.
68+
69+
4. Choose the **Install** button.
70+
71+
![Upgrade Test Adapter](media/installadapter-upgrade.png)
72+
73+
## See also
74+
75+
- [Unit Test Your Code](../test/unit-test-your-code.md)
18.2 KB
Loading
31.4 KB
Loading

docs/test/test-explorer-faq.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,16 @@ manager: ghogen
5959

6060
### 8. How does sorting test results work in the hierarchy view?
6161

62-
The hierarchy view sorts tests alphabetically as opposed to by outcome. The other group by settings normally sort test results by outcome and then alphabetically. The different group by options are shown below for comparison. You can provide feedback about the design [in this GitHub issue](https://github.com/Microsoft/vstest/issues/1425).
62+
The hierarchy view sorts tests alphabetically as opposed to by outcome. The other group by settings normally sort test results by outcome and then alphabetically. See the different group by options in the following image for comparison. You can provide feedback about the design [in this GitHub issue](https://github.com/Microsoft/vstest/issues/1425).
6363

6464
![SortingExamples](media/testex-sortingex.png)
6565

66+
### 9. In the hierarchy view, there are passed, failed, skipped, and not run icons next to the Project, Namespace, and Class groupings. What do these icons mean?
67+
68+
The icons next to the Project, Namespace, and Class groupings reflect the state of the tests within that grouping. See the following table.
69+
70+
![Test Explorer Hierarchy Icons](media/testex-hierarchyicons.png)
71+
6672
## Features
6773

6874
### How can I turn on feature flags to try out new testing features?

docs/vs.110.zip

-847 KB
Binary file not shown.

docs/vs.140.zip

-734 KB
Binary file not shown.
Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
11
---
22
title: "Activity Views (Legacy) | Microsoft Docs"
3-
ms.custom: ""
43
ms.date: "11/04/2016"
5-
ms.reviewer: ""
6-
ms.suite: ""
7-
ms.tgt_pltfrm: ""
84
ms.topic: "reference"
95
helpviewer_keywords:
106
- "activities, activity views"
117
- "views, activity"
128
- "activity views"
139
ms.assetid: 83dc68cd-2cb2-45c2-9a6e-10d82053171a
14-
caps.latest.revision: 5
15-
author: "ErikRe"
16-
ms.author: "erikre"
17-
manager: "erikre"
10+
author: gewarren
11+
ms.author: gewarren
12+
manager: ghogen
1813
ms.workload:
1914
- "multiple"
2015
---
2116
# Activity Views (Legacy)
22-
Many of the activities provided by [!INCLUDE[wf](../workflow-designer/includes/wf_md.md)], from which workflows are composed, have several design views available in the legacy [!INCLUDE[wfd1](../workflow-designer/includes/wfd1_md.md)]. When you drag an activity designer from the **Toolbox** onto the design surface, and thereafter whenever you select the activity, you can switch between the different design views by using either the **Workflow** menu or by right-clicking the selected activity. Also, when you move the pointer over the name of a selected activity, a drop-down set of tabs appears that you can use to switch between the different views.
23-
24-
Every activity has at least one view; this is the default view shown when you drag an activity designer from the **Toolbox** onto the design surface. This activity default view is available as the **View [activity type]** option on the menus and tab, for example, **View Parallel**. Most of the activities have additional views and different activities can have different views. For example, the [TransactionScopeActivity](http://go.microsoft.com/fwlink?LinkID=65093) activity has the compensation view and the [EventHandlingScopeActivity](http://go.microsoft.com/fwlink?LinkID=65030) activity has an events view. Many of the activities that come with Windows Workflow Foundation have **View Cancel Handler** and **View Faults** design views to view the [CancellationHandlerActivity](http://go.microsoft.com/fwlink?LinkID=65050) and a [FaultHandlersActivity](http://go.microsoft.com/fwlink?LinkID=65055) associated with them.
25-
26-
The following table lists the name and description of each view.
27-
28-
|Menu/Tab Option|Description|
29-
|----------------------|-----------------|
30-
|**View [activity type]**|Select this menu or tab option to view the default graphical representation of the selected activity.|
31-
|**View Cancel Handler**|Select this menu or tab option view to view the [CancellationHandlerActivity](http://go.microsoft.com/fwlink?LinkID=65050) associated with the selected activity.|
32-
|**View Fault Handler**|Select this menu or tab option view to view the [FaultHandlersActivity](http://go.microsoft.com/fwlink?LinkID=65055) associated with the selected activity.|
33-
|**View Compensation Handler**|Select this menu or tab option view to view the [CompensationHandlerActivity](http://go.microsoft.com/fwlink?LinkID=65053) associated with the selected [TransactionScopeActivity](http://go.microsoft.com/fwlink?LinkID=65093).|
34-
|**View Events Handler**|Select this menu or tab option view to view the [EventHandlersActivity](http://go.microsoft.com/fwlink?LinkID=65018) associated with the selected the [EventHandlingScopeActivity](http://go.microsoft.com/fwlink?LinkID=65030).|
35-
36-
For information about similar views, see [Sequential Workflow Views (Legacy)](../workflow-designer/sequential-workflow-views-legacy.md).
37-
38-
## See Also
39-
[Legacy Workflow Activities](../workflow-designer/legacy-workflow-activities.md)
40-
[Sequential Workflow Views (Legacy)](../workflow-designer/sequential-workflow-views-legacy.md)
17+
Many of the activities provided by [!INCLUDE[wf](../workflow-designer/includes/wf_md.md)], from which workflows are composed, have several design views available in the legacy Windows Workflow Designer. When you drag an activity designer from the **Toolbox** onto the design surface, and thereafter whenever you select the activity, you can switch between the different design views by using either the **Workflow** menu or by right-clicking the selected activity. Also, when you move the pointer over the name of a selected activity, a drop-down set of tabs appears that you can use to switch between the different views.
18+
19+
Every activity has at least one view; this is the default view shown when you drag an activity designer from the **Toolbox** onto the design surface. This activity default view is available as the **View [activity type]** option on the menus and tab, for example, **View Parallel**. Most of the activities have additional views and different activities can have different views. For example, the [TransactionScopeActivity](http://go.microsoft.com/fwlink?LinkID=65093) activity has the compensation view and the [EventHandlingScopeActivity](http://go.microsoft.com/fwlink?LinkID=65030) activity has an events view. Many of the activities that come with Windows Workflow Foundation have **View Cancel Handler** and **View Faults** design views to view the [CancellationHandlerActivity](http://go.microsoft.com/fwlink?LinkID=65050) and a [FaultHandlersActivity](http://go.microsoft.com/fwlink?LinkID=65055) associated with them.
20+
21+
The following table lists the name and description of each view.
22+
23+
|Menu/Tab Option|Description|
24+
|----------------------|-----------------|
25+
|**View [activity type]**|Select this menu or tab option to view the default graphical representation of the selected activity.|
26+
|**View Cancel Handler**|Select this menu or tab option view to view the [CancellationHandlerActivity](http://go.microsoft.com/fwlink?LinkID=65050) associated with the selected activity.|
27+
|**View Fault Handler**|Select this menu or tab option view to view the [FaultHandlersActivity](http://go.microsoft.com/fwlink?LinkID=65055) associated with the selected activity.|
28+
|**View Compensation Handler**|Select this menu or tab option view to view the [CompensationHandlerActivity](http://go.microsoft.com/fwlink?LinkID=65053) associated with the selected [TransactionScopeActivity](http://go.microsoft.com/fwlink?LinkID=65093).|
29+
|**View Events Handler**|Select this menu or tab option view to view the [EventHandlersActivity](http://go.microsoft.com/fwlink?LinkID=65018) associated with the selected the [EventHandlingScopeActivity](http://go.microsoft.com/fwlink?LinkID=65030).|
30+
31+
For information about similar views, see [Sequential Workflow Views (Legacy)](../workflow-designer/sequential-workflow-views-legacy.md).
32+
33+
## See also
34+
35+
- [Legacy Workflow Activities](../workflow-designer/legacy-workflow-activities.md)
36+
- [Sequential Workflow Views (Legacy)](../workflow-designer/sequential-workflow-views-legacy.md)

0 commit comments

Comments
 (0)