Skip to content

Commit 613741f

Browse files
authored
Merge pull request #4442 from MicrosoftDocs/master637111874699470355
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 302a743 + 174c992 commit 613741f

File tree

10 files changed

+274
-318
lines changed

10 files changed

+274
-318
lines changed

docs/sharepoint/creating-sharepoint-solution-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ms.workload:
3131
|-------------------------------|------------------------------------|
3232
|Name|Required. The default name of the package is set to *ProjectName*.|
3333
|Reset WebServer|Optional. Select if you want to restart the Web server after the *.wsp* file is installed on the SharePoint server.|
34-
|Deployment Server Type|Required. By default, the scope is set to ApplicationServer.<br /><br /> ApplicationServer: Describes a server that hosts services.<br /><br /> WebFrontEnd: Describes a server that hosts Web sites.|
34+
|Deployment Server Type|Optional. Represents the type of server hosting the package. If not set this will default to WebFrontEnd.<br /><br /> ApplicationServer: Describes a server that hosts services.<br /><br /> WebFrontEnd: Describes a server that hosts Web sites.|
3535
|Items in the Solution|All SharePoint project items and Features that can be added to the package.|
3636
|Items in the Package|Optional. All SharePoint items and Features that you want to deploy in your package.|
3737

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
>[!NOTE]
2+
> You can also search for templates by typing **SharePoint** in the Search text box at the top of the **Create a New Project** dialog. You can also filter the list of templates to show only the templates for Office and SharePoint by selecting "Office" in the Project type drop-down box. For more information, see [Create a new project in Visual Studio](../../ide/create-new-project.md).

docs/sharepoint/walkthrough-create-a-site-column-content-type-and-list-for-sharepoint.md

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,41 +48,60 @@ ms.workload:
4848
#### To create the project
4949

5050
1. On the [!INCLUDE[vsprvs](../sharepoint/includes/vsprvs-md.md)] **File** menu, choose **New** > **Project**.
51+
::: moniker range="=vs-2017"
52+
2. In the **New Project** dialog box, under either **Visual C#** or **Visual Basic**, expand the **Office/SharePoint** node, and then select **SharePoint Solutions**.
5153

52-
2. In the **New Project** dialog box, under either **Visual C#** or **Visual Basic**, expand the **SharePoint** node, and then choose **2010**.
54+
3. In the **Templates** pane, choose the **SharePoint Empty Project** for the particular version of SharePoint you have installed. For example, if you have SharePoint 2016 install select the **SharePoint 2016 - Empty Project** template.
5355

54-
3. In the **Templates** pane, choose **SharePoint 2010 Project**, change the name of the project to **Clinic**, and then choose the **OK** button.
56+
4. Change the name of the project to **Clinic**, and then choose the **OK** button.
5557

56-
The SharePoint 2010 Project template is an empty project that's used in this example to contain site columns and other project items that are added later.
58+
5. On the **Specify the site and security level for debugging** dialog, enter the URL for the local SharePoint site to which you want to add the new custom field item, or use the default location (`http://<`*SystemName*`>/)`.
5759

58-
4. On the **Specify the site and security level for debugging** page, enter the URL for the local SharePoint site to which you want to add the new custom field item, or use the default location (`http://<`*SystemName*`>/)`.
60+
6. In the **What is the trust level for this SharePoint solution?** section, use the default value **Deploy as a sandboxed solution**.
61+
62+
For more information about sandboxed and farm solutions, see [Sandboxed solution considerations](../sharepoint/sandboxed-solution-considerations.md).
63+
64+
7. Choose the **Finish** button. The project is now listed in **Solution Explorer**.
65+
::: moniker-end
66+
::: moniker range=">=vs-2019"
67+
2. On the **Create a New Project** dialog select the **SharePoint Empty Project** for the particular version of SharePoint you have installed. For example, if you have SharePoint 2016 install select the **SharePoint 2016 - Empty Project** template.
68+
[!INCLUDE[new-project-dialog-search](../sharepoint/includes/new-project-dialog-search-md.md)]
69+
70+
3. Change the name of the project to **Clinic**, and then choose the **Create** button.
71+
72+
4. On the **Specify the site and security level for debugging** dialog, enter the URL for the local SharePoint site to which you want to add the new custom field item, or use the default location (`http://<`*SystemName*`>/)`.
5973

6074
5. In the **What is the trust level for this SharePoint solution?** section, use the default value **Deploy as a sandboxed solution**.
6175

6276
For more information about sandboxed and farm solutions, see [Sandboxed solution considerations](../sharepoint/sandboxed-solution-considerations.md).
6377

6478
6. Choose the **Finish** button. The project is now listed in **Solution Explorer**.
79+
::: moniker-end
6580

6681
#### To add site columns
6782

68-
1. Add a new site column. To do this, in **Solution Explorer**, open the shortcut menu for **Clinic**, and then choose **Add** > **New Item**.
83+
1. Add a new site column. To do this, in **Solution Explorer**, right-click on the **Clinic** project, and then choose **Add** > **New Item**.
6984

70-
2. In the **Add New Item** dialog box, choose **Site Column**, change the name to **Patient Name**, and then choose the **Add** button.
85+
2. In the **Add New Item** dialog box, choose **Site Column**, change the name to **PatientName**, and then choose the **Add** button.
7186

72-
3. In the site column's *Elements.xml* file, leave the **Type** setting as **Text**, and change the **Group** setting to **Clinic Site Columns**. When complete, the site column's *Elements.xml* file should look like the following example.
87+
3. In the site column's *Elements.xml* file, leave the **Type** setting as **Text**, change the **Group** setting to **Clinic Site Columns**. When complete, the site column's *Elements.xml* file should look like the following example.
7388

7489
```xml
7590
<Field
7691
ID="{f9ba60d1-5631-41fb-b016-a38cf48eef63}"
77-
Name="Clinic - Patient Name"
92+
Name="PatientName"
7893
DisplayName="Patient Name"
7994
Type="Text"
8095
Required="FALSE"
8196
Group="Clinic Site Columns">
8297
</Field>
8398
```
8499

85-
4. Using the same procedure, add two more site columns to the project: **Patient ID** (Type = "Integer") and **Doctor Name** (Type = "Text"). Set their Group value to **Clinic Site Columns**.
100+
> [!TIP]
101+
> Visual Studio will automatically add a space in the DisplayName for you if you use camel casing in the name of the Site Column.
102+
> It's recommended not to use spaces in the Site Column name as it may cause issues when you try to deploy the solution to SharePoint.
103+
104+
4. Using the same procedure, add two more site columns to the project: **PatientID** (Type = "Integer") and **DoctorName** (Type = "Text"). Set their Group value to **Clinic Site Columns**.
86105

87106
## Create a custom content type
88107
Next, create a content type—based on the Contacts content type—that includes the site columns that you created in the previous procedure. By basing a content type on an existing content type, you can save time because the base content type provides several site columns for use in the new content type.
@@ -127,11 +146,11 @@ ms.workload:
127146

128147
2. On the menu bar, choose **Project** > **Add New Item**.
129148

130-
3. Under either **Visual C#** or **Visual Basic**, expand the **SharePoint** node, and then choose the **2010** node.
149+
3. Under either **Visual C#** or **Visual Basic**, expand the **SharePoint** node.
131150

132151
4. In the **Templates** pane, choose the **List** template, change the name to **Patients**, and then choose the **Add** button.
133152

134-
5. Leave the **Customize the list based on** setting as **Default (Blank)**, and then choose the **Finish** button.
153+
5. Leave the **Customize the list based on** setting as **Default (Custom List)**, and then choose the **Finish** button.
135154

136155
6. In the List Designer, choose the **Content Types** button to display the **Content Type Settings** dialog box.
137156

@@ -164,7 +183,7 @@ ms.workload:
164183

165184
10. Next to the **Patient ID** and **Patient Name** boxes, select the **Required** check box.
166185

167-
11. On the **Views** tab, choose an empty row to create a view. Enter **Patient Details**.
186+
11. On the **Views** tab, choose an empty row to create a view. Enter **Patient Details** in a blank row under the **View Name** column.
168187

169188
On the **Views** tab, you can specify the columns that you want to appear in the SharePoint list.
170189

docs/vsto/codesnippet/CSharp/Trin_OL_SearchEmail/thisaddin.cs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,25 @@ private void ThisAddIn_Startup(object sender, System.EventArgs e)
2020
private void SearchforEmail(string partialAddress)
2121
{
2222
string contactMessage = string.Empty;
23+
Outlook.ContactItem foundContact;
2324
Outlook.MAPIFolder contacts = (Outlook.MAPIFolder)
2425
this.Application.ActiveExplorer().Session.GetDefaultFolder
2526
(Outlook.OlDefaultFolders.olFolderContacts);
26-
foreach (Outlook.ContactItem foundContact in contacts.Items)
27+
foreach (var contact in contacts.Items)
2728
{
28-
if (foundContact.Email1Address != null)
29+
//The contacts folder may also distribution list so check to make sure we have a ContactItem
30+
if (contact is Outlook.ContactItem)
2931
{
30-
if (foundContact.Email1Address.Contains(partialAddress))
32+
foundContact = contact as Outlook.ContactItem;
33+
if (foundContact.Email1Address != null)
3134
{
32-
contactMessage = contactMessage + "New contact"
33-
+ foundContact.FirstName + " " + foundContact.LastName
34-
+ " Email Address is " + foundContact.Email1Address +
35-
". \n";
35+
if (foundContact.Email1Address.Contains(partialAddress))
36+
{
37+
contactMessage = contactMessage + "New contact"
38+
+ foundContact.FirstName + " " + foundContact.LastName
39+
+ " Email Address is " + foundContact.Email1Address +
40+
". \n";
41+
}
3642
}
3743
}
3844
}

subscriptions/TOC.md

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
# [Visual Studio subscriptions](index.md)
2-
## [What's New](whats-new-in-subscriptions.md)
3-
## Subscriptions
4-
### Buy subscriptions
5-
#### [Retail](https://visualstudio.microsoft.com/vs/pricing)
6-
#### Cloud
7-
##### [Overview](vscloud-overview.md)
8-
##### [Billing FAQ](vscloud-billing-faq.md)
9-
##### [Buying for CSPs](vscloud-csp.md)
10-
#### [Visual Studio with GitHub Enterprise](access-github.md)
11-
#### Microsoft Partner Network
12-
##### [Subscriptions for partners](program-mpn.md)
13-
##### [Manage subscriptions for MPN](manage-mpn-subscriptions.md)
14-
#### [Microsoft for Startups](program-startups.md)
15-
### Sign in
16-
#### [Activate retail subscriptions](activate-store-subscriptions.md)
17-
#### [Sign in with Microsoft Accounts](sign-in-msa.md)
18-
#### [Sign in with work/school accounts](sign-in-work.md)
19-
#### [Sign in with GitHub](sign-in-github.md)
20-
#### [Alternate identities](vs-alternate-identity.md)
21-
#### [Sign in problems](sign-in-issues.md)
22-
#### [Anonymizations of subscriber data](anonymization.md)
23-
### [Subscriptions portal overview](using-the-subscriber-portal.md)
24-
### [Manage your subscriptions](manage-vs-subscriptions.md)
25-
### [Contact your subscriptions administrator](contact-my-admin.md)
26-
### Benefits
27-
#### Tools
28-
##### [Azure DevTest individual credit](vs-azure.md)
29-
##### [Azure DevOps](vs-azure-devops.md)
30-
##### [Azure Pay-As-You-Go](vs-azure-payg.md)
31-
##### [CAST Highlight](vs-cast.md)
32-
##### [CloudPilot](vs-cloudpilot.md)
33-
##### [Enterprise Mobility & Security](vs-ems.md)
34-
##### [Microsoft 365](vs-m365.md)
35-
##### [Office 365 subscription](vs-office365.md)
36-
##### [Parasoft](vs-parasoft.md)
37-
##### [Power BI Pro](vs-pbi.md)
38-
##### [Visual Studio App Center](vs-visual-studio-app-center.md)
39-
##### [Visual Studio IDE](vs-ide-benefit.md)
40-
##### [WhiteSource Bolt](vs-whitesource.md)
41-
##### [Windows Developer Account](vs-windows-dev.md)
42-
#### Professional development
43-
##### [CODE Magazine](vs-code-magazine.md)
44-
##### [DataCamp](vs-datacamp.md)
45-
##### [LinkedIn Learning](vs-linkedin-learning.md)
46-
##### [Pluralsight](vs-pluralsight.md)
47-
#### Support
48-
##### [Azure Community](vs-azure-community.md)
49-
##### [Concierge Support](vs-concierge-chat.md)
50-
##### [Technical Support](vs-tech-support.md)
51-
## Software and keys
52-
### Software downloads
53-
#### [Product availability](product-availability.md)
54-
#### [Download software](download-software.md)
55-
### [List of available software downloads](software-download-list.md)
56-
### Product keys
57-
#### [Product keys overview](product-keys.md)
58-
#### [Find and claim keys](find-keys.md)
59-
#### [Internet demonstrations](internet-demos.md)
60-
## Administrators
61-
### Administrator responsibilities
62-
#### [Administrator responsibilities](admin-responsibilities.md)
63-
#### [Pre-production inventory](admin-inventory.md)
64-
#### [Manage large teams and external contractors](manage-teams.md)
65-
#### [Track user assignments and process orders](assignments-orders.md)
66-
### Accessing the admin portal
67-
#### [Volume License](volume-license.md)
68-
#### [MPSA](mpsa.md)
69-
#### [Cloud subscriptions](cloud-admin.md)
70-
#### [Partners managing for customers](open-migration.md)
71-
#### [Video tutorial: Access the admin portal](https://youtu.be/plSu6fpi7UI)
72-
### Using the admin portal
73-
#### [Super admins and administrators](admin-roles.md)
74-
#### [Set agreement preferences](admin-prefs.md)
75-
#### [Overview](using-admin-portal.md)
76-
#### [Video tutorial: Use the admin portal](https://www.youtube.com/watch?v=XG-E-IDjA-w&list=PLReL099Y5nReJhZ6o8CQFPSBgzGCHX99_&index=3&t=0s)
77-
#### Assign subscriptions
78-
##### [Add single users](assign-license.md)
79-
##### [Add multiple users](assign-license-bulk.md)
80-
#### [Edit subscriptions](edit-license.md)
81-
#### [Delete subscriptions](delete-license.md)
82-
#### [Search for a subscription](search-license.md)
83-
#### [Export subscriptions](exporting-subscriptions.md)
84-
#### [Overallocations](handle-overclaimed-license.md)
85-
#### [Maximum usage](maximum-usage.md)
86-
#### [Expired subscriptions](handle-expired-license.md)
87-
#### [Subscribers using aliases](aliasing.md)
88-
#### [Subscribers with personal email sign-ins](personal-email-sign-ins.md)
89-
#### [Managing Visual Studio with GitHub Enterprise](assign-github.md)
90-
## Resources
91-
### [Visual Studio licensing white paper](https://aka.ms/vslicensing)
92-
### [Compare subscription options and pricing](https://visualstudio.microsoft.com/vs/pricing)
93-
### [Compare Visual Studio IDE features](https://visualstudio.microsoft.com/vs/compare)
94-
### [Visual Studio Administration and Subscriptions Support](https://visualstudio.microsoft.com/support/support-overview-vs)
95-
### [Volume licensing terms](https://www.microsoft.com/licensing/product-licensing/products.aspx)
96-
### [Microsoft Products and Services Agreement (MPSA)](https://www.microsoft.com/licensing/mpsa/default.aspx)
1+
# [Visual Studio subscriptions](index.yml)
2+
# [What's New](whats-new-in-subscriptions.md)
3+
# Subscriptions
4+
## Buy subscriptions
5+
### [Retail](https://visualstudio.microsoft.com/vs/pricing)
6+
### Cloud
7+
#### [Overview](vscloud-overview.md)
8+
#### [Billing FAQ](vscloud-billing-faq.md)
9+
#### [Buying for CSPs](vscloud-csp.md)
10+
### [Visual Studio with GitHub Enterprise](access-github.md)
11+
### Microsoft Partner Network
12+
#### [Subscriptions for partners](program-mpn.md)
13+
#### [Manage subscriptions for MPN](manage-mpn-subscriptions.md)
14+
### [Microsoft for Startups](program-startups.md)
15+
## Sign in
16+
### [Activate retail subscriptions](activate-store-subscriptions.md)
17+
### [Sign in with Microsoft Accounts](sign-in-msa.md)
18+
### [Sign in with work/school accounts](sign-in-work.md)
19+
### [Sign in with GitHub](sign-in-github.md)
20+
### [Alternate identities](vs-alternate-identity.md)
21+
### [Sign in problems](sign-in-issues.md)
22+
### [Anonymizations of subscriber data](anonymization.md)
23+
## [Subscriptions portal overview](using-the-subscriber-portal.md)
24+
## [Manage your subscriptions](manage-vs-subscriptions.md)
25+
## [Contact your subscriptions administrator](contact-my-admin.md)
26+
## Benefits
27+
### Tools
28+
#### [Azure DevTest individual credit](vs-azure.md)
29+
#### [Azure DevOps](vs-azure-devops.md)
30+
#### [Azure Pay-As-You-Go](vs-azure-payg.md)
31+
#### [CAST Highlight](vs-cast.md)
32+
#### [CloudPilot](vs-cloudpilot.md)
33+
#### [Enterprise Mobility & Security](vs-ems.md)
34+
#### [Microsoft 365](vs-m365.md)
35+
#### [Office 365 subscription](vs-office365.md)
36+
#### [Parasoft](vs-parasoft.md)
37+
#### [Power BI Pro](vs-pbi.md)
38+
#### [Visual Studio App Center](vs-visual-studio-app-center.md)
39+
#### [Visual Studio IDE](vs-ide-benefit.md)
40+
#### [WhiteSource Bolt](vs-whitesource.md)
41+
#### [Windows Developer Account](vs-windows-dev.md)
42+
### Professional development
43+
#### [CODE Magazine](vs-code-magazine.md)
44+
#### [DataCamp](vs-datacamp.md)
45+
#### [LinkedIn Learning](vs-linkedin-learning.md)
46+
#### [Pluralsight](vs-pluralsight.md)
47+
### Support
48+
#### [Azure Community](vs-azure-community.md)
49+
#### [Concierge Support](vs-concierge-chat.md)
50+
#### [Technical Support](vs-tech-support.md)
51+
# Software and keys
52+
## Software downloads
53+
### [Product availability](product-availability.md)
54+
### [Download software](download-software.md)
55+
## [List of available software downloads](software-download-list.md)
56+
## Product keys
57+
### [Product keys overview](product-keys.md)
58+
### [Find and claim keys](find-keys.md)
59+
### [Internet demonstrations](internet-demos.md)
60+
# Administrators
61+
## Administrator responsibilities
62+
### [Administrator responsibilities](admin-responsibilities.md)
63+
### [Pre-production inventory](admin-inventory.md)
64+
### [Manage large teams and external contractors](manage-teams.md)
65+
### [Track user assignments and process orders](assignments-orders.md)
66+
## Accessing the admin portal
67+
### [Volume License](volume-license.md)
68+
### [MPSA](mpsa.md)
69+
### [Cloud subscriptions](cloud-admin.md)
70+
### [Partners managing for customers](open-migration.md)
71+
### [Video tutorial: Access the admin portal](https://youtu.be/plSu6fpi7UI)
72+
## Using the admin portal
73+
### [Super admins and administrators](admin-roles.md)
74+
### [Set agreement preferences](admin-prefs.md)
75+
### [Overview](using-admin-portal.md)
76+
### [Video tutorial: Use the admin portal](https://www.youtube.com/watch?v=XG-E-IDjA-w&list=PLReL099Y5nReJhZ6o8CQFPSBgzGCHX99_&index=3&t=0s)
77+
### Assign subscriptions
78+
#### [Add single users](assign-license.md)
79+
#### [Add multiple users](assign-license-bulk.md)
80+
### [Edit subscriptions](edit-license.md)
81+
### [Delete subscriptions](delete-license.md)
82+
### [Search for a subscription](search-license.md)
83+
### [Export subscriptions](exporting-subscriptions.md)
84+
### [Overallocations](handle-overclaimed-license.md)
85+
### [Maximum usage](maximum-usage.md)
86+
### [Expired subscriptions](handle-expired-license.md)
87+
### [Subscribers using aliases](aliasing.md)
88+
### [Subscribers with personal email sign-ins](personal-email-sign-ins.md)
89+
### [Managing Visual Studio with GitHub Enterprise](assign-github.md)
90+
# Resources
91+
## [Visual Studio licensing white paper](https://aka.ms/vslicensing)
92+
## [Compare subscription options and pricing](https://visualstudio.microsoft.com/vs/pricing)
93+
## [Compare Visual Studio IDE features](https://visualstudio.microsoft.com/vs/compare)
94+
## [Visual Studio Administration and Subscriptions Support](https://visualstudio.microsoft.com/support/support-overview-vs)
95+
## [Volume licensing terms](https://www.microsoft.com/licensing/product-licensing/products.aspx)
96+
## [Microsoft Products and Services Agreement (MPSA)](https://www.microsoft.com/licensing/mpsa/default.aspx)

subscriptions/_breadcrumb/toc.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
- name: Docs
22
tocHref: /
3-
topicHref: /
3+
topicHref: /
4+
items:
5+
- name: Visual Studio
6+
tocHref: /visualstudio/products/
7+
topicHref: /visualstudio/products
8+
items:
9+
- name: Subscriptions
10+
tocHref: /visualstudio/subscriptions/
11+
topicHref: /visualstudio/subscriptions

subscriptions/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"feedback_system": "GitHub",
3535
"feedback_github_repo": "MicrosoftDocs/visualstudio-docs",
3636
"feedback_product_url": "https://developercommunity.visualstudio.com/",
37-
"breadcrumb_path": "~/_breadcrumb/toc.yml",
37+
"breadcrumb_path": "/visualstudio/subscriptions/_breadcrumb/toc.json",
3838
"extendBreadcrumb": true,
3939
"manager": "lank",
4040
"ms.topic": "conceptual",

0 commit comments

Comments
 (0)