Skip to content

Commit 45d401e

Browse files
authored
Update how-to-add-or-remove-imported-namespaces-visual-basic.md
1 parent 0cd9256 commit 45d401e

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

docs/ide/how-to-add-or-remove-imported-namespaces-visual-basic.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Imported namespaces are managed on the **References** page of the **Project Desi
2222

2323
### To add an imported namespace
2424

25-
1. In **Solution Explorer**, right-click the project node and select **Properties**.
25+
1. In **Solution Explorer**, right-click the project node and select **Properties**, or press **Alt**+**Enter**.
2626

2727
2. In the **Project Designer**, go to **References**.
2828

@@ -33,7 +33,7 @@ Imported namespaces are managed on the **References** page of the **Project Desi
3333
3434
### To remove an imported namespace
3535

36-
1. In **Solution Explorer**, right-click the project node, and select **Properties**.
36+
1. In **Solution Explorer**, right-click the project node, and select **Properties**, or press **Alt**+**Enter**.
3737

3838
2. In the **Project Designer**, go to **References**.
3939

@@ -46,9 +46,9 @@ If you later change you mind and decide that was really the `EventLog` class tha
4646

4747
### To add a user import
4848

49-
1. In **Solution Explorer**, double-click the **My Project** node for the project.
49+
1. In **Solution Explorer**, right-click the project node, and select **Properties**, or press **Alt**+**Enter**.
5050

51-
2. In the **Project Designer**, click the **References** tab.
51+
2. In the **Project Designer**, go to **References**.
5252

5353
3. In the text box below the **Imported Namespaces** list, enter the full name for the namespace you wish to import, including the root namespace.
5454

@@ -59,16 +59,31 @@ If you later change you mind and decide that was really the `EventLog` class tha
5959
6060
### To update a user import
6161

62-
1. In **Solution Explorer**, double-click the **My Project** node for the project.
62+
1. In **Solution Explorer**, right-click the project node, and select **Properties**, or press **Alt**+**Enter**.
6363

64-
2. In the **Project Designer**, click the **References** tab.
64+
2. In the **Project Designer**, go to **References**.
6565

6666
3. In the **Imported Namespaces** list, select the namespace you wish to change.
6767

6868
4. In the text box below the **Imported Namespaces** list, enter the name for the new namespace.
6969

7070
5. Click the **Update user import** button to update the namespace in the **Imported Namespaces** list.
7171

72+
## In the project file
73+
74+
As you make changes in the Project Designer, the project file is updated to reflect your changes. The imported namespaces appear in the project file as shown in the following code:
75+
76+
```xml
77+
<ItemGroup>
78+
<Import Include="Newtonsoft.Json" />
79+
<Import Include="System.Collections.Specialized" />
80+
<Import Include="System.ComponentModel" />
81+
<Import Include="System.Web" />
82+
<Import Include="System.Windows.Markup" />
83+
<Import Include="System.Xml" />
84+
</ItemGroup>
85+
```
86+
7287
## Related content
7388

7489
- [Manage references in a project](../ide/managing-references-in-a-project.md)

0 commit comments

Comments
 (0)