From cece22cb2d7119f522afdafe466139db34ebc176 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 8 Jul 2020 11:24:30 +0200 Subject: [PATCH 01/35] namespace change --- Commands/Admin/AddHubSiteAssociation.cs | 8 +- Commands/Admin/AddMicrosoft365GroupToSite.cs | 8 +- Commands/Admin/AddOrgAssetsLibrary.cs | 6 +- Commands/Admin/AddOrgNewsSite.cs | 8 +- Commands/Admin/AddSiteCollectionAppCatalog.cs | 8 +- Commands/Admin/AddTenantCdnOrigin.cs | 8 +- Commands/Admin/AddTenantTheme.cs | 10 +-- Commands/Admin/ClearTenantAppCatalogUrl.cs | 6 +- Commands/Admin/GetHideDefaultThemes.cs | 12 +-- Commands/Admin/GetHomeSite.cs | 6 +- Commands/Admin/GetHubSite.cs | 8 +- Commands/Admin/GetHubSiteChild.cs | 10 +-- Commands/Admin/GetKnowledgeHubSite.cs | 6 +- Commands/Admin/GetOrgAssetsLibrary.cs | 6 +- Commands/Admin/GetOrgNewsSite.cs | 6 +- Commands/Admin/GetStorageEntity.cs | 8 +- Commands/Admin/GetTenant.cs | 8 +- Commands/Admin/GetTenantAppCatalogUrl.cs | 4 +- Commands/Admin/GetTenantCdnEnabled.cs | 10 +-- Commands/Admin/GetTenantCdnOrigin.cs | 8 +- Commands/Admin/GetTenantCdnPolicies.cs | 10 +-- Commands/Admin/GetTenantId.cs | 6 +- Commands/Admin/GetTenantSite.cs | 8 +- .../Admin/GetTenantSyncClientRestriction.cs | 8 +- Commands/Admin/GetTenantTheme.cs | 10 +-- Commands/Admin/GetTimeZoneId.cs | 4 +- Commands/Admin/GetWebTemplates.cs | 6 +- Commands/Admin/GrantHubSiteRights.cs | 8 +- Commands/Admin/NewSite.cs | 10 +-- Commands/Admin/NewTenantSite.cs | 8 +- Commands/Admin/RegisterAppCatalogSite.cs | 6 +- Commands/Admin/RegisterHubSite.cs | 8 +- Commands/Admin/RemoveHomeSite.cs | 6 +- Commands/Admin/RemoveHubSiteAssociation.cs | 8 +- Commands/Admin/RemoveKnowledgeHubSite.cs | 6 +- Commands/Admin/RemoveOrgAssetsLibrary.cs | 6 +- Commands/Admin/RemoveOrgNewsSite.cs | 8 +- .../Admin/RemoveSiteCollectionAppCatalog.cs | 8 +- Commands/Admin/RemoveStorageEntity.cs | 8 +- Commands/Admin/RemoveTenantCdnOrigin.cs | 8 +- Commands/Admin/RemoveTenantSite.cs | 8 +- Commands/Admin/RemoveTenantTheme.cs | 10 +-- Commands/Admin/RevokeHubSiteRights.cs | 8 +- Commands/Admin/SetHideDefaultThemes.cs | 12 +-- Commands/Admin/SetHomeSite.cs | 6 +- Commands/Admin/SetHubSite.cs | 8 +- Commands/Admin/SetKnowledgeHubSite.cs | 6 +- Commands/Admin/SetStorageEntity.cs | 8 +- Commands/Admin/SetTenant.cs | 6 +- Commands/Admin/SetTenantAppCatalogUrl.cs | 6 +- Commands/Admin/SetTenantCdnEnabled.cs | 10 +-- Commands/Admin/SetTenantCdnPolicy.cs | 10 +-- Commands/Admin/SetTenantSite.cs | 6 +- .../Admin/SetTenantSyncClientRestriction.cs | 10 +-- Commands/Admin/UnregisterHubSite.cs | 8 +- Commands/Apps/AddApp.cs | 6 +- Commands/Apps/AddApplicationCustomizer.cs | 8 +- ...TenantServicePrincipalPermissionRequest.cs | 10 +-- ...TenantServicePrincipalPermissionRequest.cs | 8 +- .../Apps/DisableTenantServicePrincipal.cs | 6 +- Commands/Apps/EnableTenantServicePrincipal.cs | 6 +- Commands/Apps/GetApp.cs | 8 +- Commands/Apps/GetAppInstance.cs | 6 +- Commands/Apps/GetApplicationCustomizer.cs | 8 +- Commands/Apps/GetTenantServicePrincipal.cs | 6 +- ...tTenantServicePrincipalPermissionGrants.cs | 8 +- ...enantServicePrincipalPermissionRequests.cs | 6 +- .../GrantTenantServicePrincipalPermission.cs | 10 +-- Commands/Apps/ImportAppPackage.cs | 4 +- Commands/Apps/InstallApp.cs | 6 +- Commands/Apps/PublishApp.cs | 6 +- Commands/Apps/RemoveApp.cs | 6 +- Commands/Apps/RemoveApplicationCustomizer.cs | 10 +-- .../RevokeTenantServicePrincipalPermission.cs | 6 +- Commands/Apps/SetApplicationCustomizer.cs | 8 +- Commands/Apps/SyncAppToTeams.cs | 6 +- Commands/Apps/UninstallApp.cs | 6 +- Commands/Apps/UninstallAppInstance.cs | 6 +- Commands/Apps/UnpublishApp.cs | 6 +- Commands/Apps/UpdateApp.cs | 6 +- Commands/Base/AddStoredCredential.cs | 6 +- Commands/Base/BasePSCmdlet.cs | 2 +- Commands/Base/ConnectOnline.cs | 16 ++-- Commands/Base/Constants.cs | 2 +- Commands/Base/DisablePowerShellTelemetry.cs | 4 +- Commands/Base/DisconnectOnline.cs | 6 +- Commands/Base/EnablePowerShellTelemetry.cs | 4 +- Commands/Base/GetAccessToken.cs | 4 +- Commands/Base/GetAppAuthAccessToken.cs | 6 +- Commands/Base/GetAuthenticationRealm.cs | 4 +- Commands/Base/GetAzureCertificate.cs | 6 +- Commands/Base/GetConnection.cs | 6 +- Commands/Base/GetContext.cs | 6 +- Commands/Base/GetException.cs | 6 +- Commands/Base/GetHealthScore.cs | 4 +- .../Base/GetPowerShellTelemetryEnabled.cs | 4 +- Commands/Base/GetProperty.cs | 4 +- Commands/Base/GetStoredCredential.cs | 6 +- .../InitializePowerShellAuthentication.cs | 10 +-- Commands/Base/InvokeQuery.cs | 4 +- Commands/Base/InvokeSPRestMethod.cs | 6 +- Commands/Base/NewAzureCertificate.cs | 6 +- Commands/Base/PipeBinds/AlertPipeBind.cs | 2 +- .../Base/PipeBinds/AppMetadataPipeBind.cs | 2 +- Commands/Base/PipeBinds/AppPipeBind.cs | 2 +- .../PipeBinds/ApplyConfigurationPipeBind.cs | 2 +- .../PipeBinds/ClientSideComponentPipeBind.cs | 4 +- .../Base/PipeBinds/ClientSidePagePipeBind.cs | 4 +- .../PipeBinds/ClientSideWebPartPipeBind.cs | 2 +- .../Base/PipeBinds/ContentTypePipeBind.cs | 2 +- Commands/Base/PipeBinds/CredentialPipeBind.cs | 4 +- .../PipeBinds/DiagnosticEndpointPipeBind.cs | 2 +- .../Base/PipeBinds/DocumentSetPipeBind.cs | 2 +- .../Base/PipeBinds/EventReceiverPipeBind.cs | 2 +- .../PipeBinds/ExtractConfigurationPipeBind.cs | 2 +- Commands/Base/PipeBinds/FeaturePipeBind.cs | 2 +- Commands/Base/PipeBinds/FieldPipeBind.cs | 2 +- Commands/Base/PipeBinds/FolderPipeBind.cs | 2 +- .../PipeBinds/GenericObjectNameIdPipeBind.cs | 4 +- .../PipeBinds/GenericPropertiesPipeBind.cs | 2 +- .../PipeBinds/GraphSubscriptionPipeBind.cs | 2 +- Commands/Base/PipeBinds/GroupPipeBind.cs | 2 +- Commands/Base/PipeBinds/GuidPipeBind.cs | 2 +- Commands/Base/PipeBinds/HubSitePipeBind.cs | 4 +- .../Base/PipeBinds/ImageRenditionPipeBind.cs | 2 +- Commands/Base/PipeBinds/ListItemPipeBind.cs | 2 +- Commands/Base/PipeBinds/ListPipeBind.cs | 2 +- .../PipeBinds/Microsoft365GroupPipeBind.cs | 2 +- .../Base/PipeBinds/NavigationNodePipeBind.cs | 2 +- Commands/Base/PipeBinds/PagePipeBind.cs | 4 +- .../ProvisioningHierarchyPipeBind.cs | 4 +- .../PipeBinds/ProvisioningSequencePipebind.cs | 2 +- .../PipeBinds/ProvisioningSitePipeBind.cs | 2 +- .../PipeBinds/ProvisioningTemplatePipeBind.cs | 4 +- .../Base/PipeBinds/RecycleBinItemPipeBind.cs | 2 +- .../Base/PipeBinds/RoleDefinitionPipeBind.cs | 2 +- Commands/Base/PipeBinds/SitePipeBind.cs | 2 +- .../Base/PipeBinds/TaxonomyItemPipeBind.cs | 4 +- Commands/Base/PipeBinds/TeamsAppPipeBind.cs | 6 +- .../Base/PipeBinds/TeamsChannelPipeBind.cs | 6 +- Commands/Base/PipeBinds/TeamsTabPipeBind.cs | 6 +- Commands/Base/PipeBinds/TeamsTeamPipeBind.cs | 6 +- .../PipeBinds/TenantSiteDesignPipeBind.cs | 2 +- .../PipeBinds/TenantSiteDesignTaskPipeBind.cs | 2 +- .../PipeBinds/TenantSiteScriptPipeBind.cs | 2 +- Commands/Base/PipeBinds/TermGroupPipeBind.cs | 4 +- .../Base/PipeBinds/ThemePalettePipeBind.cs | 2 +- Commands/Base/PipeBinds/ThemePipeBind.cs | 4 +- .../PipeBinds/UserCustomActionPipeBind.cs | 2 +- Commands/Base/PipeBinds/UserPipeBind.cs | 2 +- Commands/Base/PipeBinds/ViewPipeBind.cs | 2 +- Commands/Base/PipeBinds/WebPartPipeBind.cs | 2 +- Commands/Base/PipeBinds/WebPipeBind.cs | 2 +- .../PipeBinds/WebhookSubscriptionPipeBind.cs | 2 +- .../PipeBinds/WorkflowDefinitionPipeBind.cs | 2 +- .../PipeBinds/WorkflowInstancePipeBind.cs | 2 +- .../PipeBinds/WorkflowSubscriptionPipeBind.cs | 2 +- Commands/Base/PnPAdminCmdlet.cs | 6 +- Commands/Base/PnPAzureADConnection.cs | 2 +- Commands/Base/PnPConnectedCmdlet.cs | 4 +- Commands/Base/PnPConnection.cs | 8 +- Commands/Base/PnPConnectionHelper.cs | 12 +-- Commands/Base/PnPGraphCmdlet.cs | 10 +-- Commands/Base/PnPOfficeManagementApiCmdlet.cs | 10 +-- Commands/Base/PnPRetrievalsCmdlet.cs | 8 +- Commands/Base/PnPSharePointCmdlet.cs | 8 +- Commands/Base/PnPWebCmdlet.cs | 10 +-- Commands/Base/PnPWebRetrievalsCmdlet.cs | 10 +-- Commands/Base/PropertyLoadingAttribute.cs | 2 +- Commands/Base/RemoveStoredCredential.cs | 4 +- Commands/Base/RequestAccessToken.cs | 6 +- Commands/Base/SetContext.cs | 4 +- Commands/Base/SetTraceLog.cs | 4 +- Commands/Base/TokenHandling.cs | 2 +- Commands/Branding/AddCustomAction.cs | 8 +- Commands/Branding/AddJavaScriptBlock.cs | 6 +- Commands/Branding/AddJavaScriptLink.cs | 6 +- Commands/Branding/DisableResponsiveUI.cs | 4 +- Commands/Branding/EnableResponsiveUI.cs | 4 +- Commands/Branding/GetCustomAction.cs | 8 +- Commands/Branding/GetFooter.cs | 4 +- Commands/Branding/GetHomepage.cs | 4 +- Commands/Branding/GetJavaScriptLink.cs | 6 +- Commands/Branding/GetMasterPage.cs | 4 +- Commands/Branding/GetTheme.cs | 4 +- Commands/Branding/RemoveCustomAction.cs | 10 +-- Commands/Branding/RemoveJavaScriptLink.cs | 10 +-- Commands/Branding/SetFooter.cs | 4 +- Commands/Branding/SetHomepage.cs | 4 +- Commands/Branding/SetMasterPage.cs | 4 +- .../Branding/SetMinimalDownloadStrategy.cs | 4 +- Commands/Branding/SetTheme.cs | 4 +- Commands/Branding/SetWebTheme.cs | 8 +- Commands/ClientSidePages/AddClientSidePage.cs | 6 +- .../AddClientSidePageSection.cs | 6 +- Commands/ClientSidePages/AddClientSideText.cs | 6 +- .../ClientSidePageTransformatorLogType.cs | 2 +- .../ClientSidePageUtilities.cs | 2 +- .../ConvertToClientSidePage.cs | 10 +-- .../ClientSidePages/ExportClientSidePage.cs | 8 +- .../ExportClientSidePageMapping.cs | 8 +- .../GetAvailableClientSideComponents.cs | 6 +- .../ClientSidePages/GetClientSideComponent.cs | 6 +- Commands/ClientSidePages/GetClientSidePage.cs | 6 +- .../MoveClientSideComponent.cs | 6 +- .../RemoveClientSideComponent.cs | 6 +- .../ClientSidePages/RemoveClientSidePage.cs | 8 +- .../SaveClientSidePageConversionLog.cs | 4 +- Commands/ClientSidePages/SetClientSidePage.cs | 6 +- Commands/ClientSidePages/SetClientSideText.cs | 6 +- .../ClientSidePages/SetClientSideWebPart.cs | 6 +- Commands/ContentTypes/AddContentType.cs | 4 +- Commands/ContentTypes/AddContentTypeToList.cs | 6 +- .../ContentTypes/AddFieldToContentType.cs | 6 +- Commands/ContentTypes/GetContentType.cs | 8 +- .../GetContentTypePublishingHubUrl.cs | 4 +- Commands/ContentTypes/RemoveContentType.cs | 8 +- .../ContentTypes/RemoveContentTypeFromList.cs | 6 +- .../RemoveFieldFromContentType.cs | 6 +- .../SetDefaultContentTypeToList.cs | 6 +- Commands/Diagnostic/FolderStatistics.cs | 2 +- Commands/Diagnostic/ListStatistics.cs | 2 +- Commands/Diagnostic/MeasurePnPList.cs | 8 +- Commands/Diagnostic/MeasurePnPWeb.cs | 8 +- Commands/Diagnostic/MeasureResponseTime.cs | 6 +- .../Diagnostic/MeasureResponseTimeMode.cs | 2 +- Commands/Diagnostic/ResponseTimeStatistics.cs | 2 +- Commands/Diagnostic/WebStatistics.cs | 2 +- .../AddContentTypeToDocumentSet.cs | 6 +- Commands/DocumentSets/AddDocumentSet.cs | 6 +- .../DocumentSets/GetDocumentSetTemplate.cs | 8 +- .../RemoveContentTypeFromDocumentSet.cs | 6 +- Commands/DocumentSets/SetDocumentSetField.cs | 6 +- Commands/Enums/AlertFilter.cs | 2 +- Commands/Enums/AssociatedGroupType.cs | 2 +- Commands/Enums/AuditContentType.cs | 2 +- Commands/Enums/CdnType.cs | 2 +- Commands/Enums/ClientSidePagePromoteType.cs | 2 +- Commands/Enums/ConnectionType.cs | 2 +- Commands/Enums/CredentialType.cs | 2 +- Commands/Enums/CustomActionScope.cs | 2 +- Commands/Enums/DocumentSetFieldScope.cs | 2 +- Commands/Enums/Encoding.cs | 2 +- Commands/Enums/FeatureScope.cs | 2 +- Commands/Enums/GrooveBlockOption.cs | 2 +- Commands/Enums/HttpRequestMethod.cs | 2 +- Commands/Enums/InitializationType.cs | 2 +- Commands/Enums/ListItemUpdateType.cs | 2 +- Commands/Enums/NavigationNodeTypeEnum.cs | 2 +- Commands/Enums/Office365Workload.cs | 2 +- Commands/Enums/SearchBoxInNavBar.cs | 2 +- Commands/Enums/SearchConfigurationScope.cs | 2 +- Commands/Enums/SearchSettingsScope.cs | 2 +- Commands/Enums/SiteType.cs | 2 +- Commands/Enums/SiteWebTemplate.cs | 2 +- Commands/Enums/StorageEntityScope.cs | 2 +- Commands/Enums/TargetScope.cs | 2 +- Commands/Enums/TokenAudience.cs | 2 +- Commands/Events/AddEventReceiver.cs | 6 +- Commands/Events/GetEventReceiver.cs | 6 +- Commands/Events/RemoveEventReceiver.cs | 6 +- .../NewExtensibilityHandlerObject.cs | 4 +- Commands/Extensions/ClientExtensions.cs | 2 +- Commands/Extensions/ClientObjectExtensions.cs | 2 +- Commands/Extensions/WebExtensions.cs | 2 +- Commands/Features/DisableFeature.cs | 8 +- Commands/Features/EnableFeature.cs | 8 +- Commands/Features/GetFeature.cs | 10 +-- Commands/Fields/AddField.cs | 6 +- Commands/Fields/AddFieldFromXml.cs | 6 +- Commands/Fields/AddTaxonomyField.cs | 6 +- Commands/Fields/GetField.cs | 8 +- Commands/Fields/RemoveField.cs | 6 +- Commands/Fields/SetField.cs | 6 +- Commands/Files/AddFile.cs | 10 +-- Commands/Files/AddFolder.cs | 4 +- Commands/Files/CopyFile.cs | 6 +- Commands/Files/FindFile.cs | 6 +- Commands/Files/GetFile.cs | 4 +- Commands/Files/GetFolder.cs | 6 +- Commands/Files/GetFolderItem.cs | 6 +- Commands/Files/MoveFile.cs | 6 +- Commands/Files/MoveFolder.cs | 4 +- Commands/Files/RemoveFile.cs | 6 +- Commands/Files/RemoveFolder.cs | 6 +- Commands/Files/RenameFile.cs | 6 +- Commands/Files/RenameFolder.cs | 4 +- Commands/Files/ResetFileVersion.cs | 4 +- Commands/Files/ResolveFolder.cs | 4 +- Commands/Files/SetFileCheckedIn.cs | 4 +- Commands/Files/SetFileCheckedOut.cs | 4 +- Commands/Files/SetFolderPermission.cs | 6 +- Commands/Graph/AddMicrosoft365GroupMember.cs | 8 +- Commands/Graph/AddSiteClassification.cs | 6 +- .../Graph/ClearMicrosoft365GroupMember.cs | 8 +- Commands/Graph/ClearMicrosoft365GroupOwner.cs | 8 +- Commands/Graph/DisableSiteClassification.cs | 6 +- Commands/Graph/EnableSiteClassification.cs | 6 +- Commands/Graph/GetAADUser.cs | 6 +- Commands/Graph/GetDeletedMicrosoft365Group.cs | 8 +- Commands/Graph/GetGraphAccessToken.cs | 4 +- Commands/Graph/GetGraphSubscription.cs | 6 +- Commands/Graph/GetMicrosoft365Group.cs | 8 +- Commands/Graph/GetMicrosoft365GroupMembers.cs | 8 +- Commands/Graph/GetMicrosoft365GroupOwners.cs | 8 +- Commands/Graph/GetSiteClassification.cs | 6 +- Commands/Graph/NewGraphSubscription.cs | 6 +- Commands/Graph/NewMicrosoft365Group.cs | 8 +- .../Graph/RemoveDeletedMicrosoft365Group.cs | 8 +- Commands/Graph/RemoveGraphSubscription.cs | 8 +- Commands/Graph/RemoveMicrosoft365Group.cs | 8 +- .../Graph/RemoveMicrosoft365GroupMember.cs | 8 +- .../Graph/RemoveMicrosoft365GroupOwner.cs | 8 +- Commands/Graph/RemoveSiteClassification.cs | 6 +- .../Graph/ResetMicrosoft365GroupExpiration.cs | 8 +- .../Graph/RestoreDeletedMicrosoft365Group.cs | 8 +- Commands/Graph/SetGraphSubscription.cs | 8 +- Commands/Graph/SetMicrosoft365Group.cs | 8 +- Commands/Graph/UpdateSiteClassification.cs | 6 +- .../InformationManagement/ClosureState.cs | 2 +- Commands/InformationManagement/GetLabel.cs | 6 +- .../GetListInformationRightsManagement.cs | 6 +- .../InformationManagement/GetSiteClosure.cs | 4 +- .../InformationManagement/GetSitePolicy.cs | 4 +- Commands/InformationManagement/ResetLabel.cs | 6 +- Commands/InformationManagement/SetLabel.cs | 6 +- .../SetListInformationRightsManagement.cs | 6 +- .../InformationManagement/SetSiteClosure.cs | 4 +- .../InformationManagement/SetSitePolicy.cs | 4 +- Commands/InvokeAction/InvokeWebAction.cs | 6 +- .../InvokeAction/InvokeWebActionParameter.cs | 2 +- .../InvokeAction/InvokeWebActionResult.cs | 2 +- Commands/Lists/AddListItem.cs | 10 +-- Commands/Lists/AddView.cs | 6 +- Commands/Lists/ClearDefaultColumnValues.cs | 6 +- Commands/Lists/GetDefaultColumnValues.cs | 6 +- Commands/Lists/GetList.cs | 8 +- Commands/Lists/GetListItem.cs | 6 +- Commands/Lists/GetView.cs | 8 +- Commands/Lists/MoveListItemToRecycleBin.cs | 6 +- Commands/Lists/NewList.cs | 4 +- Commands/Lists/RemoveList.cs | 6 +- Commands/Lists/RemoveListItem.cs | 8 +- Commands/Lists/RemoveView.cs | 6 +- Commands/Lists/RequestReIndexList.cs | 6 +- Commands/Lists/SetDefaultColumnValues.cs | 6 +- Commands/Lists/SetList.cs | 6 +- Commands/Lists/SetListItem.cs | 10 +-- Commands/Lists/SetListItemPermission.cs | 6 +- Commands/Lists/SetListPermission.cs | 6 +- Commands/Lists/SetView.cs | 6 +- .../GetManagementApiAccessToken.cs | 8 +- .../GetOffice365CurrentServiceStatus.cs | 8 +- .../GetOffice365HistoricalServiceStatus.cs | 8 +- .../GetOffice365ServiceMessage.cs | 8 +- .../ManagementApi/GetOffice365Services.cs | 8 +- .../GetOfficeManagementApiAccessToken.cs | 6 +- Commands/ManagementApi/GetUnifiedAuditLog.cs | 8 +- Commands/Model/AzureApp.cs | 2 +- Commands/Model/ConnectionMethod.cs | 2 +- Commands/Model/GenericToken.cs | 4 +- Commands/Model/GraphToken.cs | 6 +- Commands/Model/ManagementApiFeature.cs | 2 +- Commands/Model/ManagementApiFeatureStatus.cs | 2 +- Commands/Model/ManagementApiService.cs | 2 +- Commands/Model/ManagementApiServiceMessage.cs | 2 +- .../Model/ManagementApiServiceMessageText.cs | 2 +- Commands/Model/ManagementApiServiceStatus.cs | 2 +- Commands/Model/ManagementApiSubscription.cs | 2 +- .../Model/ManagementApiSubscriptionContent.cs | 2 +- .../Model/ManagementApiUnifiedLogRecord.cs | 2 +- ...nagementApiUnifiedLogRecordKeyValuePair.cs | 2 +- Commands/Model/OfficeManagementApiToken.cs | 2 +- Commands/Model/PnPException.cs | 2 +- Commands/Model/ProvisionedSite.cs | 2 +- Commands/Model/ResponseCollection.cs | 2 +- Commands/Model/SPOPublicCdnOrigin.cs | 2 +- Commands/Model/SPOTenant.cs | 2 +- .../Model/SPOTenantSyncClientRestriction.cs | 2 +- Commands/Model/SPOTheme.cs | 2 +- .../Model/ServicePrincipalPermissionGrant.cs | 2 +- Commands/Model/SharePointToken.cs | 2 +- Commands/Model/Teams/GraphException.cs | 2 +- Commands/Model/Teams/Group.cs | 2 +- Commands/Model/Teams/Team.cs | 2 +- Commands/Model/Teams/TeamApp.cs | 2 +- Commands/Model/Teams/TeamAppInstance.cs | 2 +- Commands/Model/Teams/TeamChannel.cs | 2 +- Commands/Model/Teams/TeamChannelMessage.cs | 2 +- Commands/Model/Teams/TeamChannelType.cs | 2 +- Commands/Model/Teams/TeamDiscoverySettings.cs | 2 +- Commands/Model/Teams/TeamFunSettings.cs | 2 +- Commands/Model/Teams/TeamGuestSettings.cs | 2 +- Commands/Model/Teams/TeamMemberSettings.cs | 2 +- Commands/Model/Teams/TeamMessagingSettings.cs | 2 +- Commands/Model/Teams/TeamSecurity.cs | 2 +- Commands/Model/Teams/TeamSecurityUser.cs | 2 +- Commands/Model/Teams/TeamSettings.cs | 2 +- Commands/Model/Teams/TeamTab.cs | 2 +- Commands/Model/Teams/TeamTabConfiguration.cs | 2 +- Commands/Model/Teams/TeamTabResource.cs | 2 +- Commands/Model/Teams/TeamTabType.cs | 2 +- Commands/Model/Teams/User.cs | 2 +- ...nP.PowerShell.2013.Commands.Format.ps1xml} | 4 +- ...nP.PowerShell.2016.Commands.Format.ps1xml} | 4 +- ...nP.PowerShell.2019.Commands.Format.ps1xml} | 4 +- ....PowerShell.Online.Commands.Format.ps1xml} | 16 ++-- Commands/Navigation/AddNavigationNode.cs | 4 +- Commands/Navigation/GetNavigationNode.cs | 4 +- Commands/Navigation/RemoveNavigationNode.cs | 8 +- ....csproj => PnP.PowerShell.Commands.csproj} | 19 +++-- Commands/Principals/AddAlert.cs | 8 +- Commands/Principals/AddUserToGroup.cs | 6 +- Commands/Principals/GetAlert.cs | 6 +- Commands/Principals/GetGroup.cs | 6 +- Commands/Principals/GetGroupMembers.cs | 6 +- Commands/Principals/GetGroupPermissions.cs | 6 +- Commands/Principals/GetUser.cs | 6 +- Commands/Principals/NewGroup.cs | 6 +- Commands/Principals/NewUser.cs | 4 +- Commands/Principals/RemoveAlert.cs | 6 +- Commands/Principals/RemoveGroup.cs | 6 +- Commands/Principals/RemoveUser.cs | 6 +- Commands/Principals/RemoveUserFromGroup.cs | 6 +- Commands/Principals/SetGroup.cs | 8 +- Commands/Principals/SetGroupPermissions.cs | 6 +- Commands/Properties/AssemblyInfo.cs | 18 ++--- Commands/Properties/Resources.Designer.cs | 22 ++--- .../Parameters/SPOChildItemsParameters.cs | 2 +- .../Parameters/SPOContentParameters.cs | 2 +- .../Provider/Parameters/SPODriveParameters.cs | 2 +- Commands/Provider/SPOContentReaderWriter.cs | 2 +- Commands/Provider/SPODriveCacheItem.cs | 2 +- Commands/Provider/SPODriveCacheWeb.cs | 2 +- Commands/Provider/SPODriveInfo.cs | 2 +- Commands/Provider/SPOProvider.cs | 12 +-- .../Provider/SPOProxy/SPOProxyCmdletBase.cs | 2 +- .../Provider/SPOProxy/SPOProxyCopyItem.cs | 4 +- .../SPOProxy/SPOProxyImplementation.cs | 2 +- .../Provider/SPOProxy/SPOProxyMoveItem.cs | 4 +- .../Site/AddDataRowsToProvisioningTemplate.cs | 8 +- .../Site/AddFileToProvisioningTemplate.cs | 4 +- .../AddListFoldersToProvisioningTemplate.cs | 6 +- .../Site/ApplyProvisioningTemplate.cs | 8 +- .../ConvertFolderToProvisioningTemplate.cs | 4 +- .../Site/ConvertProvisioningTemplate.cs | 8 +- .../Site/ExportListToProvisioningTemplate.cs | 8 +- .../Site/GetProvisioningTemplate.cs | 10 +-- .../Site/NewProvisioningTemplate.cs | 4 +- .../Site/NewProvisioningTemplateFromFolder.cs | 8 +- .../Site/ReadProvisioningTemplate.cs | 6 +- .../RemoveFileFromProvisioningTemplate.cs | 4 +- .../Site/SaveProvisioningTemplate.cs | 8 +- .../Site/SetProvisioningTemplateMetadata.cs | 6 +- .../Tenant/AddProvisioningTemplate.cs | 6 +- .../Provisioning/Tenant/AddTenantSequence.cs | 4 +- .../Tenant/AddTenantSequenceSite.cs | 6 +- .../Tenant/AddTenantSequenceSubSite.cs | 4 +- .../Tenant/ApplyTenantTemplate.cs | 10 +-- .../Provisioning/Tenant/GetTenantSequence.cs | 8 +- .../Tenant/GetTenantSequenceSite.cs | 8 +- .../Provisioning/Tenant/GetTenantTemplate.cs | 10 +-- .../Provisioning/Tenant/NewTenantSequence.cs | 6 +- .../NewTenantSequenceCommunicationSite.cs | 6 +- .../NewTenantSequenceTeamNoGroupSite.cs | 4 +- .../NewTenantSequenceTeamNoGroupSubSite.cs | 4 +- .../Tenant/NewTenantSequenceTeamSite.cs | 4 +- .../Provisioning/Tenant/NewTenantTemplate.cs | 4 +- .../Provisioning/Tenant/ReadTenantTemplate.cs | 6 +- .../Provisioning/Tenant/SaveTenantTemplate.cs | 8 +- .../Provisioning/Tenant/TestTenantTemplate.cs | 4 +- .../Publishing/AddHtmlPublishingPageLayout.cs | 4 +- Commands/Publishing/AddMasterPage.cs | 4 +- .../Publishing/AddPublishingImageRendition.cs | 4 +- Commands/Publishing/AddPublishingPage.cs | 4 +- .../Publishing/AddPublishingPageLayout.cs | 4 +- Commands/Publishing/AddWikiPage.cs | 4 +- .../Publishing/GetPublishingImageRendition.cs | 6 +- Commands/Publishing/GetWikiPageContent.cs | 4 +- .../RemovePublishingImageRendition.cs | 8 +- Commands/Publishing/RemoveWikiPage.cs | 4 +- .../Publishing/SetAvailablePageLayouts.cs | 4 +- Commands/Publishing/SetDefaultPageLayout.cs | 4 +- Commands/Publishing/SetWikiPageContent.cs | 4 +- .../ClearListItemAsRecord.cs | 6 +- .../DisableInPlaceRecordsManagementForSite.cs | 8 +- .../EnableInPlaceRecordsManagementForSite.cs | 8 +- .../GetInPlaceRecordsManagement.cs | 8 +- .../GetListManualRecordDeclaration.cs | 6 +- .../SetInPlaceRecordsManagement.cs | 8 +- .../RecordsManagement/SetListItemAsRecord.cs | 6 +- .../SetListRecordDeclaration.cs | 6 +- .../RecordsManagement/TestListItemIsRecord.cs | 6 +- Commands/RecycleBin/ClearRecycleBinItem.cs | 8 +- .../RecycleBin/ClearTenantRecycleBinItem.cs | 8 +- Commands/RecycleBin/GetRecycleBinItem.cs | 6 +- .../RecycleBin/GetTenantRecycleBinItem.cs | 6 +- Commands/RecycleBin/MoveRecycleBinItem.cs | 8 +- Commands/RecycleBin/RestoreRecycleBinItem.cs | 8 +- .../RecycleBin/RestoreTenantRecycleBinItem.cs | 8 +- Commands/Search/GetSearchConfiguration.cs | 8 +- Commands/Search/GetSearchCrawlLog.cs | 4 +- Commands/Search/GetSearchSettings.cs | 4 +- Commands/Search/GetSiteSearchQueryResults.cs | 4 +- Commands/Search/PnPResultTable.cs | 2 +- Commands/Search/PnPResultTableCollection.cs | 2 +- Commands/Search/RemoveSearchConfiguration.cs | 8 +- Commands/Search/SetSearchConfiguration.cs | 8 +- Commands/Search/SetSearchSettings.cs | 8 +- Commands/Search/SubmitSearchQuery.cs | 4 +- Commands/Site/AddRoleDefinition.cs | 6 +- Commands/Site/AddSiteCollectionAdmin.cs | 6 +- Commands/Site/AddTeamsTeam.cs | 4 +- .../Site/DisableSharingForNonOwnersOfSite.cs | 6 +- Commands/Site/EnableCommSite.cs | 4 +- Commands/Site/GetAuditing.cs | 4 +- Commands/Site/GetIsSiteAliasAvailable.cs | 4 +- Commands/Site/GetRoleDefinition.cs | 6 +- Commands/Site/GetSharingForNonOwnersOfSite.cs | 6 +- Commands/Site/GetSite.cs | 4 +- Commands/Site/GetSiteCollectionAdmin.cs | 4 +- Commands/Site/InstallSolution.cs | 6 +- Commands/Site/RemoveRoleDefinition.cs | 6 +- Commands/Site/RemoveSiteCollectionAdmin.cs | 6 +- Commands/Site/SetAppSideLoading.cs | 4 +- Commands/Site/SetAuditing.cs | 4 +- Commands/Site/SetSite.cs | 8 +- .../Site/TestOffice365GroupAliasIsUsed.cs | 4 +- Commands/Site/UninstallSolution.cs | 6 +- Commands/SiteDesigns/AddSiteDesign.cs | 10 +-- Commands/SiteDesigns/AddSiteDesignTask.cs | 8 +- Commands/SiteDesigns/AddSiteScript.cs | 6 +- Commands/SiteDesigns/GetSiteDesign.cs | 8 +- Commands/SiteDesigns/GetSiteDesignRights.cs | 8 +- Commands/SiteDesigns/GetSiteDesignRun.cs | 8 +- .../SiteDesigns/GetSiteDesignRunStatus.cs | 6 +- Commands/SiteDesigns/GetSiteDesignTask.cs | 8 +- Commands/SiteDesigns/GetSiteScript.cs | 8 +- Commands/SiteDesigns/GetSiteScriptFromList.cs | 6 +- Commands/SiteDesigns/GetSiteScriptFromWeb.cs | 6 +- Commands/SiteDesigns/GrantSiteDesignRights.cs | 8 +- Commands/SiteDesigns/InvokeSiteDesign.cs | 8 +- Commands/SiteDesigns/RemoveSiteDesign.cs | 8 +- Commands/SiteDesigns/RemoveSiteDesignTask.cs | 8 +- Commands/SiteDesigns/RemoveSiteScript.cs | 8 +- .../SiteDesigns/RevokeSiteDesignRights.cs | 8 +- Commands/SiteDesigns/SetSiteDesign.cs | 10 +-- Commands/SiteDesigns/SetSiteScript.cs | 8 +- Commands/Taxonomy/ExportTaxonomy.cs | 10 +-- Commands/Taxonomy/ExportTermGroupToXml.cs | 8 +- .../Taxonomy/GetSiteCollectionTermStore.cs | 4 +- Commands/Taxonomy/GetTaxonomyItem.cs | 4 +- Commands/Taxonomy/GetTaxonomySession.cs | 4 +- Commands/Taxonomy/GetTerm.cs | 6 +- Commands/Taxonomy/GetTermGroup.cs | 6 +- Commands/Taxonomy/GetTermSet.cs | 6 +- Commands/Taxonomy/ImportTaxonomy.cs | 4 +- Commands/Taxonomy/ImportTermGroupFromXml.cs | 4 +- Commands/Taxonomy/ImportTermSet.cs | 4 +- Commands/Taxonomy/NewTerm.cs | 6 +- Commands/Taxonomy/NewTermGroup.cs | 6 +- Commands/Taxonomy/NewTermLabel.cs | 6 +- Commands/Taxonomy/NewTermSet.cs | 6 +- Commands/Taxonomy/RemoveTaxonomyItem.cs | 6 +- Commands/Taxonomy/RemoveTermGroup.cs | 6 +- Commands/Taxonomy/SetTaxonomyFieldValue.cs | 6 +- Commands/Teams/AddTeamsChannel.cs | 12 +-- Commands/Teams/AddTeamsTab.cs | 12 +-- Commands/Teams/AddTeamsUser.cs | 12 +-- Commands/Teams/GetTeamsApp.cs | 12 +-- Commands/Teams/GetTeamsChannel.cs | 10 +-- Commands/Teams/GetTeamsChannelMessage.cs | 12 +-- Commands/Teams/GetTeamsTab.cs | 10 +-- Commands/Teams/GetTeamsTeam.cs | 10 +-- Commands/Teams/GetTeamsUser.cs | 12 +-- Commands/Teams/NewTeamsApp.cs | 12 +-- Commands/Teams/NewTeamsTeam.cs | 10 +-- Commands/Teams/RemoveTeamsApp.cs | 14 ++-- Commands/Teams/RemoveTeamsChannel.cs | 14 ++-- Commands/Teams/RemoveTeamsTab.cs | 14 ++-- Commands/Teams/RemoveTeamsTeam.cs | 14 ++-- Commands/Teams/RemoveTeamsUser.cs | 12 +-- Commands/Teams/SetTeamsChannel .cs | 12 +-- Commands/Teams/SetTeamsTab.cs | 12 +-- Commands/Teams/SetTeamsTeam.cs | 12 +-- Commands/Teams/SetTeamsTeamArchivedState.cs | 16 ++-- Commands/Teams/SetTeamsTeamPicture.cs | 12 +-- Commands/Teams/SubmitTeamsChannelMessage.cs | 12 +-- Commands/Teams/UpdateTeamsApp.cs | 14 ++-- .../UserProfiles/GetUPABulkImportStatus.cs | 8 +- Commands/UserProfiles/GetUserOneDriveQuota.cs | 6 +- .../UserProfiles/GetUserProfileProperty.cs | 6 +- Commands/UserProfiles/NewPersonalSite.cs | 6 +- Commands/UserProfiles/NewUPABulkImportJob.cs | 6 +- .../ResetUserOneDriveQuotaToDefault.cs | 6 +- Commands/UserProfiles/SetUserOneDriveQuota.cs | 6 +- .../UserProfiles/SetUserProfileProperty.cs | 6 +- Commands/Utilities/AzureAuthHelper.cs | 2 +- Commands/Utilities/BrowserHelper.cs | 2 +- Commands/Utilities/CertificateCrypto.cs | 2 +- Commands/Utilities/CertificateHelper.cs | 2 +- Commands/Utilities/Clipboard.cs | 2 +- Commands/Utilities/CredentialManager.cs | 2 +- Commands/Utilities/DynamicLinq.cs | 2 +- Commands/Utilities/FileUtilities.cs | 2 +- Commands/Utilities/IsolatedStorage.cs | 2 +- Commands/Utilities/JwtUtility.cs | 2 +- Commands/Utilities/ListItemHelper.cs | 4 +- Commands/Utilities/OperatingSystem.cs | 2 +- Commands/Utilities/ProvisioningHelper.cs | 2 +- Commands/Utilities/REST/GraphCollection.cs | 2 +- Commands/Utilities/REST/GraphHelper.cs | 4 +- Commands/Utilities/REST/MetadataType.cs | 2 +- Commands/Utilities/REST/RestHelper.cs | 2 +- Commands/Utilities/REST/RestRequest.cs | 2 +- Commands/Utilities/SendMail.cs | 4 +- Commands/Utilities/Shell.cs | 2 +- Commands/Utilities/StringExtensions.cs | 2 +- Commands/Utilities/TeamsUtility.cs | 8 +- Commands/Utilities/UrlUtilities.cs | 2 +- Commands/Web/AddIndexedProperty.cs | 6 +- Commands/Web/GetAvailableLanguage.cs | 6 +- Commands/Web/GetIndexedPropertyKeys.cs | 6 +- Commands/Web/GetPropertyBag.cs | 4 +- Commands/Web/GetRequestAccessEmails.cs | 4 +- Commands/Web/GetSubwebs.cs | 8 +- Commands/Web/GetWeb.cs | 8 +- Commands/Web/InvokeWebAction.cs | 6 +- Commands/Web/NewWeb.cs | 4 +- Commands/Web/RemovePropertyBagValue.cs | 4 +- Commands/Web/RemoveWeb.cs | 8 +- Commands/Web/RemovedIndexedProperty.cs | 6 +- Commands/Web/RequestReIndexWeb.cs | 4 +- Commands/Web/SetIndexedProperties.cs | 4 +- Commands/Web/SetPropertyBagValue.cs | 4 +- Commands/Web/SetRequestAccessEmails.cs | 6 +- Commands/Web/SetWeb.cs | 4 +- Commands/Web/SetWebPermission.cs | 8 +- Commands/WebParts/AddClientSideWebPart.cs | 6 +- Commands/WebParts/AddWebPartToWebPartPage.cs | 4 +- Commands/WebParts/AddWebPartToWikiPage.cs | 4 +- Commands/WebParts/GetWebPart.cs | 6 +- Commands/WebParts/GetWebPartProperty.cs | 6 +- Commands/WebParts/GetWebPartXml.cs | 8 +- Commands/WebParts/RemoveWebPart.cs | 6 +- Commands/WebParts/SetWebPartProperty.cs | 6 +- Commands/Webhooks/AddWebhookSubscription.cs | 6 +- Commands/Webhooks/GetWebhookSubscriptions.cs | 8 +- .../Webhooks/RemoveWebhookSubscription.cs | 6 +- Commands/Webhooks/SetWebhookSubscription.cs | 6 +- Commands/Workflows/AddWorkflowDefinition.cs | 4 +- Commands/Workflows/AddWorkflowSubscription.cs | 6 +- Commands/Workflows/GetWorkflowDefinition.cs | 4 +- Commands/Workflows/GetWorkflowInstances.cs | 6 +- Commands/Workflows/GetWorkflowSubscription.cs | 6 +- .../Workflows/RemoveWorkflowDefinition.cs | 6 +- .../Workflows/RemoveWorkflowSubscription.cs | 6 +- Commands/Workflows/ResumeWorkflowInstance.cs | 6 +- Commands/Workflows/StartWorkflowInstance.cs | 6 +- Commands/Workflows/StopWorkflowInstance.cs | 6 +- .../CmdletAdditionalParameterAttribute.cs | 2 +- HelpAttributes/CmdletApiPermissionBase.cs | 2 +- HelpAttributes/CmdletExampleAttribute.cs | 2 +- HelpAttributes/CmdletHelpAttribute.cs | 2 +- HelpAttributes/CmdletHelpCategory.cs | 2 +- .../CmdletMicrosoftGraphApiPermission.cs | 2 +- .../CmdletOfficeManagementApiPermission.cs | 2 +- HelpAttributes/CmdletPipeLineAttribute.cs | 2 +- HelpAttributes/CmdletRelatedLinkAttribute.cs | 2 +- HelpAttributes/CmdletSupportedPlatform.cs | 2 +- HelpAttributes/CmdletTokenTypeAttribute.cs | 2 +- ...nP.PowerShell.CmdletHelpAttributes.csproj} | 0 HelpAttributes/PnPParameterAttribute.cs | 2 +- .../AdditionalParameterComparer.cs | 6 +- ModuleFilesGenerator/CmdletsAnalyzer.cs | 8 +- ModuleFilesGenerator/GenerateModuleFiles.cs | 2 +- ModuleFilesGenerator/HelpFileGenerator.cs | 4 +- ModuleFilesGenerator/Model/CmdletInfo.cs | 4 +- .../Model/CmdletParameterInfo.cs | 2 +- ModuleFilesGenerator/Model/CmdletSyntax.cs | 2 +- .../ModuleManifestGenerator.cs | 22 ++--- ModuleFilesGenerator/ParameterComparer.cs | 4 +- ...nP.PowerShell.ModuleFilesGenerator.csproj} | 8 +- .../Properties/AssemblyInfo.cs | 4 +- PostBuild.ps1 | 80 ++++++------------- README.md | 2 +- SharePointPnP.PowerShell.sln | 8 +- Tests/Admin/AddPnPHubSiteAssociationTests.cs | 2 +- .../Admin/AddPnPOffice365GroupToSiteTests.cs | 2 +- Tests/Admin/AddPnPOrgAssetsLibraryTests.cs | 2 +- Tests/Admin/AddPnPOrgNewsSiteTests.cs | 2 +- .../AddPnPSiteCollectionAppCatalogTests.cs | 2 +- Tests/Admin/AddPnPTenantCdnOriginTests.cs | 2 +- Tests/Admin/AddPnPTenantThemeTests.cs | 2 +- .../Admin/ClearPnPTenantAppCatalogUrlTests.cs | 2 +- Tests/Admin/GetPnPHideDefaultThemesTests.cs | 2 +- Tests/Admin/GetPnPHomeSiteTests.cs | 2 +- Tests/Admin/GetPnPHubSiteChildTests.cs | 2 +- Tests/Admin/GetPnPHubSiteTests.cs | 2 +- Tests/Admin/GetPnPKnowledgeHubSiteTests.cs | 2 +- Tests/Admin/GetPnPOrgAssetsLibraryTests.cs | 2 +- Tests/Admin/GetPnPOrgNewsSiteTests.cs | 2 +- Tests/Admin/GetPnPStorageEntityTests.cs | 2 +- Tests/Admin/GetPnPTenantAppCatalogUrlTests.cs | 2 +- Tests/Admin/GetPnPTenantCdnEnabledTests.cs | 2 +- Tests/Admin/GetPnPTenantCdnOriginTests.cs | 2 +- Tests/Admin/GetPnPTenantCdnPoliciesTests.cs | 2 +- Tests/Admin/GetPnPTenantIdTests.cs | 2 +- Tests/Admin/GetPnPTenantSiteTests.cs | 2 +- .../GetPnPTenantSyncClientRestrictionTests.cs | 2 +- Tests/Admin/GetPnPTenantTests.cs | 2 +- Tests/Admin/GetPnPTenantThemeTests.cs | 2 +- Tests/Admin/GetPnPTimeZoneIdTests.cs | 2 +- Tests/Admin/GrantPnPHubSiteRightsTests.cs | 2 +- Tests/Admin/InvokePnPSPRestMethodTests.cs | 2 +- Tests/Admin/NewPnPTenantSiteTests.cs | 2 +- Tests/Admin/RegisterPnPHubSiteTests.cs | 2 +- Tests/Admin/RemovePnPHomeSiteTests.cs | 2 +- .../Admin/RemovePnPHubSiteAssociationTests.cs | 2 +- Tests/Admin/RemovePnPKnowledgeHubSiteTests.cs | 2 +- Tests/Admin/RemovePnPOrgAssetsLibraryTests.cs | 2 +- Tests/Admin/RemovePnPOrgNewsSiteTests.cs | 2 +- .../RemovePnPSiteCollectionAppCatalogTests.cs | 2 +- Tests/Admin/RemovePnPStorageEntityTests.cs | 2 +- Tests/Admin/RemovePnPTenantCdnOriginTests.cs | 2 +- Tests/Admin/RemovePnPTenantSiteTests.cs | 2 +- Tests/Admin/RemovePnPTenantThemeTests.cs | 2 +- Tests/Admin/RevokePnPHubSiteRightsTests.cs | 2 +- Tests/Admin/SetPnPHideDefaultThemesTests.cs | 2 +- Tests/Admin/SetPnPHomeSiteTests.cs | 2 +- Tests/Admin/SetPnPHubSiteTests.cs | 2 +- Tests/Admin/SetPnPKnowledgeHubSiteTests.cs | 2 +- Tests/Admin/SetPnPStorageEntityTests.cs | 2 +- Tests/Admin/SetPnPTenantAppCatalogUrlTests.cs | 2 +- Tests/Admin/SetPnPTenantCdnEnabledTests.cs | 2 +- Tests/Admin/SetPnPTenantCdnPolicyTests.cs | 2 +- Tests/Admin/SetPnPTenantSiteTests.cs | 2 +- .../SetPnPTenantSyncClientRestrictionTests.cs | 2 +- Tests/Admin/SetPnPTenantTests.cs | 2 +- Tests/Admin/UnregisterPnPHubSiteTests.cs | 2 +- Tests/Apps/AddPnPAppTests.cs | 2 +- ...tServicePrincipalPermissionRequestTests.cs | 2 +- ...tServicePrincipalPermissionRequestTests.cs | 2 +- .../DisablePnPTenantServicePrincipalTests.cs | 2 +- .../EnablePnPTenantServicePrincipalTests.cs | 2 +- Tests/Apps/GetPnPAppInstanceTests.cs | 2 +- Tests/Apps/GetPnPAppTests.cs | 2 +- ...ntServicePrincipalPermissionGrantsTests.cs | 2 +- ...ServicePrincipalPermissionRequestsTests.cs | 2 +- .../Apps/GetPnPTenantServicePrincipalTests.cs | 2 +- ...nPTenantServicePrincipalPermissionTests.cs | 2 +- Tests/Apps/ImportPnPAppPackageTests.cs | 2 +- Tests/Apps/InstallPnPAppTests.cs | 2 +- Tests/Apps/PublishPnPAppTests.cs | 2 +- Tests/Apps/RegisterPnPAppCatalogSiteTests.cs | 2 +- Tests/Apps/RemovePnPAppTests.cs | 2 +- ...nPTenantServicePrincipalPermissionTests.cs | 2 +- Tests/Apps/SyncPnPAppToTeamsTests.cs | 2 +- Tests/Apps/UninstallPnPAppInstanceTests.cs | 2 +- Tests/Apps/UninstallPnPAppTests.cs | 2 +- Tests/Apps/UnpublishPnPAppTests.cs | 2 +- Tests/Apps/UpdatePnPAppTests.cs | 2 +- Tests/Base/AddPnPStoredCredentialTests.cs | 2 +- Tests/Base/ConnectPnPOnlineTests.cs | 2 +- .../DisablePnPPowerShellTelemetryTests.cs | 2 +- Tests/Base/DisconnectPnPOnlineTests.cs | 2 +- .../Base/EnablePnPPowerShellTelemetryTests.cs | 2 +- Tests/Base/GetPnPAccessTokenTests.cs | 2 +- Tests/Base/GetPnPAppAuthAccessTokenTests.cs | 2 +- Tests/Base/GetPnPAuthenticationRealmTests.cs | 2 +- Tests/Base/GetPnPAzureCertificateTests.cs | 2 +- Tests/Base/GetPnPConnectionTests.cs | 2 +- Tests/Base/GetPnPContextTests.cs | 2 +- Tests/Base/GetPnPExceptionTests.cs | 2 +- Tests/Base/GetPnPGraphAccessTokenTests.cs | 2 +- Tests/Base/GetPnPHealthScoreTests.cs | 2 +- .../GetPnPPowerShellTelemetryEnabledTests.cs | 2 +- Tests/Base/GetPnPPropertyTests.cs | 2 +- Tests/Base/GetPnPStoredCredentialTests.cs | 2 +- ...tializePnPPowerShellAuthenticationTests.cs | 2 +- Tests/Base/InvokePnPQueryTests.cs | 2 +- Tests/Base/NewPnPAzureCertificateTests.cs | 2 +- Tests/Base/RemovePnPStoredCredentialTests.cs | 2 +- Tests/Base/RequestPnPAccessTokenTests.cs | 2 +- Tests/Base/SetPnPContextTests.cs | 2 +- Tests/Base/SetPnPTraceLogTests.cs | 2 +- .../AddPnPApplicationCustomizerTests.cs | 2 +- Tests/Branding/AddPnPCustomActionTests.cs | 2 +- Tests/Branding/AddPnPJavaScriptBlockTests.cs | 2 +- Tests/Branding/AddPnPJavaScriptLinkTests.cs | 2 +- Tests/Branding/AddPnPNavigationNodeTests.cs | 2 +- Tests/Branding/DisablePnPResponsiveUITests.cs | 2 +- Tests/Branding/EnablePnPResponsiveUITests.cs | 2 +- .../GetPnPApplicationCustomizerTests.cs | 2 +- Tests/Branding/GetPnPCustomActionTests.cs | 2 +- Tests/Branding/GetPnPFooterTests.cs | 2 +- Tests/Branding/GetPnPHomePageTests.cs | 2 +- Tests/Branding/GetPnPJavaScriptLinkTests.cs | 2 +- Tests/Branding/GetPnPMasterPageTests.cs | 2 +- Tests/Branding/GetPnPNavigationNodeTests.cs | 2 +- Tests/Branding/GetPnPThemeTests.cs | 2 +- .../RemovePnPApplicationCustomizerTests.cs | 2 +- Tests/Branding/RemovePnPCustomActionTests.cs | 2 +- .../Branding/RemovePnPJavaScriptLinkTests.cs | 2 +- .../Branding/RemovePnPNavigationNodeTests.cs | 2 +- .../SetPnPApplicationCustomizerTests.cs | 2 +- Tests/Branding/SetPnPFooterTests.cs | 2 +- Tests/Branding/SetPnPHomePageTests.cs | 2 +- Tests/Branding/SetPnPMasterPageTests.cs | 2 +- .../SetPnPMinimalDownloadStrategyTests.cs | 2 +- Tests/Branding/SetPnPThemeTests.cs | 2 +- Tests/Branding/SetPnPWebThemeTests.cs | 2 +- .../AddPnPClientSidePageSectionTests.cs | 2 +- .../AddPnPClientSidePageTests.cs | 2 +- .../AddPnPClientSideTextTests.cs | 2 +- ...etPnPAvailableClientSideComponentsTests.cs | 2 +- .../GetPnPClientSideComponentTests.cs | 2 +- .../GetPnPClientSidePageTests.cs | 2 +- .../MovePnPClientSideComponentTests.cs | 2 +- .../RemovePnPClientSideComponentTests.cs | 2 +- .../RemovePnPClientSidePageTests.cs | 2 +- .../SetPnPClientSidePageTests.cs | 2 +- .../SetPnPClientSideTextTests.cs | 2 +- .../SetPnPClientSideWebPartTests.cs | 2 +- Tests/ContentTypes/AddPnPContentTypeTests.cs | 2 +- .../AddPnPContentTypeToListTests.cs | 2 +- .../AddPnPFieldToContentTypeTests.cs | 2 +- .../GetPnPContentTypePublishingHubUrlTests.cs | 2 +- Tests/ContentTypes/GetPnPContentTypeTests.cs | 2 +- .../RemovePnPContentTypeFromListTests.cs | 2 +- .../ContentTypes/RemovePnPContentTypeTests.cs | 2 +- .../RemovePnPFieldFromContentTypeTests.cs | 2 +- .../SetPnPDefaultContentTypeToListTests.cs | 2 +- Tests/Diagnostic/MeasurePnPListTests.cs | 2 +- .../Diagnostic/MeasurePnPResponseTimeTests.cs | 2 +- Tests/Diagnostic/MeasurePnPWebTests.cs | 2 +- .../AddPnPContentTypeToDocumentSetTests.cs | 2 +- Tests/DocumentSets/AddPnPDocumentSetTests.cs | 2 +- .../GetPnPDocumentSetTemplateTests.cs | 2 +- ...emovePnPContentTypeFromDocumentSetTests.cs | 2 +- .../SetPnPDocumentSetFieldTests.cs | 2 +- Tests/Events/AddPnPEventReceiverTests.cs | 2 +- Tests/Events/GetPnPEventReceiverTests.cs | 2 +- Tests/Events/RemovePnPEventReceiverTests.cs | 2 +- .../NewPnPExtensibilityHandlerObjectTests.cs | 2 +- Tests/Features/DisablePnPFeatureTests.cs | 2 +- Tests/Features/EnablePnPFeatureTests.cs | 2 +- Tests/Features/GetPnPFeatureTests.cs | 2 +- Tests/Fields/AddPnPFieldFromXmlTests.cs | 2 +- Tests/Fields/AddPnPFieldTests.cs | 2 +- Tests/Fields/AddPnPTaxonomyFieldTests.cs | 2 +- Tests/Fields/GetPnPFieldTests.cs | 2 +- Tests/Fields/RemovePnPFieldTests.cs | 2 +- Tests/Fields/SetPnPFieldTests.cs | 2 +- Tests/Fields/SetPnPViewTests.cs | 2 +- Tests/Files/AddPnPFileTests.cs | 2 +- Tests/Files/AddPnPFolderTests.cs | 2 +- Tests/Files/CopyPnPFileTests.cs | 2 +- Tests/Files/FindPnPFileTests.cs | 2 +- Tests/Files/GetPnPFileTests.cs | 2 +- Tests/Files/GetPnPFolderItemTests.cs | 2 +- Tests/Files/GetPnPFolderTests.cs | 2 +- Tests/Files/MovePnPFileTests.cs | 2 +- Tests/Files/MovePnPFolderTests.cs | 2 +- Tests/Files/RemovePnPFileTests.cs | 2 +- Tests/Files/RemovePnPFolderTests.cs | 2 +- Tests/Files/RenamePnPFileTests.cs | 2 +- Tests/Files/RenamePnPFolderTests.cs | 2 +- Tests/Files/ResetPnPFileVersionTests.cs | 2 +- Tests/Files/ResolvePnPFolderTests.cs | 2 +- Tests/Files/SetPnPFileCheckedInTests.cs | 2 +- Tests/Files/SetPnPFileCheckedOutTests.cs | 2 +- Tests/Files/SetPnPFolderPermissionTests.cs | 2 +- Tests/Graph/AddPnPSiteClassificationTests.cs | 2 +- .../DisablePnPSiteClassificationTests.cs | 2 +- .../Graph/EnablePnPSiteClassificationTests.cs | 2 +- Tests/Graph/GetPnPAADUserTests.cs | 2 +- Tests/Graph/GetPnPDeletedUnifiedGroupTests.cs | 2 +- Tests/Graph/GetPnPGraphSubscriptionTests.cs | 2 +- Tests/Graph/GetPnPSiteClassificationTests.cs | 2 +- Tests/Graph/GetPnPUnifiedGroupMembersTests.cs | 2 +- Tests/Graph/GetPnPUnifiedGroupOwnersTests.cs | 2 +- Tests/Graph/GetPnPUnifiedGroupTests.cs | 2 +- Tests/Graph/NewPnPGraphSubscriptionTests.cs | 2 +- Tests/Graph/NewPnPUnifiedGroupTests.cs | 2 +- .../RemovePnPDeletedUnifiedGroupTests.cs | 2 +- .../Graph/RemovePnPGraphSubscriptionTests.cs | 2 +- .../Graph/RemovePnPSiteClassificationTests.cs | 2 +- Tests/Graph/RemovePnPUnifiedGroupTests.cs | 2 +- .../ResetPnPUnifiedGroupExpirationTests.cs | 2 +- .../RestorePnPDeletedUnifiedGroupTests.cs | 2 +- Tests/Graph/SetPnPGraphSubscriptionTests.cs | 2 +- Tests/Graph/SetPnPUnifiedGroupTests.cs | 2 +- .../Graph/UpdatePnPSiteClassificationTests.cs | 2 +- .../InformationManagement/GetPnPLabelTests.cs | 2 +- ...PnPListInformationRightsManagementTests.cs | 2 +- .../GetPnPSiteClosureTests.cs | 2 +- .../GetPnPSitePolicyTests.cs | 2 +- .../ResetPnPLabelTests.cs | 2 +- .../InformationManagement/SetPnPLabelTests.cs | 2 +- ...PnPListInformationRightsManagementTests.cs | 2 +- .../SetPnPSiteClosureTests.cs | 2 +- .../SetPnPSitePolicyTests.cs | 2 +- Tests/Lists/AddPnPListItemTests.cs | 2 +- Tests/Lists/AddPnPViewTests.cs | 2 +- .../Lists/ClearPnPDefaultColumnValuesTests.cs | 2 +- Tests/Lists/GetPnPDefaultColumnValuesTests.cs | 2 +- Tests/Lists/GetPnPListItemTests.cs | 2 +- Tests/Lists/GetPnPListTests.cs | 2 +- Tests/Lists/GetPnPViewTests.cs | 2 +- .../Lists/MovePnPListItemToRecycleBinTests.cs | 2 +- Tests/Lists/NewPnPListTests.cs | 2 +- Tests/Lists/RemovePnPListItemTests.cs | 2 +- Tests/Lists/RemovePnPListTests.cs | 2 +- Tests/Lists/RemovePnPViewTests.cs | 2 +- Tests/Lists/RequestPnPReIndexListTests.cs | 2 +- Tests/Lists/SetPnPDefaultColumnValuesTests.cs | 2 +- Tests/Lists/SetPnPListItemPermissionTests.cs | 2 +- Tests/Lists/SetPnPListItemTests.cs | 2 +- Tests/Lists/SetPnPListPermissionTests.cs | 2 +- Tests/Lists/SetPnPListTests.cs | 2 +- .../GetPnPManagementApiAccessTokenTests.cs | 2 +- ...etPnPOffice365CurrentServiceStatusTests.cs | 2 +- ...nPOffice365HistoricalServiceStatusTests.cs | 2 +- .../GetPnPOffice365ServiceMessageTests.cs | 2 +- .../GetPnPOffice365ServicesTests.cs | 2 +- ...tPnPOfficeManagementApiAccessTokenTests.cs | 2 +- .../GetPnPUnifiedAuditLogTests.cs | 2 +- Tests/OriginalTests/AdminTests.cs | 2 +- Tests/OriginalTests/BaseTests.cs | 6 +- Tests/OriginalTests/BrandingTests.cs | 2 +- Tests/OriginalTests/ClientSidePagesTests.cs | 2 +- Tests/OriginalTests/ContentTypeTests.cs | 2 +- Tests/OriginalTests/DiagnosticTests.cs | 2 +- Tests/OriginalTests/EventReceiverTests.cs | 2 +- Tests/OriginalTests/FeatureTests.cs | 2 +- Tests/OriginalTests/FieldsTests.cs | 2 +- Tests/OriginalTests/FilesTest.cs | 2 +- Tests/OriginalTests/GraphTests.cs | 2 +- Tests/OriginalTests/InvokeWebActionTest.cs | 6 +- .../ListDataRowProvisioningTemplate.cs | 2 +- Tests/OriginalTests/ListsTests.cs | 2 +- Tests/OriginalTests/PrincipalsTests.cs | 4 +- .../ProvisioningTemplateFromFolderTest.cs | 2 +- .../ProvisioningTemplateTests.cs | 2 +- Tests/OriginalTests/WebPartsTests.cs | 2 +- Tests/OriginalTests/WebTests.cs | 6 +- .../WebhookSubscriptionsTests.cs | 2 +- Tests/PSTestScope.cs | 4 +- ...sts.csproj => PnP.PowerShell.Tests.csproj} | 8 +- Tests/Principals/AddPnPAlertTests.cs | 2 +- Tests/Principals/AddPnPUserToGroupTests.cs | 2 +- Tests/Principals/GetPnPAlertTests.cs | 2 +- Tests/Principals/GetPnPGroupMembersTests.cs | 2 +- .../Principals/GetPnPGroupPermissionsTests.cs | 2 +- Tests/Principals/GetPnPGroupTests.cs | 2 +- Tests/Principals/GetPnPUserTests.cs | 2 +- Tests/Principals/NewPnPGroupTests.cs | 2 +- Tests/Principals/NewPnPUserTests.cs | 2 +- Tests/Principals/RemovePnPAlertTests.cs | 2 +- Tests/Principals/RemovePnPGroupTests.cs | 2 +- .../Principals/RemovePnPUserFromGroupTests.cs | 2 +- Tests/Principals/RemovePnPUserTests.cs | 2 +- .../Principals/SetPnPGroupPermissionsTests.cs | 2 +- Tests/Principals/SetPnPGroupTests.cs | 2 +- ...dPnPDataRowsToProvisioningTemplateTests.cs | 2 +- .../AddPnPFileToProvisioningTemplateTests.cs | 2 +- ...PListFoldersToProvisioningTemplateTests.cs | 2 +- .../ApplyPnPProvisioningTemplateTests.cs | 2 +- ...xportPnPListToProvisioningTemplateTests.cs | 2 +- .../GetPnPProvisioningTemplateTests.cs | 2 +- .../GetPnPTenantTemplateTests.cs | 2 +- ...ovePnPFileFromProvisioningTemplateTests.cs | 2 +- ...SetPnPProvisioningTemplateMetadataTests.cs | 2 +- .../AddPnPProvisioningTemplateTests.cs | 2 +- .../AddPnPTenantSequenceSiteTests.cs | 2 +- .../AddPnPTenantSequenceSubSiteTests.cs | 2 +- .../AddPnPTenantSequenceTests.cs | 2 +- .../ApplyPnPTenantTemplateTests.cs | 2 +- .../ExportPnPClientSidePageTests.cs | 2 +- .../GetPnPTenantSequenceSiteTests.cs | 2 +- .../GetPnPTenantSequenceTests.cs | 2 +- ...PnPTenantSequenceCommunicationSiteTests.cs | 2 +- ...ewPnPTenantSequenceTeamNoGroupSiteTests.cs | 2 +- ...nPTenantSequenceTeamNoGroupSubSiteTests.cs | 2 +- .../NewPnPTenantSequenceTeamSiteTests.cs | 2 +- .../NewPnPTenantSequenceTests.cs | 2 +- .../NewPnPTenantTemplateTests.cs | 2 +- .../ReadPnPTenantTemplateTests.cs | 2 +- .../SavePnPTenantTemplateTests.cs | 2 +- .../TestPnPTenantTemplateTests.cs | 2 +- .../AddPnPHtmlPublishingPageLayoutTests.cs | 2 +- Tests/Publishing/AddPnPMasterPageTests.cs | 2 +- .../AddPnPPublishingImageRenditionTests.cs | 2 +- .../AddPnPPublishingPageLayoutTests.cs | 2 +- Tests/Publishing/AddPnPPublishingPageTests.cs | 2 +- Tests/Publishing/AddPnPWikiPageTests.cs | 2 +- .../GetPnPPublishingImageRenditionTests.cs | 2 +- .../Publishing/GetPnPWikiPageContentTests.cs | 2 +- .../RemovePnPPublishingImageRenditionTests.cs | 2 +- Tests/Publishing/RemovePnPWikiPageTests.cs | 2 +- .../SetPnPAvailablePageLayoutsTests.cs | 2 +- .../SetPnPDefaultPageLayoutTests.cs | 2 +- .../Publishing/SetPnPWikiPageContentTests.cs | 2 +- .../ClearPnPListItemAsRecordTests.cs | 2 +- ...PnPInPlaceRecordsManagementForSiteTests.cs | 2 +- ...PnPInPlaceRecordsManagementForSiteTests.cs | 2 +- .../GetPnPInPlaceRecordsManagementTests.cs | 2 +- .../GetPnPListRecordDeclarationTests.cs | 2 +- .../SetPnPInPlaceRecordsManagementTests.cs | 2 +- .../SetPnPListItemAsRecordTests.cs | 2 +- .../SetPnPListRecordDeclarationTests.cs | 2 +- .../TestPnPListItemIsRecordTests.cs | 2 +- .../RecycleBin/ClearPnPRecycleBinItemTests.cs | 2 +- .../ClearPnPTenantRecycleBinItemTests.cs | 2 +- Tests/RecycleBin/GetPnPRecycleBinItemTests.cs | 2 +- .../GetPnPTenantRecycleBinItemTests.cs | 2 +- .../RecycleBin/MovePnPRecycleBinItemTests.cs | 2 +- .../RestorePnPRecycleBinItemTests.cs | 2 +- .../RestorePnPTenantRecycleBinItemTests.cs | 2 +- .../Search/GetPnPSearchConfigurationTests.cs | 2 +- Tests/Search/GetPnPSearchCrawlLogTests.cs | 2 +- Tests/Search/GetPnPSearchSettingsTests.cs | 2 +- .../GetPnPSiteSearchQueryResultsTests.cs | 2 +- .../RemovePnPSearchConfigurationTests.cs | 2 +- .../Search/SetPnPSearchConfigurationTests.cs | 2 +- Tests/Search/SetPnPSearchSettingsTests.cs | 2 +- Tests/Search/SubmitPnPSearchQueryTests.cs | 2 +- Tests/Site/AddPnPRoleDefinitionTests.cs | 2 +- Tests/Site/AddPnPSiteCollectionAdminTests.cs | 2 +- Tests/Site/AddPnPTeamsTeamTests.cs | 2 +- ...isablePnPSharingForNonOwnersOfSiteTests.cs | 2 +- Tests/Site/EnablePnPCommSiteTests.cs | 2 +- Tests/Site/GetPnPAuditingTests.cs | 2 +- Tests/Site/GetPnPIsSiteAliasAvailableTests.cs | 2 +- Tests/Site/GetPnPRoleDefinitionTests.cs | 2 +- .../GetPnPSharingForNonOwnersOfSiteTests.cs | 2 +- Tests/Site/GetPnPSiteCollectionAdminTests.cs | 2 +- Tests/Site/GetPnPSiteTests.cs | 2 +- Tests/Site/InstallPnPSolutionTests.cs | 2 +- Tests/Site/NewPnPSiteTests.cs | 2 +- Tests/Site/RemovePnPRoleDefinitionTests.cs | 2 +- .../Site/RemovePnPSiteCollectionAdminTests.cs | 2 +- Tests/Site/SetPnPAppSideLoadingTests.cs | 2 +- Tests/Site/SetPnPAuditingTests.cs | 2 +- Tests/Site/SetPnPSiteTests.cs | 2 +- .../TestPnPOffice365GroupAliasIsUsedTests.cs | 2 +- Tests/Site/UninstallPnPSolutionTests.cs | 2 +- .../SiteDesigns/AddPnPSiteDesignTaskTests.cs | 2 +- Tests/SiteDesigns/AddPnPSiteDesignTests.cs | 2 +- Tests/SiteDesigns/AddPnPSiteScriptTests.cs | 2 +- .../GetPnPSiteDesignRightsTests.cs | 2 +- .../GetPnPSiteDesignRunStatusTests.cs | 2 +- Tests/SiteDesigns/GetPnPSiteDesignRunTests.cs | 2 +- .../SiteDesigns/GetPnPSiteDesignTaskTests.cs | 2 +- Tests/SiteDesigns/GetPnPSiteDesignTests.cs | 2 +- .../GetPnPSiteScriptFromListTests.cs | 2 +- .../GetPnPSiteScriptFromWebTests.cs | 2 +- Tests/SiteDesigns/GetPnPSiteScriptTests.cs | 2 +- .../GrantPnPSiteDesignRightsTests.cs | 2 +- Tests/SiteDesigns/InvokePnPSiteDesignTests.cs | 2 +- .../RemovePnPSiteDesignTaskTests.cs | 2 +- Tests/SiteDesigns/RemovePnPSiteDesignTests.cs | 2 +- Tests/SiteDesigns/RemovePnPSiteScriptTests.cs | 2 +- .../RevokePnPSiteDesignRightsTests.cs | 2 +- Tests/SiteDesigns/SetPnPSiteDesignTests.cs | 2 +- Tests/SiteDesigns/SetPnPSiteScriptTests.cs | 2 +- Tests/Taxonomy/ExportPnPTaxonomyTests.cs | 2 +- .../Taxonomy/ExportPnPTermGroupToXmlTests.cs | 2 +- .../GetPnPSiteCollectionTermStoreTests.cs | 2 +- Tests/Taxonomy/GetPnPTaxonomyItemTests.cs | 2 +- Tests/Taxonomy/GetPnPTaxonomySessionTests.cs | 2 +- Tests/Taxonomy/GetPnPTermGroupTests.cs | 2 +- Tests/Taxonomy/GetPnPTermSetTests.cs | 2 +- Tests/Taxonomy/GetPnPTermTests.cs | 2 +- Tests/Taxonomy/ImportPnPTaxonomyTests.cs | 2 +- .../ImportPnPTermGroupFromXmlTests.cs | 2 +- Tests/Taxonomy/ImportPnPTermSetTests.cs | 2 +- Tests/Taxonomy/NewPnPTermGroupTests.cs | 2 +- Tests/Taxonomy/NewPnPTermLabelTests.cs | 2 +- Tests/Taxonomy/NewPnPTermSetTests.cs | 2 +- Tests/Taxonomy/NewPnPTermTests.cs | 2 +- Tests/Taxonomy/RemovePnPTaxonomyItemTests.cs | 2 +- Tests/Taxonomy/RemovePnPTermGroupTests.cs | 2 +- .../Taxonomy/SetPnPTaxonomyFieldValueTests.cs | 2 +- Tests/TestCommon.cs | 4 +- .../GetPnPUPABulkImportStatusTests.cs | 2 +- .../GetPnPUserOneDriveQuotaTests.cs | 2 +- .../GetPnPUserProfilePropertyTests.cs | 2 +- Tests/UserProfiles/NewPnPPersonalSiteTests.cs | 2 +- .../NewPnPUPABulkImportJobTests.cs | 2 +- ...ResetPnPUserOneDriveQuotaToDefaultTests.cs | 2 +- .../SetPnPUserOneDriveQuotaTests.cs | 2 +- .../SetPnPUserProfilePropertyTests.cs | 2 +- Tests/Utilities/SendPnPMailTests.cs | 2 +- .../WebParts/AddPnPClientSideWebPartTests.cs | 2 +- .../AddPnPWebPartToWebPartPageTests.cs | 2 +- .../WebParts/AddPnPWebPartToWikiPageTests.cs | 2 +- Tests/WebParts/GetPnPWebPartPropertyTests.cs | 2 +- Tests/WebParts/GetPnPWebPartTests.cs | 2 +- Tests/WebParts/GetPnPWebPartXmlTests.cs | 2 +- Tests/WebParts/RemovePnPWebPartTests.cs | 2 +- Tests/WebParts/SetPnPWebPartPropertyTests.cs | 2 +- .../AddPnPWebhookSubscriptionTests.cs | 2 +- .../GetPnPWebhookSubscriptionsTests.cs | 2 +- .../RemovePnPWebhookSubscriptionTests.cs | 2 +- .../SetPnPWebhookSubscriptionTests.cs | 2 +- Tests/Webs/AddPnPIndexedPropertyTests.cs | 2 +- Tests/Webs/GetPnPAvailableLanguageTests.cs | 2 +- Tests/Webs/GetPnPIndexedPropertyKeysTests.cs | 2 +- Tests/Webs/GetPnPPropertyBagTests.cs | 2 +- Tests/Webs/GetPnPRequestAccessEmailsTests.cs | 2 +- Tests/Webs/GetPnPSubWebsTests.cs | 2 +- Tests/Webs/GetPnPWebTemplatesTests.cs | 2 +- Tests/Webs/GetPnPWebTests.cs | 2 +- Tests/Webs/InvokePnPWebActionTests.cs | 2 +- Tests/Webs/NewPnPWebTests.cs | 2 +- Tests/Webs/RemovePnPIndexedPropertyTests.cs | 2 +- Tests/Webs/RemovePnPPropertyBagValueTests.cs | 2 +- Tests/Webs/RemovePnPWebTests.cs | 2 +- Tests/Webs/RequestPnPReIndexWebTests.cs | 2 +- Tests/Webs/SetPnPIndexedPropertiesTests.cs | 2 +- Tests/Webs/SetPnPPropertyBagValueTests.cs | 2 +- Tests/Webs/SetPnPRequestAccessEmailsTests.cs | 2 +- Tests/Webs/SetPnPWebPermissionTests.cs | 2 +- Tests/Webs/SetPnPWebTests.cs | 2 +- .../AddPnPWorkflowDefinitionTests.cs | 2 +- .../AddPnPWorkflowSubscriptionTests.cs | 2 +- .../GetPnPWorkflowDefinitionTests.cs | 2 +- .../Workflows/GetPnPWorkflowInstanceTests.cs | 2 +- .../GetPnPWorkflowSubscriptionTests.cs | 2 +- .../RemovePnPWorkflowDefinitionTests.cs | 2 +- .../RemovePnPWorkflowSubscriptionTests.cs | 2 +- .../ResumePnPWorkflowInstanceTests.cs | 2 +- .../StartPnPWorkflowInstanceTests.cs | 2 +- .../Workflows/StopPnPWorkflowInstanceTests.cs | 2 +- 1136 files changed, 2383 insertions(+), 2412 deletions(-) rename Commands/ModuleFiles/{SharePointPnP.PowerShell.2013.Commands.Format.ps1xml => PnP.PowerShell.2013.Commands.Format.ps1xml} (99%) rename Commands/ModuleFiles/{SharePointPnP.PowerShell.2016.Commands.Format.ps1xml => PnP.PowerShell.2016.Commands.Format.ps1xml} (99%) rename Commands/ModuleFiles/{SharePointPnP.PowerShell.2019.Commands.Format.ps1xml => PnP.PowerShell.2019.Commands.Format.ps1xml} (99%) rename Commands/ModuleFiles/{SharePointPnP.PowerShell.Online.Commands.Format.ps1xml => PnP.PowerShell.Online.Commands.Format.ps1xml} (99%) rename Commands/{SharePointPnP.PowerShell.Commands.csproj => PnP.PowerShell.Commands.csproj} (99%) rename HelpAttributes/{SharePointPnP.PowerShell.CmdletHelpAttributes.csproj => PnP.PowerShell.CmdletHelpAttributes.csproj} (100%) rename ModuleFilesGenerator/{SharePointPnP.PowerShell.ModuleFilesGenerator.csproj => PnP.PowerShell.ModuleFilesGenerator.csproj} (95%) rename Tests/{SharePointPnP.PowerShell.Tests.csproj => PnP.PowerShell.Tests.csproj} (99%) diff --git a/Commands/Admin/AddHubSiteAssociation.cs b/Commands/Admin/AddHubSiteAssociation.cs index a032f2e67..9d1a745a8 100644 --- a/Commands/Admin/AddHubSiteAssociation.cs +++ b/Commands/Admin/AddHubSiteAssociation.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPHubSiteAssociation")] [Alias("Connect-PnPHubSite")] diff --git a/Commands/Admin/AddMicrosoft365GroupToSite.cs b/Commands/Admin/AddMicrosoft365GroupToSite.cs index 619b37a1c..845848a73 100644 --- a/Commands/Admin/AddMicrosoft365GroupToSite.cs +++ b/Commands/Admin/AddMicrosoft365GroupToSite.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPMicrosoft365GroupToSite")] [CmdletHelp("Groupifies a classic team site by creating a Microsoft 365 group for it and connecting the site with the newly created group", diff --git a/Commands/Admin/AddOrgAssetsLibrary.cs b/Commands/Admin/AddOrgAssetsLibrary.cs index 5564af267..b0b194cb6 100644 --- a/Commands/Admin/AddOrgAssetsLibrary.cs +++ b/Commands/Admin/AddOrgAssetsLibrary.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPOrgAssetsLibrary")] [CmdletHelp("Adds a given document library as a organizational asset source", diff --git a/Commands/Admin/AddOrgNewsSite.cs b/Commands/Admin/AddOrgNewsSite.cs index 1e26bcd77..dbde3bbec 100644 --- a/Commands/Admin/AddOrgNewsSite.cs +++ b/Commands/Admin/AddOrgNewsSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPOrgNewsSite")] [CmdletHelp("Adds the site as an organization news source in your tenant", diff --git a/Commands/Admin/AddSiteCollectionAppCatalog.cs b/Commands/Admin/AddSiteCollectionAppCatalog.cs index 230104d22..03963d74d 100644 --- a/Commands/Admin/AddSiteCollectionAppCatalog.cs +++ b/Commands/Admin/AddSiteCollectionAppCatalog.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPSiteCollectionAppCatalog")] [CmdletHelp("Adds a Site Collection scoped App Catalog to a site", diff --git a/Commands/Admin/AddTenantCdnOrigin.cs b/Commands/Admin/AddTenantCdnOrigin.cs index a09a29101..0579ea8f6 100644 --- a/Commands/Admin/AddTenantCdnOrigin.cs +++ b/Commands/Admin/AddTenantCdnOrigin.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPTenantCdnOrigin")] [CmdletHelp("Adds a new origin to the public or private content delivery network (CDN).", diff --git a/Commands/Admin/AddTenantTheme.cs b/Commands/Admin/AddTenantTheme.cs index 4643c8971..b1490abf9 100644 --- a/Commands/Admin/AddTenantTheme.cs +++ b/Commands/Admin/AddTenantTheme.cs @@ -1,17 +1,17 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; using Newtonsoft.Json; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Add, "PnPTenantTheme")] [CmdletHelp("Adds or updates a theme to the tenant.", diff --git a/Commands/Admin/ClearTenantAppCatalogUrl.cs b/Commands/Admin/ClearTenantAppCatalogUrl.cs index f492105ad..69c2d7399 100644 --- a/Commands/Admin/ClearTenantAppCatalogUrl.cs +++ b/Commands/Admin/ClearTenantAppCatalogUrl.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Clear, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)] [CmdletHelp(@"Removes the url of the tenant scoped app catalog. It will not delete the site collection itself.", diff --git a/Commands/Admin/GetHideDefaultThemes.cs b/Commands/Admin/GetHideDefaultThemes.cs index e6502f1ce..f445e68ea 100644 --- a/Commands/Admin/GetHideDefaultThemes.cs +++ b/Commands/Admin/GetHideDefaultThemes.cs @@ -1,17 +1,17 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPHideDefaultThemes")] [CmdletHelp(@"Returns if the default / OOTB themes should be visible to users or not.", diff --git a/Commands/Admin/GetHomeSite.cs b/Commands/Admin/GetHomeSite.cs index 684c88368..60c0d4fe9 100644 --- a/Commands/Admin/GetHomeSite.cs +++ b/Commands/Admin/GetHomeSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPHomeSite")] [CmdletHelp("Returns the home site url for your tenant", diff --git a/Commands/Admin/GetHubSite.cs b/Commands/Admin/GetHubSite.cs index 9c95fafe1..11e83ab36 100644 --- a/Commands/Admin/GetHubSite.cs +++ b/Commands/Admin/GetHubSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPHubSite")] [CmdletHelp(@"Retrieve all or a specific hubsite.", diff --git a/Commands/Admin/GetHubSiteChild.cs b/Commands/Admin/GetHubSiteChild.cs index 1527c08ba..908b75dd2 100644 --- a/Commands/Admin/GetHubSiteChild.cs +++ b/Commands/Admin/GetHubSiteChild.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPHubSiteChild")] [CmdletHelp(@"Retrieves all sites linked to a specific hub site", diff --git a/Commands/Admin/GetKnowledgeHubSite.cs b/Commands/Admin/GetKnowledgeHubSite.cs index c251d3378..b5806398b 100644 --- a/Commands/Admin/GetKnowledgeHubSite.cs +++ b/Commands/Admin/GetKnowledgeHubSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPKnowledgeHubSite")] [CmdletHelp("Gets the Knowledge Hub Site URL for your tenant", diff --git a/Commands/Admin/GetOrgAssetsLibrary.cs b/Commands/Admin/GetOrgAssetsLibrary.cs index a1a2663e5..39a939a55 100644 --- a/Commands/Admin/GetOrgAssetsLibrary.cs +++ b/Commands/Admin/GetOrgAssetsLibrary.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPOrgAssetsLibrary")] [CmdletHelp("Returns the list of all the configured organizational asset libraries", diff --git a/Commands/Admin/GetOrgNewsSite.cs b/Commands/Admin/GetOrgNewsSite.cs index 2a59a3a56..2fe9808e2 100644 --- a/Commands/Admin/GetOrgNewsSite.cs +++ b/Commands/Admin/GetOrgNewsSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPOrgNewsSite")] [CmdletHelp("Returns the list of all the configured organizational news sites.", diff --git a/Commands/Admin/GetStorageEntity.cs b/Commands/Admin/GetStorageEntity.cs index cefb1161a..a60a2c7a3 100644 --- a/Commands/Admin/GetStorageEntity.cs +++ b/Commands/Admin/GetStorageEntity.cs @@ -3,14 +3,14 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPStorageEntity", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieve Storage Entities / Farm Properties from either the Tenant App Catalog or from the current site if it has a site scope app catalog.", diff --git a/Commands/Admin/GetTenant.cs b/Commands/Admin/GetTenant.cs index 5fda14a69..737630d93 100644 --- a/Commands/Admin/GetTenant.cs +++ b/Commands/Admin/GetTenant.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenant")] [CmdletHelp(@"Returns organization-level site collection properties", diff --git a/Commands/Admin/GetTenantAppCatalogUrl.cs b/Commands/Admin/GetTenantAppCatalogUrl.cs index fcfb0454b..bf76f233e 100644 --- a/Commands/Admin/GetTenantAppCatalogUrl.cs +++ b/Commands/Admin/GetTenantAppCatalogUrl.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieves the url of the tenant scoped app catalog", diff --git a/Commands/Admin/GetTenantCdnEnabled.cs b/Commands/Admin/GetTenantCdnEnabled.cs index ca695b9a7..32da466ab 100644 --- a/Commands/Admin/GetTenantCdnEnabled.cs +++ b/Commands/Admin/GetTenantCdnEnabled.cs @@ -1,16 +1,16 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenantCdnEnabled")] [CmdletHelp("Retrieves if the Office 365 Content Delivery Network has been enabled.", diff --git a/Commands/Admin/GetTenantCdnOrigin.cs b/Commands/Admin/GetTenantCdnOrigin.cs index 319ae439b..793e8cb3c 100644 --- a/Commands/Admin/GetTenantCdnOrigin.cs +++ b/Commands/Admin/GetTenantCdnOrigin.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenantCdnOrigin")] [CmdletHelp("Returns the current registered origins from the public or private content delivery network (CDN).", diff --git a/Commands/Admin/GetTenantCdnPolicies.cs b/Commands/Admin/GetTenantCdnPolicies.cs index 363f38268..819906a82 100644 --- a/Commands/Admin/GetTenantCdnPolicies.cs +++ b/Commands/Admin/GetTenantCdnPolicies.cs @@ -1,16 +1,16 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenantCdnPolicies")] [CmdletHelp("Returns the CDN Policies for the specified CDN (Public | Private).", diff --git a/Commands/Admin/GetTenantId.cs b/Commands/Admin/GetTenantId.cs index aa8af9754..550245448 100644 --- a/Commands/Admin/GetTenantId.cs +++ b/Commands/Admin/GetTenantId.cs @@ -1,8 +1,8 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; using Newtonsoft.Json.Linq; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Collections.Generic; using System.Linq; @@ -11,7 +11,7 @@ using System.Threading.Tasks; using System.Web; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenantId")] [CmdletHelp(@"Returns the Tenant ID", diff --git a/Commands/Admin/GetTenantSite.cs b/Commands/Admin/GetTenantSite.cs index e497f66df..64170c53b 100644 --- a/Commands/Admin/GetTenantSite.cs +++ b/Commands/Admin/GetTenantSite.cs @@ -4,12 +4,12 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPTenantSite", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieve site information.", "Use this cmdlet to retrieve site information from your tenant administration.", diff --git a/Commands/Admin/GetTenantSyncClientRestriction.cs b/Commands/Admin/GetTenantSyncClientRestriction.cs index f6055ef62..857793cf7 100644 --- a/Commands/Admin/GetTenantSyncClientRestriction.cs +++ b/Commands/Admin/GetTenantSyncClientRestriction.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenantSyncClientRestriction")] [CmdletHelp(@"Returns organization-level OneDrive synchronization restriction settings", diff --git a/Commands/Admin/GetTenantTheme.cs b/Commands/Admin/GetTenantTheme.cs index 1633c7bfd..c989794a2 100644 --- a/Commands/Admin/GetTenantTheme.cs +++ b/Commands/Admin/GetTenantTheme.cs @@ -1,16 +1,16 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Get, "PnPTenantTheme")] [CmdletHelp("Returns all or a specific theme", diff --git a/Commands/Admin/GetTimeZoneId.cs b/Commands/Admin/GetTimeZoneId.cs index 9cf0d4e18..b8d009c24 100644 --- a/Commands/Admin/GetTimeZoneId.cs +++ b/Commands/Admin/GetTimeZoneId.cs @@ -1,10 +1,10 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPTimeZoneId")] [CmdletHelp("Returns a time zone ID", diff --git a/Commands/Admin/GetWebTemplates.cs b/Commands/Admin/GetWebTemplates.cs index 7992d2c43..79e4417ef 100644 --- a/Commands/Admin/GetWebTemplates.cs +++ b/Commands/Admin/GetWebTemplates.cs @@ -1,9 +1,9 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPWebTemplates")] [CmdletHelp(@"Returns the available classic web templates", diff --git a/Commands/Admin/GrantHubSiteRights.cs b/Commands/Admin/GrantHubSiteRights.cs index 27738f3cc..7c0059478 100644 --- a/Commands/Admin/GrantHubSiteRights.cs +++ b/Commands/Admin/GrantHubSiteRights.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsSecurity.Grant, "PnPHubSiteRights")] [CmdletHelp(@"Grant additional permissions to the permissions already in place to associate sites to Hub Sites for one or more specific users", diff --git a/Commands/Admin/NewSite.cs b/Commands/Admin/NewSite.cs index dc876ec1d..f9a27aa28 100644 --- a/Commands/Admin/NewSite.cs +++ b/Commands/Admin/NewSite.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; using System; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.New, "PnPSite")] [CmdletHelp("Creates either a communication site or a Microsoft 365 group-connected team site", diff --git a/Commands/Admin/NewTenantSite.cs b/Commands/Admin/NewTenantSite.cs index 02a3aa2ee..eed4c03e8 100644 --- a/Commands/Admin/NewTenantSite.cs +++ b/Commands/Admin/NewTenantSite.cs @@ -3,13 +3,13 @@ #if ONPREMISES using OfficeDevPnP.Core.Entities; #endif -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Management.Automation; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.New, "PnPTenantSite")] [CmdletHelp("Creates a new (classic) site collection for the current tenant", diff --git a/Commands/Admin/RegisterAppCatalogSite.cs b/Commands/Admin/RegisterAppCatalogSite.cs index cd78880db..f9b36cf29 100644 --- a/Commands/Admin/RegisterAppCatalogSite.cs +++ b/Commands/Admin/RegisterAppCatalogSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Register, "PnPAppCatalogSite")] [CmdletHelp("Creates a new App Catalog Site and sets this site as the Tenant App Catalog", diff --git a/Commands/Admin/RegisterHubSite.cs b/Commands/Admin/RegisterHubSite.cs index e9c565a66..cf0b9038c 100644 --- a/Commands/Admin/RegisterHubSite.cs +++ b/Commands/Admin/RegisterHubSite.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsLifecycle.Register, "PnPHubSite")] [CmdletHelp("Registers a site as a hubsite", diff --git a/Commands/Admin/RemoveHomeSite.cs b/Commands/Admin/RemoveHomeSite.cs index 583e5edb4..d7e3dcbd3 100644 --- a/Commands/Admin/RemoveHomeSite.cs +++ b/Commands/Admin/RemoveHomeSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPHomeSite")] [CmdletHelp("Removes the currently set site as the home site", diff --git a/Commands/Admin/RemoveHubSiteAssociation.cs b/Commands/Admin/RemoveHubSiteAssociation.cs index a5f5de1da..df3ac4781 100644 --- a/Commands/Admin/RemoveHubSiteAssociation.cs +++ b/Commands/Admin/RemoveHubSiteAssociation.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPHubSiteAssociation")] [Alias("Disconnect-PnPHubSite")] diff --git a/Commands/Admin/RemoveKnowledgeHubSite.cs b/Commands/Admin/RemoveKnowledgeHubSite.cs index fe49a4b2c..fab79b114 100644 --- a/Commands/Admin/RemoveKnowledgeHubSite.cs +++ b/Commands/Admin/RemoveKnowledgeHubSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPKnowledgeHubSite")] [CmdletHelp("Removes the Knowledge Hub Site setting for your tenant", diff --git a/Commands/Admin/RemoveOrgAssetsLibrary.cs b/Commands/Admin/RemoveOrgAssetsLibrary.cs index b23985fc5..fa51141c3 100644 --- a/Commands/Admin/RemoveOrgAssetsLibrary.cs +++ b/Commands/Admin/RemoveOrgAssetsLibrary.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPOrgAssetsLibrary")] [CmdletHelp("Removes a given document library as a organizational asset source", diff --git a/Commands/Admin/RemoveOrgNewsSite.cs b/Commands/Admin/RemoveOrgNewsSite.cs index ffd1247e9..8d6ba3ba9 100644 --- a/Commands/Admin/RemoveOrgNewsSite.cs +++ b/Commands/Admin/RemoveOrgNewsSite.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPOrgNewsSite")] [CmdletHelp("Removes a given site from the list of organizational news sites.", diff --git a/Commands/Admin/RemoveSiteCollectionAppCatalog.cs b/Commands/Admin/RemoveSiteCollectionAppCatalog.cs index 985284b64..7374eb5ca 100644 --- a/Commands/Admin/RemoveSiteCollectionAppCatalog.cs +++ b/Commands/Admin/RemoveSiteCollectionAppCatalog.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPSiteCollectionAppCatalog")] [CmdletHelp("Removes a Site Collection scoped App Catalog from a site", diff --git a/Commands/Admin/RemoveStorageEntity.cs b/Commands/Admin/RemoveStorageEntity.cs index 0918d64d9..7468642b6 100644 --- a/Commands/Admin/RemoveStorageEntity.cs +++ b/Commands/Admin/RemoveStorageEntity.cs @@ -3,14 +3,14 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPStorageEntity", SupportsShouldProcess = true)] [CmdletHelp(@"Remove Storage Entities / Farm Properties from either the tenant scoped app catalog or the current site collection if the site has a site collection scoped app catalog", diff --git a/Commands/Admin/RemoveTenantCdnOrigin.cs b/Commands/Admin/RemoveTenantCdnOrigin.cs index 50c4da6d4..5732b51ee 100644 --- a/Commands/Admin/RemoveTenantCdnOrigin.cs +++ b/Commands/Admin/RemoveTenantCdnOrigin.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPTenantCdnOrigin")] [CmdletHelp("Removes an origin from the Public or Private content delivery network (CDN).", diff --git a/Commands/Admin/RemoveTenantSite.cs b/Commands/Admin/RemoveTenantSite.cs index c4db5ed07..69ddfc1b4 100644 --- a/Commands/Admin/RemoveTenantSite.cs +++ b/Commands/Admin/RemoveTenantSite.cs @@ -1,12 +1,12 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using System; using OfficeDevPnP.Core; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPTenantSite", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = false)] [CmdletHelp("Removes a site collection", diff --git a/Commands/Admin/RemoveTenantTheme.cs b/Commands/Admin/RemoveTenantTheme.cs index c42891102..f4abcba4a 100644 --- a/Commands/Admin/RemoveTenantTheme.cs +++ b/Commands/Admin/RemoveTenantTheme.cs @@ -1,16 +1,16 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Remove, "PnPTenantTheme")] [CmdletHelp("Removes a theme", diff --git a/Commands/Admin/RevokeHubSiteRights.cs b/Commands/Admin/RevokeHubSiteRights.cs index 45ea21098..4c18fa450 100644 --- a/Commands/Admin/RevokeHubSiteRights.cs +++ b/Commands/Admin/RevokeHubSiteRights.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsSecurity.Revoke, "PnPHubSiteRights")] [CmdletHelp(@"Revoke permissions to the permissions already in place to associate sites to Hub Sites for one or more specific users", diff --git a/Commands/Admin/SetHideDefaultThemes.cs b/Commands/Admin/SetHideDefaultThemes.cs index bdd39664d..b3ba794e4 100644 --- a/Commands/Admin/SetHideDefaultThemes.cs +++ b/Commands/Admin/SetHideDefaultThemes.cs @@ -1,17 +1,17 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPHideDefaultThemes")] [CmdletHelp(@"Defines if the default / OOTB themes should be visible to users or not.", diff --git a/Commands/Admin/SetHomeSite.cs b/Commands/Admin/SetHomeSite.cs index 6f677d162..fa331f93f 100644 --- a/Commands/Admin/SetHomeSite.cs +++ b/Commands/Admin/SetHomeSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPHomeSite")] [CmdletHelp("Sets the home site for your tenant", diff --git a/Commands/Admin/SetHubSite.cs b/Commands/Admin/SetHubSite.cs index 3f879c705..5274baebf 100644 --- a/Commands/Admin/SetHubSite.cs +++ b/Commands/Admin/SetHubSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPHubSite")] [CmdletHelp(@"Sets hub site properties", "Allows configuring a hub site", diff --git a/Commands/Admin/SetKnowledgeHubSite.cs b/Commands/Admin/SetKnowledgeHubSite.cs index a3e519f72..0a5218833 100644 --- a/Commands/Admin/SetKnowledgeHubSite.cs +++ b/Commands/Admin/SetKnowledgeHubSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPKnowledgeHubSite")] [CmdletHelp("Sets the Knowledge Hub Site for your tenant", diff --git a/Commands/Admin/SetStorageEntity.cs b/Commands/Admin/SetStorageEntity.cs index 31236204b..ef77c500a 100644 --- a/Commands/Admin/SetStorageEntity.cs +++ b/Commands/Admin/SetStorageEntity.cs @@ -3,14 +3,14 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPStorageEntity", SupportsShouldProcess = true)] [CmdletHelp(@"Set Storage Entities / Farm Properties in either the tenant scoped app catalog or the site collection app catalog.", diff --git a/Commands/Admin/SetTenant.cs b/Commands/Admin/SetTenant.cs index 9dae736b9..20d0edebe 100644 --- a/Commands/Admin/SetTenant.cs +++ b/Commands/Admin/SetTenant.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using System; using Microsoft.Online.SharePoint.TenantManagement; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPTenant", DefaultParameterSetName = ParameterAttribute.AllParameterSets)] [CmdletHelp(@"Sets organization-level site collection properties", diff --git a/Commands/Admin/SetTenantAppCatalogUrl.cs b/Commands/Admin/SetTenantAppCatalogUrl.cs index badb58485..97030f05b 100644 --- a/Commands/Admin/SetTenantAppCatalogUrl.cs +++ b/Commands/Admin/SetTenantAppCatalogUrl.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPTenantAppCatalogUrl", SupportsShouldProcess = true)] [CmdletHelp(@"Sets the url of the tenant scoped app catalog", diff --git a/Commands/Admin/SetTenantCdnEnabled.cs b/Commands/Admin/SetTenantCdnEnabled.cs index ec8a449bf..68395d918 100644 --- a/Commands/Admin/SetTenantCdnEnabled.cs +++ b/Commands/Admin/SetTenantCdnEnabled.cs @@ -1,16 +1,16 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPTenantCdnEnabled")] [CmdletHelp("Enables or disabled the public or private Office 365 Content Delivery Network (CDN).", diff --git a/Commands/Admin/SetTenantCdnPolicy.cs b/Commands/Admin/SetTenantCdnPolicy.cs index eec634e35..2d2a6b630 100644 --- a/Commands/Admin/SetTenantCdnPolicy.cs +++ b/Commands/Admin/SetTenantCdnPolicy.cs @@ -1,16 +1,16 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPTenantCdnPolicy")] [CmdletHelp("Sets the CDN Policies for the specified CDN (Public | Private).", diff --git a/Commands/Admin/SetTenantSite.cs b/Commands/Admin/SetTenantSite.cs index 17d52544b..cf78fc7ee 100644 --- a/Commands/Admin/SetTenantSite.cs +++ b/Commands/Admin/SetTenantSite.cs @@ -2,8 +2,8 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Collections.Generic; using OfficeDevPnP.Core; using OfficeDevPnP.Core.Entities; @@ -11,7 +11,7 @@ using System.Net; using System.Threading; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPTenantSite")] [CmdletHelp(@"Updates settings of a site collection", diff --git a/Commands/Admin/SetTenantSyncClientRestriction.cs b/Commands/Admin/SetTenantSyncClientRestriction.cs index b94d43e48..16d550336 100644 --- a/Commands/Admin/SetTenantSyncClientRestriction.cs +++ b/Commands/Admin/SetTenantSyncClientRestriction.cs @@ -1,15 +1,15 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; using System; using System.Collections.Generic; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.Commands.Model; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsCommon.Set, "PnPTenantSyncClientRestriction", DefaultParameterSetName = ParameterAttribute.AllParameterSets)] [CmdletHelp(@"Sets organization-level sync client restriction properties", diff --git a/Commands/Admin/UnregisterHubSite.cs b/Commands/Admin/UnregisterHubSite.cs index c45424a8d..26b2dcd54 100644 --- a/Commands/Admin/UnregisterHubSite.cs +++ b/Commands/Admin/UnregisterHubSite.cs @@ -3,12 +3,12 @@ using System.Linq; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsLifecycle.Unregister, "PnPHubSite")] [CmdletHelp("Unregisters a site as a hubsite", diff --git a/Commands/Apps/AddApp.cs b/Commands/Apps/AddApp.cs index 627047ada..275ef60f2 100644 --- a/Commands/Apps/AddApp.cs +++ b/Commands/Apps/AddApp.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.ALM; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsCommon.Add, "PnPApp")] [CmdletHelp("Add/uploads an available app to the app catalog", diff --git a/Commands/Apps/AddApplicationCustomizer.cs b/Commands/Apps/AddApplicationCustomizer.cs index c3b8a626d..46f841764 100644 --- a/Commands/Apps/AddApplicationCustomizer.cs +++ b/Commands/Apps/AddApplicationCustomizer.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Add, "PnPApplicationCustomizer")] [CmdletHelp("Adds a SharePoint Framework client side extension application customizer", diff --git a/Commands/Apps/ApproveTenantServicePrincipalPermissionRequest.cs b/Commands/Apps/ApproveTenantServicePrincipalPermissionRequest.cs index c018d14f0..deede9fb0 100644 --- a/Commands/Apps/ApproveTenantServicePrincipalPermissionRequest.cs +++ b/Commands/Apps/ApproveTenantServicePrincipalPermissionRequest.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Approve, "PnPTenantServicePrincipalPermissionRequest")] [CmdletHelp(@"Approves a permission request for the current tenant's ""SharePoint Online Client"" service principal", diff --git a/Commands/Apps/DenyTenantServicePrincipalPermissionRequest.cs b/Commands/Apps/DenyTenantServicePrincipalPermissionRequest.cs index c9f98399c..43f0ea786 100644 --- a/Commands/Apps/DenyTenantServicePrincipalPermissionRequest.cs +++ b/Commands/Apps/DenyTenantServicePrincipalPermissionRequest.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Deny, "PnPTenantServicePrincipalPermissionRequest")] [CmdletHelp(@"Denies a permission request for the current tenant's ""SharePoint Online Client"" service principal", diff --git a/Commands/Apps/DisableTenantServicePrincipal.cs b/Commands/Apps/DisableTenantServicePrincipal.cs index 36f6a7d26..9a6d99800 100644 --- a/Commands/Apps/DisableTenantServicePrincipal.cs +++ b/Commands/Apps/DisableTenantServicePrincipal.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Disable, "PnPTenantServicePrincipal", ConfirmImpact = ConfirmImpact.High)] [CmdletHelp(@"Enables the current tenant's ""SharePoint Online Client"" service principal.", diff --git a/Commands/Apps/EnableTenantServicePrincipal.cs b/Commands/Apps/EnableTenantServicePrincipal.cs index b9df7b8b7..ef0e1578b 100644 --- a/Commands/Apps/EnableTenantServicePrincipal.cs +++ b/Commands/Apps/EnableTenantServicePrincipal.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Enable, "PnPTenantServicePrincipal", ConfirmImpact = ConfirmImpact.High)] [CmdletHelp(@"Enables the current tenant's ""SharePoint Online Client"" service principal.", diff --git a/Commands/Apps/GetApp.cs b/Commands/Apps/GetApp.cs index 475953cc9..43e4abb50 100644 --- a/Commands/Apps/GetApp.cs +++ b/Commands/Apps/GetApp.cs @@ -2,15 +2,15 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using OfficeDevPnP.Core.ALM; using System; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using OfficeDevPnP.Core.Enums; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsCommon.Get, "PnPApp")] [CmdletHelp("Returns the available apps from the app catalog", diff --git a/Commands/Apps/GetAppInstance.cs b/Commands/Apps/GetAppInstance.cs index 8b1410fc4..5ad41bd66 100644 --- a/Commands/Apps/GetAppInstance.cs +++ b/Commands/Apps/GetAppInstance.cs @@ -3,10 +3,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { #if !ONPREMISES [Obsolete("Use Get-PnPApp instead")] diff --git a/Commands/Apps/GetApplicationCustomizer.cs b/Commands/Apps/GetApplicationCustomizer.cs index fe92f7f74..d24b1fbae 100644 --- a/Commands/Apps/GetApplicationCustomizer.cs +++ b/Commands/Apps/GetApplicationCustomizer.cs @@ -1,13 +1,13 @@ #if !SP2013 && !SP2016 using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPApplicationCustomizer", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = true)] [CmdletHelp("Returns all SharePoint Framework client side extension application customizers", diff --git a/Commands/Apps/GetTenantServicePrincipal.cs b/Commands/Apps/GetTenantServicePrincipal.cs index 75f4957eb..a1d0ae9d9 100644 --- a/Commands/Apps/GetTenantServicePrincipal.cs +++ b/Commands/Apps/GetTenantServicePrincipal.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsCommon.Get, "PnPTenantServicePrincipal")] [CmdletHelp(@"Returns the current tenant's ""SharePoint Online Client"" service principal.", diff --git a/Commands/Apps/GetTenantServicePrincipalPermissionGrants.cs b/Commands/Apps/GetTenantServicePrincipalPermissionGrants.cs index 6db482692..e34476f4e 100644 --- a/Commands/Apps/GetTenantServicePrincipalPermissionGrants.cs +++ b/Commands/Apps/GetTenantServicePrincipalPermissionGrants.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsCommon.Get, "PnPTenantServicePrincipalPermissionGrants")] [CmdletHelp(@"Gets the collection of permission grants for the ""SharePoint Online Client"" service principal", diff --git a/Commands/Apps/GetTenantServicePrincipalPermissionRequests.cs b/Commands/Apps/GetTenantServicePrincipalPermissionRequests.cs index ea0994a4f..00f60de30 100644 --- a/Commands/Apps/GetTenantServicePrincipalPermissionRequests.cs +++ b/Commands/Apps/GetTenantServicePrincipalPermissionRequests.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsCommon.Get, "PnPTenantServicePrincipalPermissionRequests")] [CmdletHelp(@"Gets the collection of permission requests for the ""SharePoint Online Client"" service principal", diff --git a/Commands/Apps/GrantTenantServicePrincipalPermission.cs b/Commands/Apps/GrantTenantServicePrincipalPermission.cs index 7a795a25e..a1080af2d 100644 --- a/Commands/Apps/GrantTenantServicePrincipalPermission.cs +++ b/Commands/Apps/GrantTenantServicePrincipalPermission.cs @@ -3,14 +3,14 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.ALM; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Enums; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Model; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsSecurity.Grant, "PnPTenantServicePrincipalPermission")] [CmdletHelp(@"Explicitly grants a specified permission to the ""SharePoint Online Client"" service principal", diff --git a/Commands/Apps/ImportAppPackage.cs b/Commands/Apps/ImportAppPackage.cs index 16c8e5594..94033d752 100644 --- a/Commands/Apps/ImportAppPackage.cs +++ b/Commands/Apps/ImportAppPackage.cs @@ -4,9 +4,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { #if!ONPREMISES [Obsolete("Use Add-PnPApp, Install-PnPApp instead")] diff --git a/Commands/Apps/InstallApp.cs b/Commands/Apps/InstallApp.cs index 6937f8620..266cf83a1 100644 --- a/Commands/Apps/InstallApp.cs +++ b/Commands/Apps/InstallApp.cs @@ -1,13 +1,13 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.ALM; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; using System.Threading; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Install, "PnPApp")] [CmdletHelp("Installs an available app from the app catalog", diff --git a/Commands/Apps/PublishApp.cs b/Commands/Apps/PublishApp.cs index 2bcc152a2..346064a25 100644 --- a/Commands/Apps/PublishApp.cs +++ b/Commands/Apps/PublishApp.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsData.Publish, "PnPApp")] [CmdletHelp("Publishes/Deploys/Trusts an available app in the app catalog", diff --git a/Commands/Apps/RemoveApp.cs b/Commands/Apps/RemoveApp.cs index 9d6f6891f..e88799265 100644 --- a/Commands/Apps/RemoveApp.cs +++ b/Commands/Apps/RemoveApp.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsCommon.Remove, "PnPApp")] [CmdletHelp("Removes an app from the app catalog", SupportedPlatform = CmdletSupportedPlatform.Online | CmdletSupportedPlatform.SP2019, diff --git a/Commands/Apps/RemoveApplicationCustomizer.cs b/Commands/Apps/RemoveApplicationCustomizer.cs index 26d0e3663..5be46f626 100644 --- a/Commands/Apps/RemoveApplicationCustomizer.cs +++ b/Commands/Apps/RemoveApplicationCustomizer.cs @@ -1,14 +1,14 @@ #if !SP2013 && !SP2016 using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Remove, "PnPApplicationCustomizer", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = true)] [CmdletHelp("Removes a SharePoint Framework client side extension application customizer", diff --git a/Commands/Apps/RevokeTenantServicePrincipalPermission.cs b/Commands/Apps/RevokeTenantServicePrincipalPermission.cs index 6243e0d4b..8cc9c5715 100644 --- a/Commands/Apps/RevokeTenantServicePrincipalPermission.cs +++ b/Commands/Apps/RevokeTenantServicePrincipalPermission.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration.Internal; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsSecurity.Revoke, "PnPTenantServicePrincipalPermission")] [CmdletHelp(@"Revokes a permission that was previously granted to the ""SharePoint Online Client"" service principal.", diff --git a/Commands/Apps/SetApplicationCustomizer.cs b/Commands/Apps/SetApplicationCustomizer.cs index 611540145..3a4e78831 100644 --- a/Commands/Apps/SetApplicationCustomizer.cs +++ b/Commands/Apps/SetApplicationCustomizer.cs @@ -1,13 +1,13 @@ #if !SP2013 && !SP2016 using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPApplicationCustomizer", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = true)] [CmdletHelp("Updates a SharePoint Framework client side extension application customizer", diff --git a/Commands/Apps/SyncAppToTeams.cs b/Commands/Apps/SyncAppToTeams.cs index aaa57ca14..ca241a29e 100644 --- a/Commands/Apps/SyncAppToTeams.cs +++ b/Commands/Apps/SyncAppToTeams.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsData.Sync, "PnPAppToTeams")] [CmdletHelp("Synchronize an app from the tenant app catalog to the Microsoft Teams app catalog", SupportedPlatform = CmdletSupportedPlatform.Online, diff --git a/Commands/Apps/UninstallApp.cs b/Commands/Apps/UninstallApp.cs index 645b07c35..850c0ed90 100644 --- a/Commands/Apps/UninstallApp.cs +++ b/Commands/Apps/UninstallApp.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; using System.Threading; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsLifecycle.Uninstall, "PnPApp")] [CmdletHelp("Uninstalls an available add-in from the site", diff --git a/Commands/Apps/UninstallAppInstance.cs b/Commands/Apps/UninstallAppInstance.cs index 30b9e4f16..77c54a58f 100644 --- a/Commands/Apps/UninstallAppInstance.cs +++ b/Commands/Apps/UninstallAppInstance.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { #if !ONPREMISES [Obsolete("Use Uninstall-PnPApp instead")] diff --git a/Commands/Apps/UnpublishApp.cs b/Commands/Apps/UnpublishApp.cs index 4ba0c2f98..959cb59da 100644 --- a/Commands/Apps/UnpublishApp.cs +++ b/Commands/Apps/UnpublishApp.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsData.Unpublish, "PnPApp")] [CmdletHelp("Unpublishes/retracts an available add-in from the app catalog", diff --git a/Commands/Apps/UpdateApp.cs b/Commands/Apps/UpdateApp.cs index c9d92d1a8..86f818488 100644 --- a/Commands/Apps/UpdateApp.cs +++ b/Commands/Apps/UpdateApp.cs @@ -1,12 +1,12 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.ALM; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Apps +namespace PnP.PowerShell.Commands.Apps { [Cmdlet(VerbsData.Update, "PnPApp")] [CmdletHelp("Updates an available app from the app catalog", diff --git a/Commands/Base/AddStoredCredential.cs b/Commands/Base/AddStoredCredential.cs index 6f5c6a0f2..2c3b35e3f 100644 --- a/Commands/Base/AddStoredCredential.cs +++ b/Commands/Base/AddStoredCredential.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using System.Security; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Add, "PnPStoredCredential")] #if !NETSTANDARD2_1 diff --git a/Commands/Base/BasePSCmdlet.cs b/Commands/Base/BasePSCmdlet.cs index b58c34016..cccff8916 100644 --- a/Commands/Base/BasePSCmdlet.cs +++ b/Commands/Base/BasePSCmdlet.cs @@ -3,7 +3,7 @@ using System.Management.Automation; using System.Reflection; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { /// /// Base class for all the PnP Cmdlets diff --git a/Commands/Base/ConnectOnline.cs b/Commands/Base/ConnectOnline.cs index ae5cb8d0d..267515a4b 100644 --- a/Commands/Base/ConnectOnline.cs +++ b/Commands/Base/ConnectOnline.cs @@ -1,8 +1,8 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Provider; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Provider; using System; using System.IO; using System.Linq; @@ -12,12 +12,12 @@ using File = System.IO.File; using System.Security.Cryptography.X509Certificates; using System.IdentityModel.Tokens.Jwt; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; #if !NETSTANDARD2_1 using System.Web.UI.WebControls; #endif -using SharePointPnP.PowerShell.Commands.Model; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Model; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Collections.Generic; #if !NETSTANDARD2_1 using System.Security.Cryptography; @@ -26,7 +26,7 @@ #if !ONPREMISES #endif -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommunications.Connect, "PnPOnline", SupportsShouldProcess = false, DefaultParameterSetName = ParameterSet_MAIN)] [CmdletHelp("Connect to a SharePoint site", @@ -977,7 +977,7 @@ private PnPConnection ConnectNativeAAD(string clientId, string redirectUrl) { #if !ONPREMISES string appDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); - string configFolder = Path.Combine(appDataFolder, "SharePointPnP.PowerShell"); + string configFolder = Path.Combine(appDataFolder, "PnP.PowerShell"); Directory.CreateDirectory(configFolder); // Ensure folder exists if (ClearTokenCache) { diff --git a/Commands/Base/Constants.cs b/Commands/Base/Constants.cs index c09918bed..af5f20aef 100644 --- a/Commands/Base/Constants.cs +++ b/Commands/Base/Constants.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Obsolete("Use OfficeDev/PnP.Core")] public static class Constants diff --git a/Commands/Base/DisablePowerShellTelemetry.cs b/Commands/Base/DisablePowerShellTelemetry.cs index bea5af6de..29cd13e34 100644 --- a/Commands/Base/DisablePowerShellTelemetry.cs +++ b/Commands/Base/DisablePowerShellTelemetry.cs @@ -1,4 +1,4 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; #if NETSTANDARD2_1 using System.IdentityModel.Tokens.Jwt; @@ -7,7 +7,7 @@ #endif using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsLifecycle.Disable, "PnPPowerShellTelemetry")] [CmdletHelp("Disables PnP PowerShell telemetry tracking", diff --git a/Commands/Base/DisconnectOnline.cs b/Commands/Base/DisconnectOnline.cs index 3e740d6d1..a764e7799 100644 --- a/Commands/Base/DisconnectOnline.cs +++ b/Commands/Base/DisconnectOnline.cs @@ -1,11 +1,11 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Linq; using System.Management.Automation; using System.Reflection; -using SharePointPnP.PowerShell.Commands.Provider; +using PnP.PowerShell.Commands.Provider; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommunications.Disconnect, "PnPOnline")] [CmdletHelp("Disconnects the context", diff --git a/Commands/Base/EnablePowerShellTelemetry.cs b/Commands/Base/EnablePowerShellTelemetry.cs index 3f0d27448..f86efc9a8 100644 --- a/Commands/Base/EnablePowerShellTelemetry.cs +++ b/Commands/Base/EnablePowerShellTelemetry.cs @@ -1,8 +1,8 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsLifecycle.Enable, "PnPPowerShellTelemetry")] [CmdletHelp("Enables PnP PowerShell telemetry tracking.", diff --git a/Commands/Base/GetAccessToken.cs b/Commands/Base/GetAccessToken.cs index da1a010ab..f65c87ae6 100644 --- a/Commands/Base/GetAccessToken.cs +++ b/Commands/Base/GetAccessToken.cs @@ -1,5 +1,5 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; #if NETSTANDARD2_1 @@ -11,7 +11,7 @@ using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPAccessToken")] [CmdletHelp("Returns the current OAuth Access token", diff --git a/Commands/Base/GetAppAuthAccessToken.cs b/Commands/Base/GetAppAuthAccessToken.cs index fbc30b40d..cea62a167 100644 --- a/Commands/Base/GetAppAuthAccessToken.cs +++ b/Commands/Base/GetAppAuthAccessToken.cs @@ -1,10 +1,10 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Commands.Properties; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPAppAuthAccessToken")] [CmdletHelp("Returns the access token", diff --git a/Commands/Base/GetAuthenticationRealm.cs b/Commands/Base/GetAuthenticationRealm.cs index 8c4db8f65..aad5c1cee 100644 --- a/Commands/Base/GetAuthenticationRealm.cs +++ b/Commands/Base/GetAuthenticationRealm.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Net; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPAuthenticationRealm")] [CmdletHelp("Returns the authentication realm", diff --git a/Commands/Base/GetAzureCertificate.cs b/Commands/Base/GetAzureCertificate.cs index 8eb67ed7c..dd21ef915 100644 --- a/Commands/Base/GetAzureCertificate.cs +++ b/Commands/Base/GetAzureCertificate.cs @@ -1,13 +1,13 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; using System.IO; using System.Security; using System.Security.Cryptography.X509Certificates; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPAzureCertificate", DefaultParameterSetName = "SELF")] [CmdletHelp(@"Get PEM values and manifest settings for an existing certificate (.pfx) for use when using CSOM via an app-only ADAL application. diff --git a/Commands/Base/GetConnection.cs b/Commands/Base/GetConnection.cs index 937cd54cf..d1bb9dd40 100644 --- a/Commands/Base/GetConnection.cs +++ b/Commands/Base/GetConnection.cs @@ -1,9 +1,9 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Commands.Properties; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPConnection")] [CmdletHelp("Returns the current context", diff --git a/Commands/Base/GetContext.cs b/Commands/Base/GetContext.cs index 824ec02e1..49dff2590 100644 --- a/Commands/Base/GetContext.cs +++ b/Commands/Base/GetContext.cs @@ -1,9 +1,9 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Commands.Properties; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPContext")] [CmdletHelp("Returns the current context", diff --git a/Commands/Base/GetException.cs b/Commands/Base/GetException.cs index bfdc3cf9d..4cbb791a6 100644 --- a/Commands/Base/GetException.cs +++ b/Commands/Base/GetException.cs @@ -1,11 +1,11 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Model; using System; using System.Collections; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPException")] [CmdletHelp("Returns the last exception that occurred", diff --git a/Commands/Base/GetHealthScore.cs b/Commands/Base/GetHealthScore.cs index 50b988eb1..a39433b06 100644 --- a/Commands/Base/GetHealthScore.cs +++ b/Commands/Base/GetHealthScore.cs @@ -1,9 +1,9 @@ using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPHealthScore")] [CmdletHelp("Retrieves the healthscore of the site given in his Url parameter or from the current connection if the Url parameter is not provided", diff --git a/Commands/Base/GetPowerShellTelemetryEnabled.cs b/Commands/Base/GetPowerShellTelemetryEnabled.cs index e342ef5fc..c99c7177b 100644 --- a/Commands/Base/GetPowerShellTelemetryEnabled.cs +++ b/Commands/Base/GetPowerShellTelemetryEnabled.cs @@ -1,7 +1,7 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPPowerShellTelemetryEnabled")] [CmdletHelp("Returns true if the PnP PowerShell Telemetry has been enabled.", diff --git a/Commands/Base/GetProperty.cs b/Commands/Base/GetProperty.cs index 353d6a0fd..f83000e19 100644 --- a/Commands/Base/GetProperty.cs +++ b/Commands/Base/GetProperty.cs @@ -1,10 +1,10 @@ using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Linq.Expressions; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPProperty")] [CmdletHelp("Returns a previously not loaded property of a ClientObject", diff --git a/Commands/Base/GetStoredCredential.cs b/Commands/Base/GetStoredCredential.cs index 0d6b7ddb5..9d3be1b1b 100644 --- a/Commands/Base/GetStoredCredential.cs +++ b/Commands/Base/GetStoredCredential.cs @@ -2,10 +2,10 @@ using System.Net; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPStoredCredential")] [CmdletHelp("Get a credential", diff --git a/Commands/Base/InitializePowerShellAuthentication.cs b/Commands/Base/InitializePowerShellAuthentication.cs index 4620a6ca6..b1a030f69 100644 --- a/Commands/Base/InitializePowerShellAuthentication.cs +++ b/Commands/Base/InitializePowerShellAuthentication.cs @@ -1,9 +1,9 @@ #if !ONPREMISES && !NETSTANDARD2_1 using Newtonsoft.Json; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Model; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities; using System; using System.Collections.Generic; using System.IO; @@ -13,9 +13,9 @@ using System.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsData.Initialize, "PnPPowerShellAuthentication")] [CmdletHelp(@"Initializes a Azure AD App and optionally creates a new self-signed certificate to use with the application registration.", diff --git a/Commands/Base/InvokeQuery.cs b/Commands/Base/InvokeQuery.cs index 7d682f736..6877fce94 100644 --- a/Commands/Base/InvokeQuery.cs +++ b/Commands/Base/InvokeQuery.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsLifecycle.Invoke,"PnPQuery")] diff --git a/Commands/Base/InvokeSPRestMethod.cs b/Commands/Base/InvokeSPRestMethod.cs index dc6e0f0f2..b5a20b189 100644 --- a/Commands/Base/InvokeSPRestMethod.cs +++ b/Commands/Base/InvokeSPRestMethod.cs @@ -2,8 +2,8 @@ using Microsoft.SharePoint.Client; using Newtonsoft.Json; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; using System; using System.Collections.Generic; using System.Linq; @@ -18,7 +18,7 @@ using System.Web.Script.Serialization; #endif -namespace SharePointPnP.PowerShell.Commands.Admin +namespace PnP.PowerShell.Commands.Admin { [Cmdlet(VerbsLifecycle.Invoke, "PnPSPRestMethod")] [CmdletHelp("Invokes a REST request towards a SharePoint site", diff --git a/Commands/Base/NewAzureCertificate.cs b/Commands/Base/NewAzureCertificate.cs index 22fd223ae..5661fb94f 100644 --- a/Commands/Base/NewAzureCertificate.cs +++ b/Commands/Base/NewAzureCertificate.cs @@ -1,13 +1,13 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; using System.IO; using System.Security; using System.Security.Cryptography.X509Certificates; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.New, "PnPAzureCertificate")] [CmdletHelp(@"Generate a new 2048bit self-signed certificate and manifest settings for use when using CSOM via an app-only ADAL application. diff --git a/Commands/Base/PipeBinds/AlertPipeBind.cs b/Commands/Base/PipeBinds/AlertPipeBind.cs index d910f6dac..2a91c1a43 100644 --- a/Commands/Base/PipeBinds/AlertPipeBind.cs +++ b/Commands/Base/PipeBinds/AlertPipeBind.cs @@ -2,7 +2,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class AlertPipeBind { diff --git a/Commands/Base/PipeBinds/AppMetadataPipeBind.cs b/Commands/Base/PipeBinds/AppMetadataPipeBind.cs index 6952ca616..ec8553246 100644 --- a/Commands/Base/PipeBinds/AppMetadataPipeBind.cs +++ b/Commands/Base/PipeBinds/AppMetadataPipeBind.cs @@ -4,7 +4,7 @@ using OfficeDevPnP.Core.Enums; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class AppMetadataPipeBind { diff --git a/Commands/Base/PipeBinds/AppPipeBind.cs b/Commands/Base/PipeBinds/AppPipeBind.cs index 9a6ff5c26..dd6c4861b 100644 --- a/Commands/Base/PipeBinds/AppPipeBind.cs +++ b/Commands/Base/PipeBinds/AppPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class AppPipeBind { diff --git a/Commands/Base/PipeBinds/ApplyConfigurationPipeBind.cs b/Commands/Base/PipeBinds/ApplyConfigurationPipeBind.cs index 1fdc29d32..7d5a8fa4c 100644 --- a/Commands/Base/PipeBinds/ApplyConfigurationPipeBind.cs +++ b/Commands/Base/PipeBinds/ApplyConfigurationPipeBind.cs @@ -2,7 +2,7 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ApplyConfigurationPipeBind { diff --git a/Commands/Base/PipeBinds/ClientSideComponentPipeBind.cs b/Commands/Base/PipeBinds/ClientSideComponentPipeBind.cs index 9864f0ea7..998606ff2 100644 --- a/Commands/Base/PipeBinds/ClientSideComponentPipeBind.cs +++ b/Commands/Base/PipeBinds/ClientSideComponentPipeBind.cs @@ -1,14 +1,14 @@ #if !SP2013 && !SP2016 using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.Commands.ClientSidePages; +using PnP.PowerShell.Commands.ClientSidePages; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ClientSideComponentPipeBind { diff --git a/Commands/Base/PipeBinds/ClientSidePagePipeBind.cs b/Commands/Base/PipeBinds/ClientSidePagePipeBind.cs index 62283ee9d..4d9e7f1c4 100644 --- a/Commands/Base/PipeBinds/ClientSidePagePipeBind.cs +++ b/Commands/Base/PipeBinds/ClientSidePagePipeBind.cs @@ -1,14 +1,14 @@ #if !SP2013 && !SP2016 using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.Commands.ClientSidePages; +using PnP.PowerShell.Commands.ClientSidePages; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ClientSidePagePipeBind { diff --git a/Commands/Base/PipeBinds/ClientSideWebPartPipeBind.cs b/Commands/Base/PipeBinds/ClientSideWebPartPipeBind.cs index c8b0f1b2c..9c33f25b3 100644 --- a/Commands/Base/PipeBinds/ClientSideWebPartPipeBind.cs +++ b/Commands/Base/PipeBinds/ClientSideWebPartPipeBind.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class ClientSideWebPartPipeBind { diff --git a/Commands/Base/PipeBinds/ContentTypePipeBind.cs b/Commands/Base/PipeBinds/ContentTypePipeBind.cs index 4d1290ada..f85017ef6 100644 --- a/Commands/Base/PipeBinds/ContentTypePipeBind.cs +++ b/Commands/Base/PipeBinds/ContentTypePipeBind.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ContentTypePipeBind { diff --git a/Commands/Base/PipeBinds/CredentialPipeBind.cs b/Commands/Base/PipeBinds/CredentialPipeBind.cs index 050faf31d..5643a25f3 100644 --- a/Commands/Base/PipeBinds/CredentialPipeBind.cs +++ b/Commands/Base/PipeBinds/CredentialPipeBind.cs @@ -1,7 +1,7 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class CredentialPipeBind { diff --git a/Commands/Base/PipeBinds/DiagnosticEndpointPipeBind.cs b/Commands/Base/PipeBinds/DiagnosticEndpointPipeBind.cs index 411d3e5d3..8b603835b 100644 --- a/Commands/Base/PipeBinds/DiagnosticEndpointPipeBind.cs +++ b/Commands/Base/PipeBinds/DiagnosticEndpointPipeBind.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class DiagnosticEndpointPipeBind { diff --git a/Commands/Base/PipeBinds/DocumentSetPipeBind.cs b/Commands/Base/PipeBinds/DocumentSetPipeBind.cs index 967896ce2..34467514c 100644 --- a/Commands/Base/PipeBinds/DocumentSetPipeBind.cs +++ b/Commands/Base/PipeBinds/DocumentSetPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.DocumentSet; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class DocumentSetPipeBind { diff --git a/Commands/Base/PipeBinds/EventReceiverPipeBind.cs b/Commands/Base/PipeBinds/EventReceiverPipeBind.cs index 290ff82fb..ee26953f7 100644 --- a/Commands/Base/PipeBinds/EventReceiverPipeBind.cs +++ b/Commands/Base/PipeBinds/EventReceiverPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class EventReceiverPipeBind { diff --git a/Commands/Base/PipeBinds/ExtractConfigurationPipeBind.cs b/Commands/Base/PipeBinds/ExtractConfigurationPipeBind.cs index c8fc3b91c..092522cd9 100644 --- a/Commands/Base/PipeBinds/ExtractConfigurationPipeBind.cs +++ b/Commands/Base/PipeBinds/ExtractConfigurationPipeBind.cs @@ -2,7 +2,7 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ExtractConfigurationPipeBind { diff --git a/Commands/Base/PipeBinds/FeaturePipeBind.cs b/Commands/Base/PipeBinds/FeaturePipeBind.cs index 0b23471b6..b46584efc 100644 --- a/Commands/Base/PipeBinds/FeaturePipeBind.cs +++ b/Commands/Base/PipeBinds/FeaturePipeBind.cs @@ -1,7 +1,7 @@ using System; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class FeaturePipeBind { diff --git a/Commands/Base/PipeBinds/FieldPipeBind.cs b/Commands/Base/PipeBinds/FieldPipeBind.cs index 9499ed940..5c480175c 100644 --- a/Commands/Base/PipeBinds/FieldPipeBind.cs +++ b/Commands/Base/PipeBinds/FieldPipeBind.cs @@ -1,7 +1,7 @@ using System; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class FieldPipeBind { diff --git a/Commands/Base/PipeBinds/FolderPipeBind.cs b/Commands/Base/PipeBinds/FolderPipeBind.cs index d224a8dad..07766c591 100644 --- a/Commands/Base/PipeBinds/FolderPipeBind.cs +++ b/Commands/Base/PipeBinds/FolderPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class FolderPipeBind { diff --git a/Commands/Base/PipeBinds/GenericObjectNameIdPipeBind.cs b/Commands/Base/PipeBinds/GenericObjectNameIdPipeBind.cs index 4bee72b1d..1835b56f6 100644 --- a/Commands/Base/PipeBinds/GenericObjectNameIdPipeBind.cs +++ b/Commands/Base/PipeBinds/GenericObjectNameIdPipeBind.cs @@ -1,8 +1,8 @@ using System; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { [CmdletPipeline(Description = "Id, Name or Object")] public class GenericObjectNameIdPipeBind diff --git a/Commands/Base/PipeBinds/GenericPropertiesPipeBind.cs b/Commands/Base/PipeBinds/GenericPropertiesPipeBind.cs index af411b6d7..5fdd44985 100644 --- a/Commands/Base/PipeBinds/GenericPropertiesPipeBind.cs +++ b/Commands/Base/PipeBinds/GenericPropertiesPipeBind.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class PropertyBagPipeBind { diff --git a/Commands/Base/PipeBinds/GraphSubscriptionPipeBind.cs b/Commands/Base/PipeBinds/GraphSubscriptionPipeBind.cs index 2e84fedf2..ff1c2bdea 100644 --- a/Commands/Base/PipeBinds/GraphSubscriptionPipeBind.cs +++ b/Commands/Base/PipeBinds/GraphSubscriptionPipeBind.cs @@ -1,7 +1,7 @@ using OfficeDevPnP.Core.Framework.Graph.Model; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class GraphSubscriptionPipeBind { diff --git a/Commands/Base/PipeBinds/GroupPipeBind.cs b/Commands/Base/PipeBinds/GroupPipeBind.cs index 8dad87821..cf181b9ed 100644 --- a/Commands/Base/PipeBinds/GroupPipeBind.cs +++ b/Commands/Base/PipeBinds/GroupPipeBind.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class GroupPipeBind { diff --git a/Commands/Base/PipeBinds/GuidPipeBind.cs b/Commands/Base/PipeBinds/GuidPipeBind.cs index cbb9c353e..fd73303eb 100644 --- a/Commands/Base/PipeBinds/GuidPipeBind.cs +++ b/Commands/Base/PipeBinds/GuidPipeBind.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class GuidPipeBind { diff --git a/Commands/Base/PipeBinds/HubSitePipeBind.cs b/Commands/Base/PipeBinds/HubSitePipeBind.cs index e004b9cf2..ebb90cb90 100644 --- a/Commands/Base/PipeBinds/HubSitePipeBind.cs +++ b/Commands/Base/PipeBinds/HubSitePipeBind.cs @@ -2,9 +2,9 @@ using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; using System; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class HubSitePipeBind { diff --git a/Commands/Base/PipeBinds/ImageRenditionPipeBind.cs b/Commands/Base/PipeBinds/ImageRenditionPipeBind.cs index 9f8ed5096..08a266bee 100644 --- a/Commands/Base/PipeBinds/ImageRenditionPipeBind.cs +++ b/Commands/Base/PipeBinds/ImageRenditionPipeBind.cs @@ -3,7 +3,7 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Publishing; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ImageRenditionPipeBind { diff --git a/Commands/Base/PipeBinds/ListItemPipeBind.cs b/Commands/Base/PipeBinds/ListItemPipeBind.cs index de74d19f0..b416e2480 100644 --- a/Commands/Base/PipeBinds/ListItemPipeBind.cs +++ b/Commands/Base/PipeBinds/ListItemPipeBind.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ListItemPipeBind { diff --git a/Commands/Base/PipeBinds/ListPipeBind.cs b/Commands/Base/PipeBinds/ListPipeBind.cs index bcba3dced..dc72c3b92 100644 --- a/Commands/Base/PipeBinds/ListPipeBind.cs +++ b/Commands/Base/PipeBinds/ListPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ListPipeBind { diff --git a/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs b/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs index a4aa9d021..671d565a0 100644 --- a/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs +++ b/Commands/Base/PipeBinds/Microsoft365GroupPipeBind.cs @@ -3,7 +3,7 @@ using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class Microsoft365GroupPipeBind { diff --git a/Commands/Base/PipeBinds/NavigationNodePipeBind.cs b/Commands/Base/PipeBinds/NavigationNodePipeBind.cs index 824ae3a47..205f811f0 100644 --- a/Commands/Base/PipeBinds/NavigationNodePipeBind.cs +++ b/Commands/Base/PipeBinds/NavigationNodePipeBind.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class NavigationNodePipeBind { diff --git a/Commands/Base/PipeBinds/PagePipeBind.cs b/Commands/Base/PipeBinds/PagePipeBind.cs index 3e14366d7..81be28c17 100644 --- a/Commands/Base/PipeBinds/PagePipeBind.cs +++ b/Commands/Base/PipeBinds/PagePipeBind.cs @@ -4,11 +4,11 @@ #if !NETSTANDARD2_1 using SharePointPnP.Modernization.Framework.Transform; #endif -using SharePointPnP.PowerShell.Commands.ClientSidePages; +using PnP.PowerShell.Commands.ClientSidePages; using System; using System.Text.Encodings.Web; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class PagePipeBind { diff --git a/Commands/Base/PipeBinds/ProvisioningHierarchyPipeBind.cs b/Commands/Base/PipeBinds/ProvisioningHierarchyPipeBind.cs index 4d3d50e9c..e12559434 100644 --- a/Commands/Base/PipeBinds/ProvisioningHierarchyPipeBind.cs +++ b/Commands/Base/PipeBinds/ProvisioningHierarchyPipeBind.cs @@ -3,9 +3,9 @@ using OfficeDevPnP.Core.Framework.Provisioning.Connectors; using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ProvisioningHierarchyPipeBind { diff --git a/Commands/Base/PipeBinds/ProvisioningSequencePipebind.cs b/Commands/Base/PipeBinds/ProvisioningSequencePipebind.cs index 5e8260d24..982555924 100644 --- a/Commands/Base/PipeBinds/ProvisioningSequencePipebind.cs +++ b/Commands/Base/PipeBinds/ProvisioningSequencePipebind.cs @@ -3,7 +3,7 @@ using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ProvisioningSequencePipeBind { diff --git a/Commands/Base/PipeBinds/ProvisioningSitePipeBind.cs b/Commands/Base/PipeBinds/ProvisioningSitePipeBind.cs index ccb6c258a..c17e941c6 100644 --- a/Commands/Base/PipeBinds/ProvisioningSitePipeBind.cs +++ b/Commands/Base/PipeBinds/ProvisioningSitePipeBind.cs @@ -3,7 +3,7 @@ using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ProvisioningSitePipeBind { diff --git a/Commands/Base/PipeBinds/ProvisioningTemplatePipeBind.cs b/Commands/Base/PipeBinds/ProvisioningTemplatePipeBind.cs index ffa3be2c2..279c96d41 100644 --- a/Commands/Base/PipeBinds/ProvisioningTemplatePipeBind.cs +++ b/Commands/Base/PipeBinds/ProvisioningTemplatePipeBind.cs @@ -3,9 +3,9 @@ using OfficeDevPnP.Core.Framework.Provisioning.Connectors; using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ProvisioningTemplatePipeBind { diff --git a/Commands/Base/PipeBinds/RecycleBinItemPipeBind.cs b/Commands/Base/PipeBinds/RecycleBinItemPipeBind.cs index 418e30f71..2eb090483 100644 --- a/Commands/Base/PipeBinds/RecycleBinItemPipeBind.cs +++ b/Commands/Base/PipeBinds/RecycleBinItemPipeBind.cs @@ -1,7 +1,7 @@ using System; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class RecycleBinItemPipeBind { diff --git a/Commands/Base/PipeBinds/RoleDefinitionPipeBind.cs b/Commands/Base/PipeBinds/RoleDefinitionPipeBind.cs index 62e67012f..bc11791b3 100644 --- a/Commands/Base/PipeBinds/RoleDefinitionPipeBind.cs +++ b/Commands/Base/PipeBinds/RoleDefinitionPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class RoleDefinitionPipeBind { diff --git a/Commands/Base/PipeBinds/SitePipeBind.cs b/Commands/Base/PipeBinds/SitePipeBind.cs index 269290609..e279663c3 100644 --- a/Commands/Base/PipeBinds/SitePipeBind.cs +++ b/Commands/Base/PipeBinds/SitePipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class SitePipeBind { diff --git a/Commands/Base/PipeBinds/TaxonomyItemPipeBind.cs b/Commands/Base/PipeBinds/TaxonomyItemPipeBind.cs index 4baeea3d7..45b8f15ff 100644 --- a/Commands/Base/PipeBinds/TaxonomyItemPipeBind.cs +++ b/Commands/Base/PipeBinds/TaxonomyItemPipeBind.cs @@ -1,8 +1,8 @@ using System; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { [CmdletPipeline(Description = "Id, Title or {0}", Type = typeof(TaxonomyItem))] public class TaxonomyItemPipeBind where T : TaxonomyItem diff --git a/Commands/Base/PipeBinds/TeamsAppPipeBind.cs b/Commands/Base/PipeBinds/TeamsAppPipeBind.cs index 731e50392..da6f5df42 100644 --- a/Commands/Base/PipeBinds/TeamsAppPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsAppPipeBind.cs @@ -1,11 +1,11 @@ -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Linq; using System.Management.Automation; using System.Net.Http; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TeamsAppPipeBind { diff --git a/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs b/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs index 0b36684e5..6ef224dda 100644 --- a/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs @@ -1,12 +1,12 @@ using Microsoft.Graph; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System; using System.Linq; using System.Net.Http; using System.Threading; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TeamsChannelPipeBind { diff --git a/Commands/Base/PipeBinds/TeamsTabPipeBind.cs b/Commands/Base/PipeBinds/TeamsTabPipeBind.cs index 93d5f022a..8824ed20b 100644 --- a/Commands/Base/PipeBinds/TeamsTabPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsTabPipeBind.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System; using System.Linq; using System.Management.Automation; @@ -8,7 +8,7 @@ using System.Net.Http; using System.Web; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TeamsTabPipeBind { diff --git a/Commands/Base/PipeBinds/TeamsTeamPipeBind.cs b/Commands/Base/PipeBinds/TeamsTeamPipeBind.cs index c62dacfde..e822bbd9f 100644 --- a/Commands/Base/PipeBinds/TeamsTeamPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsTeamPipeBind.cs @@ -1,11 +1,11 @@ -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Linq; using System.Management.Automation; using System.Net.Http; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TeamsTeamPipeBind { diff --git a/Commands/Base/PipeBinds/TenantSiteDesignPipeBind.cs b/Commands/Base/PipeBinds/TenantSiteDesignPipeBind.cs index 2ec21acca..a5dead0f5 100644 --- a/Commands/Base/PipeBinds/TenantSiteDesignPipeBind.cs +++ b/Commands/Base/PipeBinds/TenantSiteDesignPipeBind.cs @@ -4,7 +4,7 @@ using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TenantSiteDesignPipeBind { diff --git a/Commands/Base/PipeBinds/TenantSiteDesignTaskPipeBind.cs b/Commands/Base/PipeBinds/TenantSiteDesignTaskPipeBind.cs index c833f7ecc..7255a8177 100644 --- a/Commands/Base/PipeBinds/TenantSiteDesignTaskPipeBind.cs +++ b/Commands/Base/PipeBinds/TenantSiteDesignTaskPipeBind.cs @@ -4,7 +4,7 @@ using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TenantSiteDesignTaskPipeBind { diff --git a/Commands/Base/PipeBinds/TenantSiteScriptPipeBind.cs b/Commands/Base/PipeBinds/TenantSiteScriptPipeBind.cs index a8a573a37..9499024c2 100644 --- a/Commands/Base/PipeBinds/TenantSiteScriptPipeBind.cs +++ b/Commands/Base/PipeBinds/TenantSiteScriptPipeBind.cs @@ -2,7 +2,7 @@ using Microsoft.Online.SharePoint.TenantAdministration; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class TenantSiteScriptPipeBind { diff --git a/Commands/Base/PipeBinds/TermGroupPipeBind.cs b/Commands/Base/PipeBinds/TermGroupPipeBind.cs index 56e3523de..97795d62f 100644 --- a/Commands/Base/PipeBinds/TermGroupPipeBind.cs +++ b/Commands/Base/PipeBinds/TermGroupPipeBind.cs @@ -1,9 +1,9 @@ using System; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { [CmdletPipeline(Description = "Id, Title or TermGroup")] public sealed class TermGroupPipeBind diff --git a/Commands/Base/PipeBinds/ThemePalettePipeBind.cs b/Commands/Base/PipeBinds/ThemePalettePipeBind.cs index 5c93d82c7..318351e9f 100644 --- a/Commands/Base/PipeBinds/ThemePalettePipeBind.cs +++ b/Commands/Base/PipeBinds/ThemePalettePipeBind.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class ThemePalettePipeBind { diff --git a/Commands/Base/PipeBinds/ThemePipeBind.cs b/Commands/Base/PipeBinds/ThemePipeBind.cs index 274b114e8..b626e6b7e 100644 --- a/Commands/Base/PipeBinds/ThemePipeBind.cs +++ b/Commands/Base/PipeBinds/ThemePipeBind.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Model; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class ThemePipeBind { diff --git a/Commands/Base/PipeBinds/UserCustomActionPipeBind.cs b/Commands/Base/PipeBinds/UserCustomActionPipeBind.cs index a72719a6e..b247e96de 100644 --- a/Commands/Base/PipeBinds/UserCustomActionPipeBind.cs +++ b/Commands/Base/PipeBinds/UserCustomActionPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { /// /// Allows passing UserCustomAction objects in pipelines diff --git a/Commands/Base/PipeBinds/UserPipeBind.cs b/Commands/Base/PipeBinds/UserPipeBind.cs index e9f3cff1a..3fdf6a84c 100644 --- a/Commands/Base/PipeBinds/UserPipeBind.cs +++ b/Commands/Base/PipeBinds/UserPipeBind.cs @@ -2,7 +2,7 @@ using System; using System.Linq.Expressions; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class UserPipeBind { diff --git a/Commands/Base/PipeBinds/ViewPipeBind.cs b/Commands/Base/PipeBinds/ViewPipeBind.cs index c30bf7098..c157a82b7 100644 --- a/Commands/Base/PipeBinds/ViewPipeBind.cs +++ b/Commands/Base/PipeBinds/ViewPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class ViewPipeBind { diff --git a/Commands/Base/PipeBinds/WebPartPipeBind.cs b/Commands/Base/PipeBinds/WebPartPipeBind.cs index 17c993452..45e590871 100644 --- a/Commands/Base/PipeBinds/WebPartPipeBind.cs +++ b/Commands/Base/PipeBinds/WebPartPipeBind.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class WebPartPipeBind { diff --git a/Commands/Base/PipeBinds/WebPipeBind.cs b/Commands/Base/PipeBinds/WebPipeBind.cs index 66625239f..6503f4ab7 100644 --- a/Commands/Base/PipeBinds/WebPipeBind.cs +++ b/Commands/Base/PipeBinds/WebPipeBind.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using System; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class WebPipeBind { diff --git a/Commands/Base/PipeBinds/WebhookSubscriptionPipeBind.cs b/Commands/Base/PipeBinds/WebhookSubscriptionPipeBind.cs index c6a0d1164..f2e062fe7 100644 --- a/Commands/Base/PipeBinds/WebhookSubscriptionPipeBind.cs +++ b/Commands/Base/PipeBinds/WebhookSubscriptionPipeBind.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; #if !ONPREMISES -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class WebhookSubscriptionPipeBind { diff --git a/Commands/Base/PipeBinds/WorkflowDefinitionPipeBind.cs b/Commands/Base/PipeBinds/WorkflowDefinitionPipeBind.cs index bcffdf7d9..07d92ff23 100644 --- a/Commands/Base/PipeBinds/WorkflowDefinitionPipeBind.cs +++ b/Commands/Base/PipeBinds/WorkflowDefinitionPipeBind.cs @@ -1,7 +1,7 @@ using System; using Microsoft.SharePoint.Client.WorkflowServices; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class WorkflowDefinitionPipeBind { diff --git a/Commands/Base/PipeBinds/WorkflowInstancePipeBind.cs b/Commands/Base/PipeBinds/WorkflowInstancePipeBind.cs index 1a768cb85..e9e9096f0 100644 --- a/Commands/Base/PipeBinds/WorkflowInstancePipeBind.cs +++ b/Commands/Base/PipeBinds/WorkflowInstancePipeBind.cs @@ -1,7 +1,7 @@ using System; using Microsoft.SharePoint.Client.WorkflowServices; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class WorkflowInstancePipeBind { diff --git a/Commands/Base/PipeBinds/WorkflowSubscriptionPipeBind.cs b/Commands/Base/PipeBinds/WorkflowSubscriptionPipeBind.cs index da57b78ac..f1d447c6b 100644 --- a/Commands/Base/PipeBinds/WorkflowSubscriptionPipeBind.cs +++ b/Commands/Base/PipeBinds/WorkflowSubscriptionPipeBind.cs @@ -2,7 +2,7 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.WorkflowServices; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public sealed class WorkflowSubscriptionPipeBind { diff --git a/Commands/Base/PnPAdminCmdlet.cs b/Commands/Base/PnPAdminCmdlet.cs index f6ba67763..a8588caeb 100644 --- a/Commands/Base/PnPAdminCmdlet.cs +++ b/Commands/Base/PnPAdminCmdlet.cs @@ -2,10 +2,10 @@ using System.Linq; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { public abstract class PnPAdminCmdlet : PnPSharePointCmdlet { diff --git a/Commands/Base/PnPAzureADConnection.cs b/Commands/Base/PnPAzureADConnection.cs index 0b616f763..975066bf7 100644 --- a/Commands/Base/PnPAzureADConnection.cs +++ b/Commands/Base/PnPAzureADConnection.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { /// /// Holds all of the information about the current Azure AD Connection and OAuth 2.0 Access Token diff --git a/Commands/Base/PnPConnectedCmdlet.cs b/Commands/Base/PnPConnectedCmdlet.cs index fa1a5a4d6..482c585a2 100644 --- a/Commands/Base/PnPConnectedCmdlet.cs +++ b/Commands/Base/PnPConnectedCmdlet.cs @@ -1,7 +1,7 @@ -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Commands.Properties; using System; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { /// /// Base class for all the PnP Cmdlets which require a connection to have been made diff --git a/Commands/Base/PnPConnection.cs b/Commands/Base/PnPConnection.cs index bca78d9f0..7eed34dad 100644 --- a/Commands/Base/PnPConnection.cs +++ b/Commands/Base/PnPConnection.cs @@ -2,9 +2,9 @@ using Microsoft.Identity.Client; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Extensions; -using SharePointPnP.PowerShell.Commands.Enums; -using SharePointPnP.PowerShell.Commands.Model; -using SharePointPnP.PowerShell.Core.Attributes; +using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Core.Attributes; using System; using System.Collections.Generic; using System.Linq; @@ -16,7 +16,7 @@ using System.Security.Cryptography.X509Certificates; using System.Web; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { public class PnPConnection { diff --git a/Commands/Base/PnPConnectionHelper.cs b/Commands/Base/PnPConnectionHelper.cs index 6128ae2e4..62c93c13d 100644 --- a/Commands/Base/PnPConnectionHelper.cs +++ b/Commands/Base/PnPConnectionHelper.cs @@ -3,7 +3,7 @@ #endif using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System; using System.Management.Automation; using System.Management.Automation.Host; @@ -15,8 +15,8 @@ using System.Diagnostics; using System.Net.Http; using Newtonsoft.Json; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Model; using System.Security.Cryptography.X509Certificates; using System.Security; using System.IO; @@ -25,9 +25,9 @@ using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.Graph; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { internal class PnPConnectionHelper { @@ -376,7 +376,7 @@ internal static PnPConnection InitiateAzureADNativeApplicationConnection(Uri url using (var authManager = new OfficeDevPnP.Core.AuthenticationManager()) { string appDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); - string configFile = Path.Combine(appDataFolder, "SharePointPnP.PowerShell\\tokencache.dat"); + string configFile = Path.Combine(appDataFolder, "PnP.PowerShell\\tokencache.dat"); FileTokenCache cache = new FileTokenCache(configFile); var context = PnPClientContext.ConvertFrom(authManager.GetAzureADNativeApplicationAuthenticatedContext(url.ToString(), clientId, redirectUri, cache, azureEnvironment), retryCount, retryWait * 10000); var connectionType = ConnectionType.OnPrem; diff --git a/Commands/Base/PnPGraphCmdlet.cs b/Commands/Base/PnPGraphCmdlet.cs index 605a60305..2c2b73d72 100644 --- a/Commands/Base/PnPGraphCmdlet.cs +++ b/Commands/Base/PnPGraphCmdlet.cs @@ -1,14 +1,14 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Model; -using SharePointPnP.PowerShell.Commands.Properties; -using SharePointPnP.PowerShell.Core.Attributes; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Core.Attributes; using System; using System.Collections.Generic; using System.Management.Automation; using System.Net.Http; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { /// /// Base class for all the PnP Microsoft Graph related cmdlets diff --git a/Commands/Base/PnPOfficeManagementApiCmdlet.cs b/Commands/Base/PnPOfficeManagementApiCmdlet.cs index 7a855c599..655264efe 100644 --- a/Commands/Base/PnPOfficeManagementApiCmdlet.cs +++ b/Commands/Base/PnPOfficeManagementApiCmdlet.cs @@ -1,13 +1,13 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Model; -using SharePointPnP.PowerShell.Commands.Properties; -using SharePointPnP.PowerShell.Core.Attributes; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Properties; +using PnP.PowerShell.Core.Attributes; using System; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { /// /// Base class for all the PnP Microsoft Office Management API related cmdlets diff --git a/Commands/Base/PnPRetrievalsCmdlet.cs b/Commands/Base/PnPRetrievalsCmdlet.cs index 917e6059e..dbb75abbc 100644 --- a/Commands/Base/PnPRetrievalsCmdlet.cs +++ b/Commands/Base/PnPRetrievalsCmdlet.cs @@ -6,12 +6,12 @@ using System.Threading; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [CmdletAdditionalParameter(ParameterType = typeof(string[]), ParameterName = "Includes", HelpMessage = "Specify properties to include when retrieving objects from the server.")] public abstract class PnPRetrievalsCmdlet : PnPSharePointCmdlet, IDynamicParameters where TType : ClientObject diff --git a/Commands/Base/PnPSharePointCmdlet.cs b/Commands/Base/PnPSharePointCmdlet.cs index f7dddecc8..3c54856ce 100644 --- a/Commands/Base/PnPSharePointCmdlet.cs +++ b/Commands/Base/PnPSharePointCmdlet.cs @@ -3,11 +3,11 @@ using System.Threading; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.Commands.Base; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { /// /// Base class for all the PnP SharePoint related cmdlets diff --git a/Commands/Base/PnPWebCmdlet.cs b/Commands/Base/PnPWebCmdlet.cs index ddd116c55..47e3ae3f9 100644 --- a/Commands/Base/PnPWebCmdlet.cs +++ b/Commands/Base/PnPWebCmdlet.cs @@ -1,12 +1,12 @@ using System; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Extensions; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { public abstract class PnPWebCmdlet : PnPSharePointCmdlet { diff --git a/Commands/Base/PnPWebRetrievalsCmdlet.cs b/Commands/Base/PnPWebRetrievalsCmdlet.cs index aa849be11..4c089c927 100644 --- a/Commands/Base/PnPWebRetrievalsCmdlet.cs +++ b/Commands/Base/PnPWebRetrievalsCmdlet.cs @@ -1,12 +1,12 @@ using System; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Extensions; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { /// /// Inherit from this base class if the PowerShell commandlet should allow switching the webcontext to a subsite of the current context for the duration of the execution of the command by specifying the -Web argument diff --git a/Commands/Base/PropertyLoadingAttribute.cs b/Commands/Base/PropertyLoadingAttribute.cs index eeb165c13..a9756afa1 100644 --- a/Commands/Base/PropertyLoadingAttribute.cs +++ b/Commands/Base/PropertyLoadingAttribute.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { public class PropertyLoadingAttribute : Attribute { diff --git a/Commands/Base/RemoveStoredCredential.cs b/Commands/Base/RemoveStoredCredential.cs index 8f43bbd88..460650dba 100644 --- a/Commands/Base/RemoveStoredCredential.cs +++ b/Commands/Base/RemoveStoredCredential.cs @@ -1,7 +1,7 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Remove, "PnPStoredCredential")] [CmdletHelp("Removes a credential", diff --git a/Commands/Base/RequestAccessToken.cs b/Commands/Base/RequestAccessToken.cs index 1b47f1d03..323bb233f 100644 --- a/Commands/Base/RequestAccessToken.cs +++ b/Commands/Base/RequestAccessToken.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Model; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Net.Http; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsLifecycle.Request, "PnPAccessToken")] [CmdletHelp("Requests an OAuth Access token", diff --git a/Commands/Base/SetContext.cs b/Commands/Base/SetContext.cs index f76d049ae..8cd78516b 100644 --- a/Commands/Base/SetContext.cs +++ b/Commands/Base/SetContext.cs @@ -1,8 +1,8 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Set, "PnPContext")] [CmdletHelp("Set the ClientContext", diff --git a/Commands/Base/SetTraceLog.cs b/Commands/Base/SetTraceLog.cs index d9cfc6dba..890e74800 100644 --- a/Commands/Base/SetTraceLog.cs +++ b/Commands/Base/SetTraceLog.cs @@ -1,9 +1,9 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Diagnostics; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Set, "PnPTraceLog")] [CmdletHelp("Turn log tracing on or off", diff --git a/Commands/Base/TokenHandling.cs b/Commands/Base/TokenHandling.cs index 77b789e57..7ec2b6c0b 100644 --- a/Commands/Base/TokenHandling.cs +++ b/Commands/Base/TokenHandling.cs @@ -3,7 +3,7 @@ using OfficeDevPnP.Core.Utilities; using System.Web; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { #if !ONPREMISES internal static class TokenHandler diff --git a/Commands/Branding/AddCustomAction.cs b/Commands/Branding/AddCustomAction.cs index 2d9efd1ca..e59544bc7 100644 --- a/Commands/Branding/AddCustomAction.cs +++ b/Commands/Branding/AddCustomAction.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Add, "PnPCustomAction")] [CmdletHelp("Adds a custom action", diff --git a/Commands/Branding/AddJavaScriptBlock.cs b/Commands/Branding/AddJavaScriptBlock.cs index 92333cc92..898a138b6 100644 --- a/Commands/Branding/AddJavaScriptBlock.cs +++ b/Commands/Branding/AddJavaScriptBlock.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Add, "PnPJavaScriptBlock")] [CmdletHelp("Adds a link to a JavaScript snippet/block to a web or site collection", diff --git a/Commands/Branding/AddJavaScriptLink.cs b/Commands/Branding/AddJavaScriptLink.cs index f3a195bf4..cd21ba40c 100644 --- a/Commands/Branding/AddJavaScriptLink.cs +++ b/Commands/Branding/AddJavaScriptLink.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Add, "PnPJavaScriptLink")] [CmdletHelp("Adds a link to a JavaScript file to a web or sitecollection, valid only for SharePoint classic site experience.", diff --git a/Commands/Branding/DisableResponsiveUI.cs b/Commands/Branding/DisableResponsiveUI.cs index 3cf581cba..5f8a559aa 100644 --- a/Commands/Branding/DisableResponsiveUI.cs +++ b/Commands/Branding/DisableResponsiveUI.cs @@ -1,9 +1,9 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsLifecycle.Disable, "PnPResponsiveUI")] [CmdletHelp("Deactivate the PnP Response UI add-on", diff --git a/Commands/Branding/EnableResponsiveUI.cs b/Commands/Branding/EnableResponsiveUI.cs index c27a3e81b..927eea684 100644 --- a/Commands/Branding/EnableResponsiveUI.cs +++ b/Commands/Branding/EnableResponsiveUI.cs @@ -1,9 +1,9 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsLifecycle.Enable, "PnPResponsiveUI")] [CmdletHelp("Activates the PnP Response UI Add-on", diff --git a/Commands/Branding/GetCustomAction.cs b/Commands/Branding/GetCustomAction.cs index 38bb70dff..58f9585ff 100644 --- a/Commands/Branding/GetCustomAction.cs +++ b/Commands/Branding/GetCustomAction.cs @@ -2,11 +2,11 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPCustomAction")] [CmdletHelp("Return user custom actions", diff --git a/Commands/Branding/GetFooter.cs b/Commands/Branding/GetFooter.cs index 99ab66879..6e1340a0a 100644 --- a/Commands/Branding/GetFooter.cs +++ b/Commands/Branding/GetFooter.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPFooter")] [CmdletHelp("Gets the configuration regarding the footer of the current web", diff --git a/Commands/Branding/GetHomepage.cs b/Commands/Branding/GetHomepage.cs index 08376542c..b7fd432ba 100644 --- a/Commands/Branding/GetHomepage.cs +++ b/Commands/Branding/GetHomepage.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPHomePage")] [CmdletHelp("Return the homepage", diff --git a/Commands/Branding/GetJavaScriptLink.cs b/Commands/Branding/GetJavaScriptLink.cs index 8d66f054e..4f6f3c02c 100644 --- a/Commands/Branding/GetJavaScriptLink.cs +++ b/Commands/Branding/GetJavaScriptLink.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPJavaScriptLink")] [CmdletHelp("Returns all or a specific custom action(s) with location type ScriptLink", diff --git a/Commands/Branding/GetMasterPage.cs b/Commands/Branding/GetMasterPage.cs index f47fd0805..0d2c4486d 100644 --- a/Commands/Branding/GetMasterPage.cs +++ b/Commands/Branding/GetMasterPage.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPMasterPage")] [CmdletHelp("Returns the URLs of the default Master Page and the custom Master Page.", diff --git a/Commands/Branding/GetTheme.cs b/Commands/Branding/GetTheme.cs index 19039e222..8501834f0 100644 --- a/Commands/Branding/GetTheme.cs +++ b/Commands/Branding/GetTheme.cs @@ -2,9 +2,9 @@ using Microsoft.SharePoint.Client; using Newtonsoft.Json; using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPTheme")] [CmdletHelp("Returns the current theme/composed look of the current web.", diff --git a/Commands/Branding/RemoveCustomAction.cs b/Commands/Branding/RemoveCustomAction.cs index a88987e45..272c961fc 100644 --- a/Commands/Branding/RemoveCustomAction.cs +++ b/Commands/Branding/RemoveCustomAction.cs @@ -1,13 +1,13 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Remove, "PnPCustomAction", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = true)] [CmdletHelp("Removes a custom action", diff --git a/Commands/Branding/RemoveJavaScriptLink.cs b/Commands/Branding/RemoveJavaScriptLink.cs index 30668f19b..309ae7a24 100644 --- a/Commands/Branding/RemoveJavaScriptLink.cs +++ b/Commands/Branding/RemoveJavaScriptLink.cs @@ -3,12 +3,12 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Remove, "PnPJavaScriptLink", SupportsShouldProcess = true)] [CmdletHelp("Removes a JavaScript link or block from a web or sitecollection", diff --git a/Commands/Branding/SetFooter.cs b/Commands/Branding/SetFooter.cs index 060e0ae56..76aa00fa0 100644 --- a/Commands/Branding/SetFooter.cs +++ b/Commands/Branding/SetFooter.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPFooter")] [CmdletHelp("Configures the footer of the current web", diff --git a/Commands/Branding/SetHomepage.cs b/Commands/Branding/SetHomepage.cs index 5b2605590..2e4bbf121 100644 --- a/Commands/Branding/SetHomepage.cs +++ b/Commands/Branding/SetHomepage.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPHomePage")] [CmdletHelp("Sets the home page of the current web.", diff --git a/Commands/Branding/SetMasterPage.cs b/Commands/Branding/SetMasterPage.cs index 70db6436a..e5abd5b48 100644 --- a/Commands/Branding/SetMasterPage.cs +++ b/Commands/Branding/SetMasterPage.cs @@ -2,9 +2,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPMasterPage")] [CmdletHelp("Set the masterpage", diff --git a/Commands/Branding/SetMinimalDownloadStrategy.cs b/Commands/Branding/SetMinimalDownloadStrategy.cs index ea8fc95c0..7ca000da0 100644 --- a/Commands/Branding/SetMinimalDownloadStrategy.cs +++ b/Commands/Branding/SetMinimalDownloadStrategy.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPMinimalDownloadStrategy")] [CmdletHelp("Activates or deactivates the minimal downloading strategy.", diff --git a/Commands/Branding/SetTheme.cs b/Commands/Branding/SetTheme.cs index 252b7080c..86d4aa5fe 100644 --- a/Commands/Branding/SetTheme.cs +++ b/Commands/Branding/SetTheme.cs @@ -4,9 +4,9 @@ using Newtonsoft.Json; using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPTheme")] [CmdletHelp("Sets the theme of the current web.", DetailedDescription = " Sets the theme of the current web, if any of the attributes is not set, that value will be set to null", Category = CmdletHelpCategory.Branding)] diff --git a/Commands/Branding/SetWebTheme.cs b/Commands/Branding/SetWebTheme.cs index c2b363802..ecf4218bb 100644 --- a/Commands/Branding/SetWebTheme.cs +++ b/Commands/Branding/SetWebTheme.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Set, "PnPWebTheme")] [CmdletHelp("Sets the theme of the current web.", DetailedDescription = "Sets the theme of the current web. * Requires Tenant Administration Rights *", Category = CmdletHelpCategory.Branding, SupportedPlatform = CmdletSupportedPlatform.Online)] diff --git a/Commands/ClientSidePages/AddClientSidePage.cs b/Commands/ClientSidePages/AddClientSidePage.cs index b296935d3..3ef093210 100644 --- a/Commands/ClientSidePages/AddClientSidePage.cs +++ b/Commands/ClientSidePages/AddClientSidePage.cs @@ -1,12 +1,12 @@ #if !SP2013 && !SP2016 using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Add, "PnPClientSidePage")] [CmdletHelp("Adds a Client-Side Page", diff --git a/Commands/ClientSidePages/AddClientSidePageSection.cs b/Commands/ClientSidePages/AddClientSidePageSection.cs index dc4416a75..106f8e5a9 100644 --- a/Commands/ClientSidePages/AddClientSidePageSection.cs +++ b/Commands/ClientSidePages/AddClientSidePageSection.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Add, "PnPClientSidePageSection")] [CmdletHelp("Adds a new section to a Client-Side page", diff --git a/Commands/ClientSidePages/AddClientSideText.cs b/Commands/ClientSidePages/AddClientSideText.cs index 798dcf619..7e2a3ca7d 100644 --- a/Commands/ClientSidePages/AddClientSideText.cs +++ b/Commands/ClientSidePages/AddClientSideText.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Add, "PnPClientSideText")] [CmdletHelp("Adds a text element to a client-side page.", diff --git a/Commands/ClientSidePages/ClientSidePageTransformatorLogType.cs b/Commands/ClientSidePages/ClientSidePageTransformatorLogType.cs index 7a41a20c5..a153d2f66 100644 --- a/Commands/ClientSidePages/ClientSidePageTransformatorLogType.cs +++ b/Commands/ClientSidePages/ClientSidePageTransformatorLogType.cs @@ -1,5 +1,5 @@ #if !ONPREMISES -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { public enum ClientSidePageTransformatorLogType { diff --git a/Commands/ClientSidePages/ClientSidePageUtilities.cs b/Commands/ClientSidePages/ClientSidePageUtilities.cs index cc5b21340..2e785d399 100644 --- a/Commands/ClientSidePages/ClientSidePageUtilities.cs +++ b/Commands/ClientSidePages/ClientSidePageUtilities.cs @@ -1,6 +1,6 @@ #if !SP2013 && !SP2016 -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { internal static class ClientSidePageUtilities { diff --git a/Commands/ClientSidePages/ConvertToClientSidePage.cs b/Commands/ClientSidePages/ConvertToClientSidePage.cs index 92bb41777..f21ca20dd 100644 --- a/Commands/ClientSidePages/ConvertToClientSidePage.cs +++ b/Commands/ClientSidePages/ConvertToClientSidePage.cs @@ -1,10 +1,10 @@ #if !ONPREMISES && !NETSTANDARD2_1 -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using SharePointPnP.Modernization.Framework.Transform; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; using System.Reflection; using SharePointPnP.Modernization.Framework.Cache; using Microsoft.SharePoint.Client; @@ -13,10 +13,10 @@ using System.IO; using SharePointPnP.Modernization.Framework.Telemetry.Observers; using SharePointPnP.Modernization.Framework.Publishing; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; using SharePointPnP.Modernization.Framework.Delve; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsData.ConvertTo, "PnPClientSidePage")] diff --git a/Commands/ClientSidePages/ExportClientSidePage.cs b/Commands/ClientSidePages/ExportClientSidePage.cs index 75c76c699..703879d87 100644 --- a/Commands/ClientSidePages/ExportClientSidePage.cs +++ b/Commands/ClientSidePages/ExportClientSidePage.cs @@ -3,14 +3,14 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Properties; using System; using System.IO; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsData.Export, "PnPClientSidePage", SupportsShouldProcess = true)] [CmdletHelp("Exports a Client Side Page to a PnP Provisioning Template", diff --git a/Commands/ClientSidePages/ExportClientSidePageMapping.cs b/Commands/ClientSidePages/ExportClientSidePageMapping.cs index cede1147d..41730e22a 100644 --- a/Commands/ClientSidePages/ExportClientSidePageMapping.cs +++ b/Commands/ClientSidePages/ExportClientSidePageMapping.cs @@ -1,18 +1,18 @@ #if !ONPREMISES && !NETSTANDARD2_1 -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; using System.Reflection; using Microsoft.SharePoint.Client; using System.IO; using SharePointPnP.Modernization.Framework.Publishing; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using SharePointPnP.Modernization.Framework.Cache; using SharePointPnP.Modernization.Framework.Telemetry.Observers; using SharePointPnP.Modernization.Framework.Transform; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsData.Export, "PnPClientSidePageMapping")] [CmdletHelp("Get's the built-in maping files or a custom mapping file for your publishing portal page layouts. These mapping files are used to tailor the page transformation experience.", diff --git a/Commands/ClientSidePages/GetAvailableClientSideComponents.cs b/Commands/ClientSidePages/GetAvailableClientSideComponents.cs index bbb5113fe..0ea38412e 100644 --- a/Commands/ClientSidePages/GetAvailableClientSideComponents.cs +++ b/Commands/ClientSidePages/GetAvailableClientSideComponents.cs @@ -1,10 +1,10 @@ #if !SP2013 && !SP2016 -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Get, "PnPAvailableClientSideComponents")] [CmdletHelp("Gets the available client side components on a particular page", diff --git a/Commands/ClientSidePages/GetClientSideComponent.cs b/Commands/ClientSidePages/GetClientSideComponent.cs index 659781344..73f25b146 100644 --- a/Commands/ClientSidePages/GetClientSideComponent.cs +++ b/Commands/ClientSidePages/GetClientSideComponent.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Get, "PnPClientSideComponent")] [CmdletHelp("Retrieve one or more Client-Side components from a site page", diff --git a/Commands/ClientSidePages/GetClientSidePage.cs b/Commands/ClientSidePages/GetClientSidePage.cs index 3724f8ed0..bf450b9fc 100644 --- a/Commands/ClientSidePages/GetClientSidePage.cs +++ b/Commands/ClientSidePages/GetClientSidePage.cs @@ -1,10 +1,10 @@ #if !SP2013 && !SP2016 -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Get, "PnPClientSidePage")] [CmdletHelp("Gets a modern site page", diff --git a/Commands/ClientSidePages/MoveClientSideComponent.cs b/Commands/ClientSidePages/MoveClientSideComponent.cs index 04874b8e5..938024148 100644 --- a/Commands/ClientSidePages/MoveClientSideComponent.cs +++ b/Commands/ClientSidePages/MoveClientSideComponent.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Move, "PnPClientSideComponent")] [CmdletHelp("Moves a Client-Side Component to a different section/column", diff --git a/Commands/ClientSidePages/RemoveClientSideComponent.cs b/Commands/ClientSidePages/RemoveClientSideComponent.cs index c1b79004e..88835bfcd 100644 --- a/Commands/ClientSidePages/RemoveClientSideComponent.cs +++ b/Commands/ClientSidePages/RemoveClientSideComponent.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Remove, "PnPClientSideComponent")] [CmdletHelp("Removes a Client-Side component from a page", diff --git a/Commands/ClientSidePages/RemoveClientSidePage.cs b/Commands/ClientSidePages/RemoveClientSidePage.cs index 7eeb556de..d762eb3fb 100644 --- a/Commands/ClientSidePages/RemoveClientSidePage.cs +++ b/Commands/ClientSidePages/RemoveClientSidePage.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Properties; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Remove, "PnPClientSidePage")] [CmdletHelp("Removes a Client-Side Page", diff --git a/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs b/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs index 8a411dbb6..2df82c728 100644 --- a/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs +++ b/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs @@ -1,12 +1,12 @@ #if !ONPREMISES && !NETSTANDARD2_1 using SharePointPnP.Modernization.Framework.Cache; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.IO; using System.Management.Automation; using System.Reflection; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsData.Save, "PnPClientSidePageConversionLog")] [CmdletHelp("Persists the current client side page conversion log data to the loggers linked to the last used page transformation run. Needs to be used in conjunction with the -LogSkipFlush flag on the ConvertTo-PnPClientSidePage cmdlet", diff --git a/Commands/ClientSidePages/SetClientSidePage.cs b/Commands/ClientSidePages/SetClientSidePage.cs index ee9dcd1ed..163cc94aa 100644 --- a/Commands/ClientSidePages/SetClientSidePage.cs +++ b/Commands/ClientSidePages/SetClientSidePage.cs @@ -1,12 +1,12 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Set, "PnPClientSidePage")] [CmdletHelp("Sets parameters of a Client-Side Page", diff --git a/Commands/ClientSidePages/SetClientSideText.cs b/Commands/ClientSidePages/SetClientSideText.cs index 0b11a4f2a..2e3394070 100644 --- a/Commands/ClientSidePages/SetClientSideText.cs +++ b/Commands/ClientSidePages/SetClientSideText.cs @@ -3,11 +3,11 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using OfficeDevPnP.Core.Pages; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Set, "PnPClientSideText")] [CmdletHelp("Set Client-Side Text Component properties", diff --git a/Commands/ClientSidePages/SetClientSideWebPart.cs b/Commands/ClientSidePages/SetClientSideWebPart.cs index 81f669c4e..cbc1310bd 100644 --- a/Commands/ClientSidePages/SetClientSideWebPart.cs +++ b/Commands/ClientSidePages/SetClientSideWebPart.cs @@ -3,10 +3,10 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { [Cmdlet(VerbsCommon.Set, "PnPClientSideWebPart")] [CmdletHelp("Set Client-Side Web Part properties", diff --git a/Commands/ContentTypes/AddContentType.cs b/Commands/ContentTypes/AddContentType.cs index 27381a523..ee6fcb288 100644 --- a/Commands/ContentTypes/AddContentType.cs +++ b/Commands/ContentTypes/AddContentType.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Add, "PnPContentType")] [CmdletHelp("Adds a new content type", diff --git a/Commands/ContentTypes/AddContentTypeToList.cs b/Commands/ContentTypes/AddContentTypeToList.cs index 67981f767..d40d3f77e 100644 --- a/Commands/ContentTypes/AddContentTypeToList.cs +++ b/Commands/ContentTypes/AddContentTypeToList.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Add, "PnPContentTypeToList")] [CmdletHelp("Adds a new content type to a list", diff --git a/Commands/ContentTypes/AddFieldToContentType.cs b/Commands/ContentTypes/AddFieldToContentType.cs index ed8e07e2d..a63554844 100644 --- a/Commands/ContentTypes/AddFieldToContentType.cs +++ b/Commands/ContentTypes/AddFieldToContentType.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Add, "PnPFieldToContentType")] [CmdletHelp("Adds an existing site column to a content type", diff --git a/Commands/ContentTypes/GetContentType.cs b/Commands/ContentTypes/GetContentType.cs index 30565c4e0..fb26a310d 100644 --- a/Commands/ContentTypes/GetContentType.cs +++ b/Commands/ContentTypes/GetContentType.cs @@ -1,12 +1,12 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Get, "PnPContentType")] [CmdletHelp("Retrieves a content type", diff --git a/Commands/ContentTypes/GetContentTypePublishingHubUrl.cs b/Commands/ContentTypes/GetContentTypePublishingHubUrl.cs index 9fb1e8d97..94e236fac 100644 --- a/Commands/ContentTypes/GetContentTypePublishingHubUrl.cs +++ b/Commands/ContentTypes/GetContentTypePublishingHubUrl.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Get, "PnPContentTypePublishingHubUrl")] [CmdletHelp("Returns the url to Content Type Publishing Hub", diff --git a/Commands/ContentTypes/RemoveContentType.cs b/Commands/ContentTypes/RemoveContentType.cs index d9bbcb2d3..64247fcf7 100644 --- a/Commands/ContentTypes/RemoveContentType.cs +++ b/Commands/ContentTypes/RemoveContentType.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Remove, "PnPContentType")] [CmdletHelp("Removes a content type from a web", diff --git a/Commands/ContentTypes/RemoveContentTypeFromList.cs b/Commands/ContentTypes/RemoveContentTypeFromList.cs index e1698cab6..ee04e3dcb 100644 --- a/Commands/ContentTypes/RemoveContentTypeFromList.cs +++ b/Commands/ContentTypes/RemoveContentTypeFromList.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Remove, "PnPContentTypeFromList")] diff --git a/Commands/ContentTypes/RemoveFieldFromContentType.cs b/Commands/ContentTypes/RemoveFieldFromContentType.cs index f77536dbe..fa18cb477 100644 --- a/Commands/ContentTypes/RemoveFieldFromContentType.cs +++ b/Commands/ContentTypes/RemoveFieldFromContentType.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Remove, "PnPFieldFromContentType")] [CmdletHelp("Removes a site column from a content type", diff --git a/Commands/ContentTypes/SetDefaultContentTypeToList.cs b/Commands/ContentTypes/SetDefaultContentTypeToList.cs index dbd92be5a..e3f2fa8d2 100644 --- a/Commands/ContentTypes/SetDefaultContentTypeToList.cs +++ b/Commands/ContentTypes/SetDefaultContentTypeToList.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.ContentTypes +namespace PnP.PowerShell.Commands.ContentTypes { [Cmdlet(VerbsCommon.Set, "PnPDefaultContentTypeToList")] diff --git a/Commands/Diagnostic/FolderStatistics.cs b/Commands/Diagnostic/FolderStatistics.cs index fccef03ca..d19216c05 100644 --- a/Commands/Diagnostic/FolderStatistics.cs +++ b/Commands/Diagnostic/FolderStatistics.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { public class FolderStatistics { diff --git a/Commands/Diagnostic/ListStatistics.cs b/Commands/Diagnostic/ListStatistics.cs index c2c1fcfc8..f228cfe8d 100644 --- a/Commands/Diagnostic/ListStatistics.cs +++ b/Commands/Diagnostic/ListStatistics.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { public class ListStatistics { diff --git a/Commands/Diagnostic/MeasurePnPList.cs b/Commands/Diagnostic/MeasurePnPList.cs index 93bca3142..359be4a63 100644 --- a/Commands/Diagnostic/MeasurePnPList.cs +++ b/Commands/Diagnostic/MeasurePnPList.cs @@ -4,12 +4,12 @@ using System.Linq.Expressions; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Extensions; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { [Cmdlet(VerbsDiagnostic.Measure, "PnPList")] [CmdletHelp("Returns statistics on the list object. This may fail on lists larger than the list view threshold", diff --git a/Commands/Diagnostic/MeasurePnPWeb.cs b/Commands/Diagnostic/MeasurePnPWeb.cs index 265190259..5f3c12719 100644 --- a/Commands/Diagnostic/MeasurePnPWeb.cs +++ b/Commands/Diagnostic/MeasurePnPWeb.cs @@ -4,11 +4,11 @@ using System.Linq.Expressions; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Extensions; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { [Cmdlet(VerbsDiagnostic.Measure, "PnPWeb")] [CmdletHelp("Returns statistics on the web object", diff --git a/Commands/Diagnostic/MeasureResponseTime.cs b/Commands/Diagnostic/MeasureResponseTime.cs index 1adf7acef..b8b457d90 100644 --- a/Commands/Diagnostic/MeasureResponseTime.cs +++ b/Commands/Diagnostic/MeasureResponseTime.cs @@ -7,10 +7,10 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { [Cmdlet(VerbsDiagnostic.Measure, "PnPResponseTime")] [CmdletHelp("Gets statistics on response time for the specified endpoint by sending probe requests", diff --git a/Commands/Diagnostic/MeasureResponseTimeMode.cs b/Commands/Diagnostic/MeasureResponseTimeMode.cs index fa757d8f4..1596ab1bd 100644 --- a/Commands/Diagnostic/MeasureResponseTimeMode.cs +++ b/Commands/Diagnostic/MeasureResponseTimeMode.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { [Flags] public enum MeasureResponseTimeMode diff --git a/Commands/Diagnostic/ResponseTimeStatistics.cs b/Commands/Diagnostic/ResponseTimeStatistics.cs index c333550f6..5773704d5 100644 --- a/Commands/Diagnostic/ResponseTimeStatistics.cs +++ b/Commands/Diagnostic/ResponseTimeStatistics.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { public sealed class ResponseTimeStatistics { diff --git a/Commands/Diagnostic/WebStatistics.cs b/Commands/Diagnostic/WebStatistics.cs index ecb207b52..640c18b8e 100644 --- a/Commands/Diagnostic/WebStatistics.cs +++ b/Commands/Diagnostic/WebStatistics.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Diagnostic +namespace PnP.PowerShell.Commands.Diagnostic { public class WebStatistics { diff --git a/Commands/DocumentSets/AddContentTypeToDocumentSet.cs b/Commands/DocumentSets/AddContentTypeToDocumentSet.cs index e07f92bbc..531cd8e11 100644 --- a/Commands/DocumentSets/AddContentTypeToDocumentSet.cs +++ b/Commands/DocumentSets/AddContentTypeToDocumentSet.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.DocumentSets +namespace PnP.PowerShell.Commands.DocumentSets { [Cmdlet(VerbsCommon.Add,"PnPContentTypeToDocumentSet")] [CmdletHelp("Adds a content type to a document set", diff --git a/Commands/DocumentSets/AddDocumentSet.cs b/Commands/DocumentSets/AddDocumentSet.cs index 578e10b2c..c5a86c971 100644 --- a/Commands/DocumentSets/AddDocumentSet.cs +++ b/Commands/DocumentSets/AddDocumentSet.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.DocumentSet; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.DocumentSets +namespace PnP.PowerShell.Commands.DocumentSets { [Cmdlet(VerbsCommon.Add, "PnPDocumentSet")] [CmdletHelp("Creates a new document set in a library.", diff --git a/Commands/DocumentSets/GetDocumentSetTemplate.cs b/Commands/DocumentSets/GetDocumentSetTemplate.cs index d95e35f90..206619c5b 100644 --- a/Commands/DocumentSets/GetDocumentSetTemplate.cs +++ b/Commands/DocumentSets/GetDocumentSetTemplate.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.DocumentSet; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.DocumentSets +namespace PnP.PowerShell.Commands.DocumentSets { [Cmdlet(VerbsCommon.Get,"PnPDocumentSetTemplate")] [CmdletHelp("Retrieves a document set template", diff --git a/Commands/DocumentSets/RemoveContentTypeFromDocumentSet.cs b/Commands/DocumentSets/RemoveContentTypeFromDocumentSet.cs index b9ffc8bd4..4e6d23611 100644 --- a/Commands/DocumentSets/RemoveContentTypeFromDocumentSet.cs +++ b/Commands/DocumentSets/RemoveContentTypeFromDocumentSet.cs @@ -1,9 +1,9 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.DocumentSets +namespace PnP.PowerShell.Commands.DocumentSets { [Cmdlet(VerbsCommon.Remove, "PnPContentTypeFromDocumentSet")] [CmdletHelp("Removes a content type from a document set", diff --git a/Commands/DocumentSets/SetDocumentSetField.cs b/Commands/DocumentSets/SetDocumentSetField.cs index f4d453c01..4ab033191 100644 --- a/Commands/DocumentSets/SetDocumentSetField.cs +++ b/Commands/DocumentSets/SetDocumentSetField.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.DocumentSets +namespace PnP.PowerShell.Commands.DocumentSets { [Cmdlet(VerbsCommon.Set, "PnPDocumentSetField")] [CmdletHelp("Sets a site column from the available content types to a document set", diff --git a/Commands/Enums/AlertFilter.cs b/Commands/Enums/AlertFilter.cs index 3664a86ac..2a480723f 100644 --- a/Commands/Enums/AlertFilter.cs +++ b/Commands/Enums/AlertFilter.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum AlertFilter { diff --git a/Commands/Enums/AssociatedGroupType.cs b/Commands/Enums/AssociatedGroupType.cs index 6f5686c03..4e52d2354 100644 --- a/Commands/Enums/AssociatedGroupType.cs +++ b/Commands/Enums/AssociatedGroupType.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum AssociatedGroupType { diff --git a/Commands/Enums/AuditContentType.cs b/Commands/Enums/AuditContentType.cs index 36459d723..c0e25415a 100644 --- a/Commands/Enums/AuditContentType.cs +++ b/Commands/Enums/AuditContentType.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { /// /// The types of audit logs available through the Office 365 Management API diff --git a/Commands/Enums/CdnType.cs b/Commands/Enums/CdnType.cs index b3986e0fe..90210ed8c 100644 --- a/Commands/Enums/CdnType.cs +++ b/Commands/Enums/CdnType.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum CdnType { diff --git a/Commands/Enums/ClientSidePagePromoteType.cs b/Commands/Enums/ClientSidePagePromoteType.cs index 7985589b5..42256cab9 100644 --- a/Commands/Enums/ClientSidePagePromoteType.cs +++ b/Commands/Enums/ClientSidePagePromoteType.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.ClientSidePages +namespace PnP.PowerShell.Commands.ClientSidePages { public enum ClientSidePagePromoteType { diff --git a/Commands/Enums/ConnectionType.cs b/Commands/Enums/ConnectionType.cs index 86c1154bc..8e466604e 100644 --- a/Commands/Enums/ConnectionType.cs +++ b/Commands/Enums/ConnectionType.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum ConnectionType { diff --git a/Commands/Enums/CredentialType.cs b/Commands/Enums/CredentialType.cs index 41864f955..872379208 100644 --- a/Commands/Enums/CredentialType.cs +++ b/Commands/Enums/CredentialType.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum CredentialType { diff --git a/Commands/Enums/CustomActionScope.cs b/Commands/Enums/CustomActionScope.cs index 1fe0ec929..5e9509902 100644 --- a/Commands/Enums/CustomActionScope.cs +++ b/Commands/Enums/CustomActionScope.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { /// /// Scopes to which a CustomAction can be targeted diff --git a/Commands/Enums/DocumentSetFieldScope.cs b/Commands/Enums/DocumentSetFieldScope.cs index 3099e7ad8..cccb16839 100644 --- a/Commands/Enums/DocumentSetFieldScope.cs +++ b/Commands/Enums/DocumentSetFieldScope.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum DocumentSetFieldScope { diff --git a/Commands/Enums/Encoding.cs b/Commands/Enums/Encoding.cs index d3670aded..3371f6c08 100644 --- a/Commands/Enums/Encoding.cs +++ b/Commands/Enums/Encoding.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum Encoding { diff --git a/Commands/Enums/FeatureScope.cs b/Commands/Enums/FeatureScope.cs index c8ee88402..eaf622436 100644 --- a/Commands/Enums/FeatureScope.cs +++ b/Commands/Enums/FeatureScope.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum FeatureScope { diff --git a/Commands/Enums/GrooveBlockOption.cs b/Commands/Enums/GrooveBlockOption.cs index f15c547e1..d641e16ae 100644 --- a/Commands/Enums/GrooveBlockOption.cs +++ b/Commands/Enums/GrooveBlockOption.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { /// /// Specifies the options for allowing using the old Groove sync client, used in i.e. . diff --git a/Commands/Enums/HttpRequestMethod.cs b/Commands/Enums/HttpRequestMethod.cs index e2ed44752..df5f3f818 100644 --- a/Commands/Enums/HttpRequestMethod.cs +++ b/Commands/Enums/HttpRequestMethod.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum HttpRequestMethod { diff --git a/Commands/Enums/InitializationType.cs b/Commands/Enums/InitializationType.cs index f0eeac7ab..7085bfe42 100644 --- a/Commands/Enums/InitializationType.cs +++ b/Commands/Enums/InitializationType.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum InitializationType { diff --git a/Commands/Enums/ListItemUpdateType.cs b/Commands/Enums/ListItemUpdateType.cs index 1048e5b2b..04abfc2cf 100644 --- a/Commands/Enums/ListItemUpdateType.cs +++ b/Commands/Enums/ListItemUpdateType.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum ListItemUpdateType { diff --git a/Commands/Enums/NavigationNodeTypeEnum.cs b/Commands/Enums/NavigationNodeTypeEnum.cs index 55acd43a7..8d3b1b7a6 100644 --- a/Commands/Enums/NavigationNodeTypeEnum.cs +++ b/Commands/Enums/NavigationNodeTypeEnum.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum NavigationNodeType { diff --git a/Commands/Enums/Office365Workload.cs b/Commands/Enums/Office365Workload.cs index 673e7bee0..08ced03a1 100644 --- a/Commands/Enums/Office365Workload.cs +++ b/Commands/Enums/Office365Workload.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { /// /// The types of workloads available within Office 365 diff --git a/Commands/Enums/SearchBoxInNavBar.cs b/Commands/Enums/SearchBoxInNavBar.cs index 671250e2b..bc29b1bbc 100644 --- a/Commands/Enums/SearchBoxInNavBar.cs +++ b/Commands/Enums/SearchBoxInNavBar.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum SearchBoxInNavBar { diff --git a/Commands/Enums/SearchConfigurationScope.cs b/Commands/Enums/SearchConfigurationScope.cs index defbd950a..56b08f235 100644 --- a/Commands/Enums/SearchConfigurationScope.cs +++ b/Commands/Enums/SearchConfigurationScope.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum SearchConfigurationScope { diff --git a/Commands/Enums/SearchSettingsScope.cs b/Commands/Enums/SearchSettingsScope.cs index 582c20987..9c35e9ad3 100644 --- a/Commands/Enums/SearchSettingsScope.cs +++ b/Commands/Enums/SearchSettingsScope.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum SearchSettingsScope { diff --git a/Commands/Enums/SiteType.cs b/Commands/Enums/SiteType.cs index bb22f8af1..04b92b230 100644 --- a/Commands/Enums/SiteType.cs +++ b/Commands/Enums/SiteType.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum SiteType { diff --git a/Commands/Enums/SiteWebTemplate.cs b/Commands/Enums/SiteWebTemplate.cs index 37e65b0ed..1649898df 100644 --- a/Commands/Enums/SiteWebTemplate.cs +++ b/Commands/Enums/SiteWebTemplate.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum SiteWebTemplate { diff --git a/Commands/Enums/StorageEntityScope.cs b/Commands/Enums/StorageEntityScope.cs index 2db454083..d94f258c6 100644 --- a/Commands/Enums/StorageEntityScope.cs +++ b/Commands/Enums/StorageEntityScope.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { public enum StorageEntityScope { diff --git a/Commands/Enums/TargetScope.cs b/Commands/Enums/TargetScope.cs index a97d35776..7350f6331 100644 --- a/Commands/Enums/TargetScope.cs +++ b/Commands/Enums/TargetScope.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { /// /// Defines the available scopes for a Provisioning Template definition diff --git a/Commands/Enums/TokenAudience.cs b/Commands/Enums/TokenAudience.cs index 584f66d6b..55ac757da 100644 --- a/Commands/Enums/TokenAudience.cs +++ b/Commands/Enums/TokenAudience.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Enums +namespace PnP.PowerShell.Commands.Enums { /// /// Defines the commonly used audiences in oAuth tokens to connect to APIs diff --git a/Commands/Events/AddEventReceiver.cs b/Commands/Events/AddEventReceiver.cs index 875874a95..6f952c467 100644 --- a/Commands/Events/AddEventReceiver.cs +++ b/Commands/Events/AddEventReceiver.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Events +namespace PnP.PowerShell.Commands.Events { [Cmdlet(VerbsCommon.Add, "PnPEventReceiver")] [CmdletHelp("Adds a new remote event receiver", diff --git a/Commands/Events/GetEventReceiver.cs b/Commands/Events/GetEventReceiver.cs index a54ea04ce..c3aeb211c 100644 --- a/Commands/Events/GetEventReceiver.cs +++ b/Commands/Events/GetEventReceiver.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Events +namespace PnP.PowerShell.Commands.Events { [Cmdlet(VerbsCommon.Get, "PnPEventReceiver")] [CmdletHelp("Return registered eventreceivers", diff --git a/Commands/Events/RemoveEventReceiver.cs b/Commands/Events/RemoveEventReceiver.cs index 21d05b8cf..3f74851ab 100644 --- a/Commands/Events/RemoveEventReceiver.cs +++ b/Commands/Events/RemoveEventReceiver.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Events +namespace PnP.PowerShell.Commands.Events { [Cmdlet(VerbsCommon.Remove, "PnPEventReceiver", SupportsShouldProcess = true)] [CmdletHelp("Remove an eventreceiver", diff --git a/Commands/Extensibility/NewExtensibilityHandlerObject.cs b/Commands/Extensibility/NewExtensibilityHandlerObject.cs index fecc30cae..2d588c4f4 100644 --- a/Commands/Extensibility/NewExtensibilityHandlerObject.cs +++ b/Commands/Extensibility/NewExtensibilityHandlerObject.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Extensibility +namespace PnP.PowerShell.Commands.Extensibility { [Cmdlet(VerbsCommon.New, "PnPExtensibilityHandlerObject")] [CmdletHelp("Creates an ExtensibilityHandler Object, to be used by the Get-PnPProvisioningTemplate cmdlet", diff --git a/Commands/Extensions/ClientExtensions.cs b/Commands/Extensions/ClientExtensions.cs index 372686215..7937c65bf 100644 --- a/Commands/Extensions/ClientExtensions.cs +++ b/Commands/Extensions/ClientExtensions.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Extensions +namespace PnP.PowerShell.Commands.Extensions { public static class ClientExtensions { diff --git a/Commands/Extensions/ClientObjectExtensions.cs b/Commands/Extensions/ClientObjectExtensions.cs index 9de567a2f..ccd377cec 100644 --- a/Commands/Extensions/ClientObjectExtensions.cs +++ b/Commands/Extensions/ClientObjectExtensions.cs @@ -4,7 +4,7 @@ using System.Linq.Expressions; using System.Reflection; -namespace SharePointPnP.PowerShell.Commands.Extensions +namespace PnP.PowerShell.Commands.Extensions { //TODO: Should this be in core? public static class ClientObjectExtensions diff --git a/Commands/Extensions/WebExtensions.cs b/Commands/Extensions/WebExtensions.cs index b84762b76..1daaf5d78 100644 --- a/Commands/Extensions/WebExtensions.cs +++ b/Commands/Extensions/WebExtensions.cs @@ -5,7 +5,7 @@ using System.Linq.Expressions; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Extensions +namespace PnP.PowerShell.Commands.Extensions { public static class WebExtensions { diff --git a/Commands/Features/DisableFeature.cs b/Commands/Features/DisableFeature.cs index cfee2edae..038f92336 100644 --- a/Commands/Features/DisableFeature.cs +++ b/Commands/Features/DisableFeature.cs @@ -1,11 +1,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Features +namespace PnP.PowerShell.Commands.Features { [Cmdlet(VerbsLifecycle.Disable, "PnPFeature", SupportsShouldProcess = false)] [CmdletHelp("Disables a feature", diff --git a/Commands/Features/EnableFeature.cs b/Commands/Features/EnableFeature.cs index 151bec08f..53e630810 100644 --- a/Commands/Features/EnableFeature.cs +++ b/Commands/Features/EnableFeature.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Features +namespace PnP.PowerShell.Commands.Features { [Cmdlet(VerbsLifecycle.Enable, "PnPFeature")] [CmdletHelp("Enables a feature", Category = CmdletHelpCategory.Features)] diff --git a/Commands/Features/GetFeature.cs b/Commands/Features/GetFeature.cs index b300d7de7..ee9157ba3 100644 --- a/Commands/Features/GetFeature.cs +++ b/Commands/Features/GetFeature.cs @@ -1,15 +1,15 @@ using Microsoft.SharePoint.Client; using System.Collections.Generic; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Linq.Expressions; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Features +namespace PnP.PowerShell.Commands.Features { [Cmdlet(VerbsCommon.Get, "PnPFeature")] [CmdletHelp("Returns all activated or a specific activated feature", diff --git a/Commands/Fields/AddField.cs b/Commands/Fields/AddField.cs index 950e5c2d5..8eeac7a66 100644 --- a/Commands/Fields/AddField.cs +++ b/Commands/Fields/AddField.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Add, "PnPField", DefaultParameterSetName = "Add field to list")] [CmdletHelp("Add a field", diff --git a/Commands/Fields/AddFieldFromXml.cs b/Commands/Fields/AddFieldFromXml.cs index 65534b764..11c0210e9 100644 --- a/Commands/Fields/AddFieldFromXml.cs +++ b/Commands/Fields/AddFieldFromXml.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Add, "PnPFieldFromXml")] [CmdletHelp("Adds a field to a list or as a site column based upon a CAML/XML field definition", diff --git a/Commands/Fields/AddTaxonomyField.cs b/Commands/Fields/AddTaxonomyField.cs index 443c9e267..4be217181 100644 --- a/Commands/Fields/AddTaxonomyField.cs +++ b/Commands/Fields/AddTaxonomyField.cs @@ -3,10 +3,10 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Add, "PnPTaxonomyField")] [CmdletHelp("Add a taxonomy field", diff --git a/Commands/Fields/GetField.cs b/Commands/Fields/GetField.cs index 16e1bb476..8894df3b2 100644 --- a/Commands/Fields/GetField.cs +++ b/Commands/Fields/GetField.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Get, "PnPField")] [CmdletHelp("Returns a field from a list or site", diff --git a/Commands/Fields/RemoveField.cs b/Commands/Fields/RemoveField.cs index 8b98e3cb2..b65759214 100644 --- a/Commands/Fields/RemoveField.cs +++ b/Commands/Fields/RemoveField.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Remove, "PnPField", SupportsShouldProcess = true)] [CmdletHelp("Removes a field from a list or a site", diff --git a/Commands/Fields/SetField.cs b/Commands/Fields/SetField.cs index cedc6ecd3..91a570676 100644 --- a/Commands/Fields/SetField.cs +++ b/Commands/Fields/SetField.cs @@ -1,11 +1,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Set, "PnPField")] [CmdletHelp("Changes one or more properties of a field in a specific list or for the whole web", diff --git a/Commands/Files/AddFile.cs b/Commands/Files/AddFile.cs index 77bceac38..df437d66e 100644 --- a/Commands/Files/AddFile.cs +++ b/Commands/Files/AddFile.cs @@ -3,13 +3,13 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Add, "PnPFile")] [CmdletHelp("Uploads a file to Web", diff --git a/Commands/Files/AddFolder.cs b/Commands/Files/AddFolder.cs index 2307cd0f4..9b905ef47 100644 --- a/Commands/Files/AddFolder.cs +++ b/Commands/Files/AddFolder.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Add, "PnPFolder")] [CmdletHelp("Creates a folder within a parent folder", diff --git a/Commands/Files/CopyFile.cs b/Commands/Files/CopyFile.cs index 415dbf024..8bc8c5e78 100644 --- a/Commands/Files/CopyFile.cs +++ b/Commands/Files/CopyFile.cs @@ -4,12 +4,12 @@ using System.Management.Automation; using System.Text.RegularExpressions; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Utilities; using File = Microsoft.SharePoint.Client.File; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Copy, "PnPFile", SupportsShouldProcess = true)] [CmdletHelp("Copies a file or folder to a different location. This location can be within the same document library, same site, same site collection or even to another site collection on the same tenant. Currently there is a 200MB file size limit for the file or folder to be copied.", diff --git a/Commands/Files/FindFile.cs b/Commands/Files/FindFile.cs index f315f42d8..7706be496 100644 --- a/Commands/Files/FindFile.cs +++ b/Commands/Files/FindFile.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Find, "PnPFile", DefaultParameterSetName = "Web")] [CmdletHelp("Finds a file in the virtual file system of the web.", diff --git a/Commands/Files/GetFile.cs b/Commands/Files/GetFile.cs index 8ba0f3b7d..2b3849c75 100644 --- a/Commands/Files/GetFile.cs +++ b/Commands/Files/GetFile.cs @@ -1,12 +1,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.IO; using System.Management.Automation; using File = Microsoft.SharePoint.Client.File; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Get, "PnPFile", DefaultParameterSetName = "Return as file object")] [CmdletHelp("Downloads a file.", diff --git a/Commands/Files/GetFolder.cs b/Commands/Files/GetFolder.cs index 27cd8969f..e9f24951d 100644 --- a/Commands/Files/GetFolder.cs +++ b/Commands/Files/GetFolder.cs @@ -4,10 +4,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Get, "PnPFolder")] [CmdletHelp("Return a folder object", Category = CmdletHelpCategory.Files, diff --git a/Commands/Files/GetFolderItem.cs b/Commands/Files/GetFolderItem.cs index db31c5854..1a644ddd0 100644 --- a/Commands/Files/GetFolderItem.cs +++ b/Commands/Files/GetFolderItem.cs @@ -4,11 +4,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using File = Microsoft.SharePoint.Client.File; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Get, "PnPFolderItem")] [CmdletHelp("List content in folder", Category = CmdletHelpCategory.Files, SupportedPlatform = CmdletSupportedPlatform.All)] diff --git a/Commands/Files/MoveFile.cs b/Commands/Files/MoveFile.cs index f1479f774..ddb42aaf0 100644 --- a/Commands/Files/MoveFile.cs +++ b/Commands/Files/MoveFile.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Move, "PnPFile", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSet_SITE)] [CmdletHelp("Moves a file or folder to a different location", diff --git a/Commands/Files/MoveFolder.cs b/Commands/Files/MoveFolder.cs index f0c2de22f..7e427a25b 100644 --- a/Commands/Files/MoveFolder.cs +++ b/Commands/Files/MoveFolder.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Move, "PnPFolder")] [CmdletHelp("Move a folder to another location in the current web. If you want to move a folder to a different site collection, use the Move-PnPFile cmdlet instead, which also supports moving folders and also accross site collections.", diff --git a/Commands/Files/RemoveFile.cs b/Commands/Files/RemoveFile.cs index d64d31dd8..19dda146d 100644 --- a/Commands/Files/RemoveFile.cs +++ b/Commands/Files/RemoveFile.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Remove, "PnPFile", SupportsShouldProcess = true)] [CmdletHelp("Removes a file.", diff --git a/Commands/Files/RemoveFolder.cs b/Commands/Files/RemoveFolder.cs index 2b1776f4a..27f09ebcb 100644 --- a/Commands/Files/RemoveFolder.cs +++ b/Commands/Files/RemoveFolder.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Remove, "PnPFolder")] [CmdletHelp("Deletes a folder within a parent folder", diff --git a/Commands/Files/RenameFile.cs b/Commands/Files/RenameFile.cs index 2b0e999a8..850f88b55 100644 --- a/Commands/Files/RenameFile.cs +++ b/Commands/Files/RenameFile.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Rename, "PnPFile", SupportsShouldProcess = true)] [CmdletHelp("Renames a file in its current location", diff --git a/Commands/Files/RenameFolder.cs b/Commands/Files/RenameFolder.cs index d591d0c4e..5b1bf689d 100644 --- a/Commands/Files/RenameFolder.cs +++ b/Commands/Files/RenameFolder.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Rename, "PnPFolder")] [CmdletHelp("Renames a folder", diff --git a/Commands/Files/ResetFileVersion.cs b/Commands/Files/ResetFileVersion.cs index daabaa022..63f88207a 100644 --- a/Commands/Files/ResetFileVersion.cs +++ b/Commands/Files/ResetFileVersion.cs @@ -1,8 +1,8 @@ using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Reset, "PnPFileVersion")] [CmdletHelp("Resets a file to its previous version", Category = CmdletHelpCategory.Files, SupportedPlatform = CmdletSupportedPlatform.All)] diff --git a/Commands/Files/ResolveFolder.cs b/Commands/Files/ResolveFolder.cs index 2d598a690..d58daf7d8 100644 --- a/Commands/Files/ResolveFolder.cs +++ b/Commands/Files/ResolveFolder.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsDiagnostic.Resolve, "PnPFolder")] [Alias("Ensure-PnPFolder")] diff --git a/Commands/Files/SetFileCheckedIn.cs b/Commands/Files/SetFileCheckedIn.cs index 60613ea03..24c335f0f 100644 --- a/Commands/Files/SetFileCheckedIn.cs +++ b/Commands/Files/SetFileCheckedIn.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Set, "PnPFileCheckedIn")] [CmdletHelp("Checks in a file", diff --git a/Commands/Files/SetFileCheckedOut.cs b/Commands/Files/SetFileCheckedOut.cs index 2a108eae1..8ed010657 100644 --- a/Commands/Files/SetFileCheckedOut.cs +++ b/Commands/Files/SetFileCheckedOut.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Set, "PnPFileCheckedOut")] [CmdletHelp("Checks out a file", diff --git a/Commands/Files/SetFolderPermission.cs b/Commands/Files/SetFolderPermission.cs index 1d62e7007..a9fe44306 100644 --- a/Commands/Files/SetFolderPermission.cs +++ b/Commands/Files/SetFolderPermission.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Set, "PnPFolderPermission", DefaultParameterSetName = "User")] [CmdletHelp("Sets folder permissions. Use Get-PnPRoleDefinition to retrieve all available roles you can add or remove using this cmdlet.", diff --git a/Commands/Graph/AddMicrosoft365GroupMember.cs b/Commands/Graph/AddMicrosoft365GroupMember.cs index ed38053ea..355afca43 100644 --- a/Commands/Graph/AddMicrosoft365GroupMember.cs +++ b/Commands/Graph/AddMicrosoft365GroupMember.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Add, "PnPMicrosoft365GroupMember")] [Alias("Add-PnPUnifiedGroupMember")] diff --git a/Commands/Graph/AddSiteClassification.cs b/Commands/Graph/AddSiteClassification.cs index 2133790f2..4fd2ee514 100644 --- a/Commands/Graph/AddSiteClassification.cs +++ b/Commands/Graph/AddSiteClassification.cs @@ -1,11 +1,11 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Add, "PnPSiteClassification")] [CmdletHelp("Adds one ore more site classification values to the list of possible values", diff --git a/Commands/Graph/ClearMicrosoft365GroupMember.cs b/Commands/Graph/ClearMicrosoft365GroupMember.cs index e8db74fbd..d92d0c60f 100644 --- a/Commands/Graph/ClearMicrosoft365GroupMember.cs +++ b/Commands/Graph/ClearMicrosoft365GroupMember.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Clear, "PnPMicrosoft365GroupMember")] [Alias("Clear-PnPMicrosoft365GroupMember")] diff --git a/Commands/Graph/ClearMicrosoft365GroupOwner.cs b/Commands/Graph/ClearMicrosoft365GroupOwner.cs index be4f0b88a..c8283d8fa 100644 --- a/Commands/Graph/ClearMicrosoft365GroupOwner.cs +++ b/Commands/Graph/ClearMicrosoft365GroupOwner.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Clear, "PnPMicrosoft365GroupOwner")] [Alias("Clear-PnPUnifiedGroupOwner")] diff --git a/Commands/Graph/DisableSiteClassification.cs b/Commands/Graph/DisableSiteClassification.cs index 5385ca32b..d84f34d61 100644 --- a/Commands/Graph/DisableSiteClassification.cs +++ b/Commands/Graph/DisableSiteClassification.cs @@ -1,10 +1,10 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsLifecycle.Disable, "PnPSiteClassification")] [CmdletHelp("Disables Site Classifications for the tenant", diff --git a/Commands/Graph/EnableSiteClassification.cs b/Commands/Graph/EnableSiteClassification.cs index f118e0841..4c5bec9bd 100644 --- a/Commands/Graph/EnableSiteClassification.cs +++ b/Commands/Graph/EnableSiteClassification.cs @@ -1,10 +1,10 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsLifecycle.Enable, "PnPSiteClassification")] [CmdletHelp("Enables Site Classifications for the tenant", diff --git a/Commands/Graph/GetAADUser.cs b/Commands/Graph/GetAADUser.cs index 92113070c..7cf668841 100644 --- a/Commands/Graph/GetAADUser.cs +++ b/Commands/Graph/GetAADUser.cs @@ -1,11 +1,11 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPAADUser", DefaultParameterSetName = ParameterSet_LIST)] [CmdletHelp("Retrieves users from Azure Active Directory", diff --git a/Commands/Graph/GetDeletedMicrosoft365Group.cs b/Commands/Graph/GetDeletedMicrosoft365Group.cs index 61e987d97..7e2bd9b0d 100644 --- a/Commands/Graph/GetDeletedMicrosoft365Group.cs +++ b/Commands/Graph/GetDeletedMicrosoft365Group.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPDeletedMicrosoft365Group")] [Alias("Get-PnPDeletedUnifiedGroup")] diff --git a/Commands/Graph/GetGraphAccessToken.cs b/Commands/Graph/GetGraphAccessToken.cs index 351d3984e..b9204ccec 100644 --- a/Commands/Graph/GetGraphAccessToken.cs +++ b/Commands/Graph/GetGraphAccessToken.cs @@ -1,8 +1,8 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Base +namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPGraphAccessToken")] [CmdletHelp("Returns the current OAuth Access token for the Microsoft Graph API", diff --git a/Commands/Graph/GetGraphSubscription.cs b/Commands/Graph/GetGraphSubscription.cs index 2b93dc6ef..0c77b2450 100644 --- a/Commands/Graph/GetGraphSubscription.cs +++ b/Commands/Graph/GetGraphSubscription.cs @@ -1,10 +1,10 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPGraphSubscription", DefaultParameterSetName = ParameterSet_LIST)] [CmdletHelp("Gets subscriptions from Microsoft Graph. Requires the Azure Active Directory application permission 'Subscription.Read.All'.", diff --git a/Commands/Graph/GetMicrosoft365Group.cs b/Commands/Graph/GetMicrosoft365Group.cs index 94d78f2e6..826bfbc9c 100644 --- a/Commands/Graph/GetMicrosoft365Group.cs +++ b/Commands/Graph/GetMicrosoft365Group.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPMicrosoft365Group")] [Alias("Get-PnPUnifiedGroup")] diff --git a/Commands/Graph/GetMicrosoft365GroupMembers.cs b/Commands/Graph/GetMicrosoft365GroupMembers.cs index 4f8ddc944..bad8c866a 100644 --- a/Commands/Graph/GetMicrosoft365GroupMembers.cs +++ b/Commands/Graph/GetMicrosoft365GroupMembers.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPMicrosoft365GroupMembers")] [Alias("Get-PnPUnifiedGroupMembers")] diff --git a/Commands/Graph/GetMicrosoft365GroupOwners.cs b/Commands/Graph/GetMicrosoft365GroupOwners.cs index d742f6eac..f735db34f 100644 --- a/Commands/Graph/GetMicrosoft365GroupOwners.cs +++ b/Commands/Graph/GetMicrosoft365GroupOwners.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPMicrosoft365GroupOwners")] [Alias("Get-PnPUnifiedGroupOwners")] diff --git a/Commands/Graph/GetSiteClassification.cs b/Commands/Graph/GetSiteClassification.cs index bff81485a..97ee6838a 100644 --- a/Commands/Graph/GetSiteClassification.cs +++ b/Commands/Graph/GetSiteClassification.cs @@ -1,10 +1,10 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPSiteClassification")] [CmdletHelp("Returns the defined Site Classifications for the tenant", diff --git a/Commands/Graph/NewGraphSubscription.cs b/Commands/Graph/NewGraphSubscription.cs index f8dd598c9..73f20f8de 100644 --- a/Commands/Graph/NewGraphSubscription.cs +++ b/Commands/Graph/NewGraphSubscription.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.New, "PnPGraphSubscription")] [CmdletHelp("Creates a new Microsof Graph Subscription which allows your webhook API to be called when a change occurs in Microsoft Graph", diff --git a/Commands/Graph/NewMicrosoft365Group.cs b/Commands/Graph/NewMicrosoft365Group.cs index 17521f1db..2307205a4 100644 --- a/Commands/Graph/NewMicrosoft365Group.cs +++ b/Commands/Graph/NewMicrosoft365Group.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Properties; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Properties; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.New, "PnPMicrosoft365Group")] [Alias("New-PnPUnifiedGroup")] diff --git a/Commands/Graph/RemoveDeletedMicrosoft365Group.cs b/Commands/Graph/RemoveDeletedMicrosoft365Group.cs index 63d93eafc..9ae44ae83 100644 --- a/Commands/Graph/RemoveDeletedMicrosoft365Group.cs +++ b/Commands/Graph/RemoveDeletedMicrosoft365Group.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using System.Management.Automation; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPDeletedMicrosoft365Group")] [Alias("Remove-PnPDeletedUnifiedGroup")] diff --git a/Commands/Graph/RemoveGraphSubscription.cs b/Commands/Graph/RemoveGraphSubscription.cs index 752bb50d3..506642a46 100644 --- a/Commands/Graph/RemoveGraphSubscription.cs +++ b/Commands/Graph/RemoveGraphSubscription.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPGraphSubscription")] [CmdletHelp("Removes an existing Microsoft Graph subscription. Required Azure Active Directory application permission depends on the resource the subscription exists on, see https://docs.microsoft.com/graph/api/subscription-delete#permissions.", diff --git a/Commands/Graph/RemoveMicrosoft365Group.cs b/Commands/Graph/RemoveMicrosoft365Group.cs index 0d9305fbc..50ab9665f 100644 --- a/Commands/Graph/RemoveMicrosoft365Group.cs +++ b/Commands/Graph/RemoveMicrosoft365Group.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPMicrosoft365Group")] [Alias("Remove-PnPUnifiedGroup")] diff --git a/Commands/Graph/RemoveMicrosoft365GroupMember.cs b/Commands/Graph/RemoveMicrosoft365GroupMember.cs index df1739931..edf81e768 100644 --- a/Commands/Graph/RemoveMicrosoft365GroupMember.cs +++ b/Commands/Graph/RemoveMicrosoft365GroupMember.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPMicrosoft365GroupMember")] [Alias("Remove-PnPUnifiedGroupMember")] diff --git a/Commands/Graph/RemoveMicrosoft365GroupOwner.cs b/Commands/Graph/RemoveMicrosoft365GroupOwner.cs index 3ea830d59..c81b4154e 100644 --- a/Commands/Graph/RemoveMicrosoft365GroupOwner.cs +++ b/Commands/Graph/RemoveMicrosoft365GroupOwner.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPMicrosoft365GroupOwner")] [Alias("Remove-PnPUnifiedGroupOwner")] diff --git a/Commands/Graph/RemoveSiteClassification.cs b/Commands/Graph/RemoveSiteClassification.cs index 5bd0c14d4..755275412 100644 --- a/Commands/Graph/RemoveSiteClassification.cs +++ b/Commands/Graph/RemoveSiteClassification.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPSiteClassification")] [CmdletHelp("Removes one or more existing site classification values from the list of available values", diff --git a/Commands/Graph/ResetMicrosoft365GroupExpiration.cs b/Commands/Graph/ResetMicrosoft365GroupExpiration.cs index c25b8fff2..fb47b44ae 100644 --- a/Commands/Graph/ResetMicrosoft365GroupExpiration.cs +++ b/Commands/Graph/ResetMicrosoft365GroupExpiration.cs @@ -1,11 +1,11 @@ #if !ONPREMISES && !NETSTANDARD2_1 using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Reset, "PnPMicrosoft365GroupExpiration")] [Alias("Reset-PnPUnifiedGroupExpiration")] diff --git a/Commands/Graph/RestoreDeletedMicrosoft365Group.cs b/Commands/Graph/RestoreDeletedMicrosoft365Group.cs index 80acd930c..745ed6dbf 100644 --- a/Commands/Graph/RestoreDeletedMicrosoft365Group.cs +++ b/Commands/Graph/RestoreDeletedMicrosoft365Group.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using System.Management.Automation; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsData.Restore, "PnPDeletedMicrosoft365Group")] [Alias("Restore-PnPDeletedUnifiedGroup")] diff --git a/Commands/Graph/SetGraphSubscription.cs b/Commands/Graph/SetGraphSubscription.cs index 8da9700fd..2cdb42697 100644 --- a/Commands/Graph/SetGraphSubscription.cs +++ b/Commands/Graph/SetGraphSubscription.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPGraphSubscription")] [CmdletHelp("Updates an existing Microsoft Graph subscription. Required Azure Active Directory application permission depends on the resource the subscription exists on, see https://docs.microsoft.com/graph/api/subscription-delete#permissions.", diff --git a/Commands/Graph/SetMicrosoft365Group.cs b/Commands/Graph/SetMicrosoft365Group.cs index f5885661b..ab8beb507 100644 --- a/Commands/Graph/SetMicrosoft365Group.cs +++ b/Commands/Graph/SetMicrosoft365Group.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.IO; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPMicrosoft365Group")] [Alias("Set-PnPUnifiedGroup")] diff --git a/Commands/Graph/UpdateSiteClassification.cs b/Commands/Graph/UpdateSiteClassification.cs index 3baa3178f..25245622a 100644 --- a/Commands/Graph/UpdateSiteClassification.cs +++ b/Commands/Graph/UpdateSiteClassification.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Graph.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsData.Update, "PnPSiteClassification")] [CmdletHelp("Updates Site Classifications for the tenant", diff --git a/Commands/InformationManagement/ClosureState.cs b/Commands/InformationManagement/ClosureState.cs index ca0fba70c..eb1b220ab 100644 --- a/Commands/InformationManagement/ClosureState.cs +++ b/Commands/InformationManagement/ClosureState.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { public enum ClosureState { diff --git a/Commands/InformationManagement/GetLabel.cs b/Commands/InformationManagement/GetLabel.cs index bd9a4a374..aaa9559d2 100644 --- a/Commands/InformationManagement/GetLabel.cs +++ b/Commands/InformationManagement/GetLabel.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Get, "PnPLabel")] [CmdletHelp("Gets the Office 365 retention label/tag of the specified list or library (if applicable)", Category = CmdletHelpCategory.InformationManagement, SupportedPlatform = CmdletSupportedPlatform.Online)] diff --git a/Commands/InformationManagement/GetListInformationRightsManagement.cs b/Commands/InformationManagement/GetListInformationRightsManagement.cs index b523ee3e2..bc4d0d2a0 100644 --- a/Commands/InformationManagement/GetListInformationRightsManagement.cs +++ b/Commands/InformationManagement/GetListInformationRightsManagement.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Get, "PnPListInformationRightsManagement")] diff --git a/Commands/InformationManagement/GetSiteClosure.cs b/Commands/InformationManagement/GetSiteClosure.cs index 9976765b9..8479e0b18 100644 --- a/Commands/InformationManagement/GetSiteClosure.cs +++ b/Commands/InformationManagement/GetSiteClosure.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Get, "PnPSiteClosure")] diff --git a/Commands/InformationManagement/GetSitePolicy.cs b/Commands/InformationManagement/GetSitePolicy.cs index 23887a857..9154ad025 100644 --- a/Commands/InformationManagement/GetSitePolicy.cs +++ b/Commands/InformationManagement/GetSitePolicy.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Get, "PnPSitePolicy")] [CmdletHelp("Retrieves all or a specific site policy", diff --git a/Commands/InformationManagement/ResetLabel.cs b/Commands/InformationManagement/ResetLabel.cs index 2d8e85787..cb2a22dfd 100644 --- a/Commands/InformationManagement/ResetLabel.cs +++ b/Commands/InformationManagement/ResetLabel.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Reset, "PnPLabel")] [CmdletHelp("Resets a retention label on the specified list or library to None", diff --git a/Commands/InformationManagement/SetLabel.cs b/Commands/InformationManagement/SetLabel.cs index 87ac99286..b47f25e6e 100644 --- a/Commands/InformationManagement/SetLabel.cs +++ b/Commands/InformationManagement/SetLabel.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Set, "PnPLabel")] [CmdletHelp("Sets a retention label on the specified list or library. Use Reset-PnPLabel to remove the label again.", diff --git a/Commands/InformationManagement/SetListInformationRightsManagement.cs b/Commands/InformationManagement/SetListInformationRightsManagement.cs index 5701c069b..148805271 100644 --- a/Commands/InformationManagement/SetListInformationRightsManagement.cs +++ b/Commands/InformationManagement/SetListInformationRightsManagement.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Set, "PnPListInformationRightsManagement")] diff --git a/Commands/InformationManagement/SetSiteClosure.cs b/Commands/InformationManagement/SetSiteClosure.cs index 92adbabe3..cd8530022 100644 --- a/Commands/InformationManagement/SetSiteClosure.cs +++ b/Commands/InformationManagement/SetSiteClosure.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Set, "PnPSiteClosure")] [CmdletHelp("Opens or closes a site which has a site policy applied", Category = CmdletHelpCategory.InformationManagement)] diff --git a/Commands/InformationManagement/SetSitePolicy.cs b/Commands/InformationManagement/SetSitePolicy.cs index fa8137257..4d9bd9bf3 100644 --- a/Commands/InformationManagement/SetSitePolicy.cs +++ b/Commands/InformationManagement/SetSitePolicy.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.InformationManagement +namespace PnP.PowerShell.Commands.InformationManagement { [Cmdlet(VerbsCommon.Set, "PnPSitePolicy")] [CmdletHelp("Sets a site policy", diff --git a/Commands/InvokeAction/InvokeWebAction.cs b/Commands/InvokeAction/InvokeWebAction.cs index 5520eb686..4f67ba369 100644 --- a/Commands/InvokeAction/InvokeWebAction.cs +++ b/Commands/InvokeAction/InvokeWebAction.cs @@ -4,10 +4,10 @@ using System.Diagnostics; using System.Linq; using System.Management.Automation; -using SharePointPnP.PowerShell.Commands.Extensions; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.InvokeAction +namespace PnP.PowerShell.Commands.InvokeAction { internal class InvokeWebAction { diff --git a/Commands/InvokeAction/InvokeWebActionParameter.cs b/Commands/InvokeAction/InvokeWebActionParameter.cs index ae8b5e4f0..14367f2b7 100644 --- a/Commands/InvokeAction/InvokeWebActionParameter.cs +++ b/Commands/InvokeAction/InvokeWebActionParameter.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.Commands.InvokeAction +namespace PnP.PowerShell.Commands.InvokeAction { internal class InvokeActionParameter { diff --git a/Commands/InvokeAction/InvokeWebActionResult.cs b/Commands/InvokeAction/InvokeWebActionResult.cs index 8fc129569..347e8f17f 100644 --- a/Commands/InvokeAction/InvokeWebActionResult.cs +++ b/Commands/InvokeAction/InvokeWebActionResult.cs @@ -1,7 +1,7 @@ using System; using System.Data; -namespace SharePointPnP.PowerShell.Commands.InvokeAction +namespace PnP.PowerShell.Commands.InvokeAction { public class InvokeWebActionResult { diff --git a/Commands/Lists/AddListItem.cs b/Commands/Lists/AddListItem.cs index 91ca2e1f5..f914b7933 100644 --- a/Commands/Lists/AddListItem.cs +++ b/Commands/Lists/AddListItem.cs @@ -4,14 +4,14 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Utilities; // IMPORTANT: If you make changes to this cmdlet, also make the similar/same changes to the Set-PnPListItem Cmdlet -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Add, "PnPListItem")] [CmdletHelp("Adds an item to a list", diff --git a/Commands/Lists/AddView.cs b/Commands/Lists/AddView.cs index 6fd5e0daa..0b8e12d33 100644 --- a/Commands/Lists/AddView.cs +++ b/Commands/Lists/AddView.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Add, "PnPView")] [CmdletHelp("Adds a view to a list", diff --git a/Commands/Lists/ClearDefaultColumnValues.cs b/Commands/Lists/ClearDefaultColumnValues.cs index 3f1c4bffd..a55402899 100644 --- a/Commands/Lists/ClearDefaultColumnValues.cs +++ b/Commands/Lists/ClearDefaultColumnValues.cs @@ -3,10 +3,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { //TODO: Create Test diff --git a/Commands/Lists/GetDefaultColumnValues.cs b/Commands/Lists/GetDefaultColumnValues.cs index 6fcdeb9b8..24e6857c4 100644 --- a/Commands/Lists/GetDefaultColumnValues.cs +++ b/Commands/Lists/GetDefaultColumnValues.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Get, "PnPDefaultColumnValues")] [CmdletHelp("Gets the default column values for all folders in document library", diff --git a/Commands/Lists/GetList.cs b/Commands/Lists/GetList.cs index d3f5232b0..beefb28b4 100644 --- a/Commands/Lists/GetList.cs +++ b/Commands/Lists/GetList.cs @@ -1,12 +1,12 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq.Expressions; using System; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Get, "PnPList")] [CmdletHelp("Returns lists from SharePoint", diff --git a/Commands/Lists/GetListItem.cs b/Commands/Lists/GetListItem.cs index c73ba2264..57b63ffba 100644 --- a/Commands/Lists/GetListItem.cs +++ b/Commands/Lists/GetListItem.cs @@ -4,10 +4,10 @@ using System.Text; using System.Xml.Linq; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Get, "PnPListItem", DefaultParameterSetName = ParameterSet_ALLITEMS)] [CmdletHelp("Retrieves list items", diff --git a/Commands/Lists/GetView.cs b/Commands/Lists/GetView.cs index b2cc897a0..11b32ae69 100644 --- a/Commands/Lists/GetView.cs +++ b/Commands/Lists/GetView.cs @@ -4,11 +4,11 @@ using System.Linq.Expressions; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Get, "PnPView")] [CmdletHelp("Returns one or all views from a list", diff --git a/Commands/Lists/MoveListItemToRecycleBin.cs b/Commands/Lists/MoveListItemToRecycleBin.cs index 861dac77f..0f0d8e960 100644 --- a/Commands/Lists/MoveListItemToRecycleBin.cs +++ b/Commands/Lists/MoveListItemToRecycleBin.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Move, "PnPListItemToRecycleBin", SupportsShouldProcess = true)] [CmdletHelp("Moves an item from a list to the Recycle Bin", diff --git a/Commands/Lists/NewList.cs b/Commands/Lists/NewList.cs index 164488f38..0741964aa 100644 --- a/Commands/Lists/NewList.cs +++ b/Commands/Lists/NewList.cs @@ -1,9 +1,9 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.New, "PnPList")] [CmdletHelp("Creates a new list", diff --git a/Commands/Lists/RemoveList.cs b/Commands/Lists/RemoveList.cs index 95a795a32..be410c34b 100644 --- a/Commands/Lists/RemoveList.cs +++ b/Commands/Lists/RemoveList.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Remove, "PnPList", SupportsShouldProcess = true)] [CmdletHelp("Deletes a list", diff --git a/Commands/Lists/RemoveListItem.cs b/Commands/Lists/RemoveListItem.cs index 7696d3f3f..2a8030970 100644 --- a/Commands/Lists/RemoveListItem.cs +++ b/Commands/Lists/RemoveListItem.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Remove, "PnPListItem", SupportsShouldProcess = true)] [CmdletHelp("Deletes an item from a list", diff --git a/Commands/Lists/RemoveView.cs b/Commands/Lists/RemoveView.cs index eddd2a5dc..0eb1bba0f 100644 --- a/Commands/Lists/RemoveView.cs +++ b/Commands/Lists/RemoveView.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Remove, "PnPView", SupportsShouldProcess = true)] [CmdletHelp("Deletes a view from a list", diff --git a/Commands/Lists/RequestReIndexList.cs b/Commands/Lists/RequestReIndexList.cs index b0fb9924a..fc70614ec 100644 --- a/Commands/Lists/RequestReIndexList.cs +++ b/Commands/Lists/RequestReIndexList.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsLifecycle.Request, "PnPReIndexList")] [CmdletHelp("Marks the list for full indexing during the next incremental crawl", diff --git a/Commands/Lists/SetDefaultColumnValues.cs b/Commands/Lists/SetDefaultColumnValues.cs index 7981eea57..c2d6c475d 100644 --- a/Commands/Lists/SetDefaultColumnValues.cs +++ b/Commands/Lists/SetDefaultColumnValues.cs @@ -5,10 +5,10 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { //TODO: Create Test diff --git a/Commands/Lists/SetList.cs b/Commands/Lists/SetList.cs index 55afea536..89806af97 100644 --- a/Commands/Lists/SetList.cs +++ b/Commands/Lists/SetList.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Set, "PnPList")] [CmdletHelp("Updates list settings", diff --git a/Commands/Lists/SetListItem.cs b/Commands/Lists/SetListItem.cs index e8a12ae1d..e2c5d12fb 100644 --- a/Commands/Lists/SetListItem.cs +++ b/Commands/Lists/SetListItem.cs @@ -5,13 +5,13 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Utilities; // IMPORTANT: If you make changes to this cmdlet, also make the similar/same changes to the Add-PnPListItem Cmdlet -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Set, "PnPListItem")] [CmdletHelp("Updates a list item", diff --git a/Commands/Lists/SetListItemPermission.cs b/Commands/Lists/SetListItemPermission.cs index 98ec3d634..21ed9a9cf 100644 --- a/Commands/Lists/SetListItemPermission.cs +++ b/Commands/Lists/SetListItemPermission.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { [Cmdlet(VerbsCommon.Set, "PnPListItemPermission", DefaultParameterSetName = "User")] [CmdletHelp("Sets list item permissions. Use Get-PnPRoleDefinition to retrieve all available roles you can add or remove using this cmdlet.", diff --git a/Commands/Lists/SetListPermission.cs b/Commands/Lists/SetListPermission.cs index 1e99332d1..6c03ca2d1 100644 --- a/Commands/Lists/SetListPermission.cs +++ b/Commands/Lists/SetListPermission.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Lists +namespace PnP.PowerShell.Commands.Lists { //TODO: Create Test [Cmdlet(VerbsCommon.Set, "PnPListPermission")] diff --git a/Commands/Lists/SetView.cs b/Commands/Lists/SetView.cs index e85203bde..ea08bf835 100644 --- a/Commands/Lists/SetView.cs +++ b/Commands/Lists/SetView.cs @@ -1,11 +1,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections; -namespace SharePointPnP.PowerShell.Commands.Fields +namespace PnP.PowerShell.Commands.Fields { [Cmdlet(VerbsCommon.Set, "PnPView")] [CmdletHelp("Change view properties", diff --git a/Commands/ManagementApi/GetManagementApiAccessToken.cs b/Commands/ManagementApi/GetManagementApiAccessToken.cs index fc5477f32..72e204eec 100644 --- a/Commands/ManagementApi/GetManagementApiAccessToken.cs +++ b/Commands/ManagementApi/GetManagementApiAccessToken.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using System; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPManagementApiAccessToken")] [CmdletHelp("Gets an access token for the Office 365 Management API", diff --git a/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs b/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs index 36344e99d..5bd313d82 100644 --- a/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs +++ b/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPOffice365CurrentServiceStatus")] [CmdletHelp( diff --git a/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs b/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs index dbb5c1f8f..6da3cad47 100644 --- a/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs +++ b/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPOffice365HistoricalServiceStatus")] [CmdletHelp( diff --git a/Commands/ManagementApi/GetOffice365ServiceMessage.cs b/Commands/ManagementApi/GetOffice365ServiceMessage.cs index c9f3de6fc..fd7c389e2 100644 --- a/Commands/ManagementApi/GetOffice365ServiceMessage.cs +++ b/Commands/ManagementApi/GetOffice365ServiceMessage.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPOffice365ServiceMessage")] [CmdletHelp( diff --git a/Commands/ManagementApi/GetOffice365Services.cs b/Commands/ManagementApi/GetOffice365Services.cs index 7078775c3..6592faa46 100644 --- a/Commands/ManagementApi/GetOffice365Services.cs +++ b/Commands/ManagementApi/GetOffice365Services.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPOffice365Services")] [CmdletHelp( diff --git a/Commands/ManagementApi/GetOfficeManagementApiAccessToken.cs b/Commands/ManagementApi/GetOfficeManagementApiAccessToken.cs index 07b70bf77..fd6704af7 100644 --- a/Commands/ManagementApi/GetOfficeManagementApiAccessToken.cs +++ b/Commands/ManagementApi/GetOfficeManagementApiAccessToken.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPOfficeManagementApiAccessToken")] [CmdletHelp("Gets an access token for the Microsoft Office 365 Management API from the current connection", diff --git a/Commands/ManagementApi/GetUnifiedAuditLog.cs b/Commands/ManagementApi/GetUnifiedAuditLog.cs index 612a9a511..29d857164 100644 --- a/Commands/ManagementApi/GetUnifiedAuditLog.cs +++ b/Commands/ManagementApi/GetUnifiedAuditLog.cs @@ -5,11 +5,11 @@ using System.Management.Automation; using Newtonsoft.Json; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model; -namespace SharePointPnP.PowerShell.Commands.ManagementApi +namespace PnP.PowerShell.Commands.ManagementApi { [Cmdlet(VerbsCommon.Get, "PnPUnifiedAuditLog")] [CmdletHelp( diff --git a/Commands/Model/AzureApp.cs b/Commands/Model/AzureApp.cs index 9a3ca7f7c..6bfe1be69 100644 --- a/Commands/Model/AzureApp.cs +++ b/Commands/Model/AzureApp.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { internal class AzureApp { diff --git a/Commands/Model/ConnectionMethod.cs b/Commands/Model/ConnectionMethod.cs index f0678231c..789249c6c 100644 --- a/Commands/Model/ConnectionMethod.cs +++ b/Commands/Model/ConnectionMethod.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public enum ConnectionMethod { diff --git a/Commands/Model/GenericToken.cs b/Commands/Model/GenericToken.cs index 13cd28f0a..20d4c4790 100644 --- a/Commands/Model/GenericToken.cs +++ b/Commands/Model/GenericToken.cs @@ -5,9 +5,9 @@ using System.Linq; using System.Web; using System.Collections.Generic; -using SharePointPnP.PowerShell.Core.Attributes; +using PnP.PowerShell.Core.Attributes; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Contains a JWT oAuth token diff --git a/Commands/Model/GraphToken.cs b/Commands/Model/GraphToken.cs index 6171526a7..70e6ed765 100644 --- a/Commands/Model/GraphToken.cs +++ b/Commands/Model/GraphToken.cs @@ -1,6 +1,6 @@ using Microsoft.Identity.Client; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Utilities; using System; using System.Collections.Generic; using System.IO; @@ -8,7 +8,7 @@ using System.Security; using System.Security.Cryptography.X509Certificates; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Contains a Graph JWT oAuth token diff --git a/Commands/Model/ManagementApiFeature.cs b/Commands/Model/ManagementApiFeature.cs index f53fcd1a0..7bf269f52 100644 --- a/Commands/Model/ManagementApiFeature.cs +++ b/Commands/Model/ManagementApiFeature.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Information regarding one Office 365 service feature diff --git a/Commands/Model/ManagementApiFeatureStatus.cs b/Commands/Model/ManagementApiFeatureStatus.cs index 379983937..5d9aabf89 100644 --- a/Commands/Model/ManagementApiFeatureStatus.cs +++ b/Commands/Model/ManagementApiFeatureStatus.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Information regarding the current status of a specific feature in an Office 365 service diff --git a/Commands/Model/ManagementApiService.cs b/Commands/Model/ManagementApiService.cs index 51ba06e44..391060f84 100644 --- a/Commands/Model/ManagementApiService.cs +++ b/Commands/Model/ManagementApiService.cs @@ -1,7 +1,7 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Information regarding one Office 365 service diff --git a/Commands/Model/ManagementApiServiceMessage.cs b/Commands/Model/ManagementApiServiceMessage.cs index 5bab211c4..434b203dd 100644 --- a/Commands/Model/ManagementApiServiceMessage.cs +++ b/Commands/Model/ManagementApiServiceMessage.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Information regarding a message concerning a service in Office 365 diff --git a/Commands/Model/ManagementApiServiceMessageText.cs b/Commands/Model/ManagementApiServiceMessageText.cs index 9a2924967..fcd0c50c9 100644 --- a/Commands/Model/ManagementApiServiceMessageText.cs +++ b/Commands/Model/ManagementApiServiceMessageText.cs @@ -1,7 +1,7 @@ using Newtonsoft.Json; using System; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Information regarding the text inside a message concerning a service in Office 365 diff --git a/Commands/Model/ManagementApiServiceStatus.cs b/Commands/Model/ManagementApiServiceStatus.cs index de3a3f89f..417555889 100644 --- a/Commands/Model/ManagementApiServiceStatus.cs +++ b/Commands/Model/ManagementApiServiceStatus.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Information regarding the current status of an Office 365 service diff --git a/Commands/Model/ManagementApiSubscription.cs b/Commands/Model/ManagementApiSubscription.cs index e704910b4..cef83d8bf 100644 --- a/Commands/Model/ManagementApiSubscription.cs +++ b/Commands/Model/ManagementApiSubscription.cs @@ -1,7 +1,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { class ManagementApiSubscription { diff --git a/Commands/Model/ManagementApiSubscriptionContent.cs b/Commands/Model/ManagementApiSubscriptionContent.cs index 70d7ee39b..15f0f50ec 100644 --- a/Commands/Model/ManagementApiSubscriptionContent.cs +++ b/Commands/Model/ManagementApiSubscriptionContent.cs @@ -1,7 +1,7 @@ using Newtonsoft.Json; using System; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { class ManagementApiSubscriptionContent { diff --git a/Commands/Model/ManagementApiUnifiedLogRecord.cs b/Commands/Model/ManagementApiUnifiedLogRecord.cs index 1bdf96564..0ca3cd5ff 100644 --- a/Commands/Model/ManagementApiUnifiedLogRecord.cs +++ b/Commands/Model/ManagementApiUnifiedLogRecord.cs @@ -2,7 +2,7 @@ using System.Collections; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Contains the data of one recorded event in the Office 365 Management API diff --git a/Commands/Model/ManagementApiUnifiedLogRecordKeyValuePair.cs b/Commands/Model/ManagementApiUnifiedLogRecordKeyValuePair.cs index f4b3ef7cd..e102fa8f8 100644 --- a/Commands/Model/ManagementApiUnifiedLogRecordKeyValuePair.cs +++ b/Commands/Model/ManagementApiUnifiedLogRecordKeyValuePair.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Name/value parameter of a recorded event in the Office 365 Management API diff --git a/Commands/Model/OfficeManagementApiToken.cs b/Commands/Model/OfficeManagementApiToken.cs index 7869cddb1..ac1cb05e0 100644 --- a/Commands/Model/OfficeManagementApiToken.cs +++ b/Commands/Model/OfficeManagementApiToken.cs @@ -4,7 +4,7 @@ using System.Security; using System.Security.Cryptography.X509Certificates; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Contains an Office 365 Management API JWT oAuth token diff --git a/Commands/Model/PnPException.cs b/Commands/Model/PnPException.cs index 906252138..9f8c4f44b 100644 --- a/Commands/Model/PnPException.cs +++ b/Commands/Model/PnPException.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class PnPException { diff --git a/Commands/Model/ProvisionedSite.cs b/Commands/Model/ProvisionedSite.cs index 09885551a..bc08c01a7 100644 --- a/Commands/Model/ProvisionedSite.cs +++ b/Commands/Model/ProvisionedSite.cs @@ -1,4 +1,4 @@ -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class ProvisionedSite { diff --git a/Commands/Model/ResponseCollection.cs b/Commands/Model/ResponseCollection.cs index ea5fd88e4..30681e995 100644 --- a/Commands/Model/ResponseCollection.cs +++ b/Commands/Model/ResponseCollection.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class ResponseCollection { diff --git a/Commands/Model/SPOPublicCdnOrigin.cs b/Commands/Model/SPOPublicCdnOrigin.cs index 593e13e03..19c5c2ff9 100644 --- a/Commands/Model/SPOPublicCdnOrigin.cs +++ b/Commands/Model/SPOPublicCdnOrigin.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class SPOPublicCdnOrigin { diff --git a/Commands/Model/SPOTenant.cs b/Commands/Model/SPOTenant.cs index 7ac727c71..01ebc1697 100644 --- a/Commands/Model/SPOTenant.cs +++ b/Commands/Model/SPOTenant.cs @@ -8,7 +8,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class SPOTenant { diff --git a/Commands/Model/SPOTenantSyncClientRestriction.cs b/Commands/Model/SPOTenantSyncClientRestriction.cs index c6f7cd171..084bf97bb 100644 --- a/Commands/Model/SPOTenantSyncClientRestriction.cs +++ b/Commands/Model/SPOTenantSyncClientRestriction.cs @@ -3,7 +3,7 @@ using System; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Returned properties for diff --git a/Commands/Model/SPOTheme.cs b/Commands/Model/SPOTheme.cs index 93d93dd7a..a10581590 100644 --- a/Commands/Model/SPOTheme.cs +++ b/Commands/Model/SPOTheme.cs @@ -3,7 +3,7 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class SPOTheme { diff --git a/Commands/Model/ServicePrincipalPermissionGrant.cs b/Commands/Model/ServicePrincipalPermissionGrant.cs index 6c65f0284..97a7fc36e 100644 --- a/Commands/Model/ServicePrincipalPermissionGrant.cs +++ b/Commands/Model/ServicePrincipalPermissionGrant.cs @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { public class TenantServicePrincipalPermissionGrant { diff --git a/Commands/Model/SharePointToken.cs b/Commands/Model/SharePointToken.cs index 956a4793a..f77e8ed0e 100644 --- a/Commands/Model/SharePointToken.cs +++ b/Commands/Model/SharePointToken.cs @@ -1,6 +1,6 @@ using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { /// /// Contains a SharePoint JWT oAuth token diff --git a/Commands/Model/Teams/GraphException.cs b/Commands/Model/Teams/GraphException.cs index d4456f868..3cf1d63cf 100644 --- a/Commands/Model/Teams/GraphException.cs +++ b/Commands/Model/Teams/GraphException.cs @@ -3,7 +3,7 @@ using System.Net; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public class GraphException : Exception { diff --git a/Commands/Model/Teams/Group.cs b/Commands/Model/Teams/Group.cs index 6c1da8b42..f9b6c9243 100644 --- a/Commands/Model/Teams/Group.cs +++ b/Commands/Model/Teams/Group.cs @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public class Group { diff --git a/Commands/Model/Teams/Team.cs b/Commands/Model/Teams/Team.cs index fe01a5d3a..962dfa89b 100644 --- a/Commands/Model/Teams/Team.cs +++ b/Commands/Model/Teams/Team.cs @@ -7,7 +7,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { /// /// Defines Team for automated provisiong/update of Microsoft Teams diff --git a/Commands/Model/Teams/TeamApp.cs b/Commands/Model/Teams/TeamApp.cs index 447158ec8..c6b9eed23 100644 --- a/Commands/Model/Teams/TeamApp.cs +++ b/Commands/Model/Teams/TeamApp.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamApp { diff --git a/Commands/Model/Teams/TeamAppInstance.cs b/Commands/Model/Teams/TeamAppInstance.cs index 2e3207cf9..ae28371f4 100644 --- a/Commands/Model/Teams/TeamAppInstance.cs +++ b/Commands/Model/Teams/TeamAppInstance.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public class TeamAppInstance { diff --git a/Commands/Model/Teams/TeamChannel.cs b/Commands/Model/Teams/TeamChannel.cs index de6946840..23ae78ebd 100644 --- a/Commands/Model/Teams/TeamChannel.cs +++ b/Commands/Model/Teams/TeamChannel.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamChannel { diff --git a/Commands/Model/Teams/TeamChannelMessage.cs b/Commands/Model/Teams/TeamChannelMessage.cs index 075ea9bc3..8e79fc9bd 100644 --- a/Commands/Model/Teams/TeamChannelMessage.cs +++ b/Commands/Model/Teams/TeamChannelMessage.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamChannelMessage { diff --git a/Commands/Model/Teams/TeamChannelType.cs b/Commands/Model/Teams/TeamChannelType.cs index e9583848c..f9b4b50c9 100644 --- a/Commands/Model/Teams/TeamChannelType.cs +++ b/Commands/Model/Teams/TeamChannelType.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public enum TeamChannelType { diff --git a/Commands/Model/Teams/TeamDiscoverySettings.cs b/Commands/Model/Teams/TeamDiscoverySettings.cs index 0d530a625..a73250fdb 100644 --- a/Commands/Model/Teams/TeamDiscoverySettings.cs +++ b/Commands/Model/Teams/TeamDiscoverySettings.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamDiscoverySettings { diff --git a/Commands/Model/Teams/TeamFunSettings.cs b/Commands/Model/Teams/TeamFunSettings.cs index 4a5f39467..06c7c8958 100644 --- a/Commands/Model/Teams/TeamFunSettings.cs +++ b/Commands/Model/Teams/TeamFunSettings.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamFunSettings { diff --git a/Commands/Model/Teams/TeamGuestSettings.cs b/Commands/Model/Teams/TeamGuestSettings.cs index 02d94bc75..73b15b59c 100644 --- a/Commands/Model/Teams/TeamGuestSettings.cs +++ b/Commands/Model/Teams/TeamGuestSettings.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamGuestSettings { diff --git a/Commands/Model/Teams/TeamMemberSettings.cs b/Commands/Model/Teams/TeamMemberSettings.cs index 066266ab7..8b7183e11 100644 --- a/Commands/Model/Teams/TeamMemberSettings.cs +++ b/Commands/Model/Teams/TeamMemberSettings.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamMemberSettings { diff --git a/Commands/Model/Teams/TeamMessagingSettings.cs b/Commands/Model/Teams/TeamMessagingSettings.cs index 0037e3bb7..e650d7384 100644 --- a/Commands/Model/Teams/TeamMessagingSettings.cs +++ b/Commands/Model/Teams/TeamMessagingSettings.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamMessagingSettings { diff --git a/Commands/Model/Teams/TeamSecurity.cs b/Commands/Model/Teams/TeamSecurity.cs index 7bdf28831..3f172804d 100644 --- a/Commands/Model/Teams/TeamSecurity.cs +++ b/Commands/Model/Teams/TeamSecurity.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamSecurity { diff --git a/Commands/Model/Teams/TeamSecurityUser.cs b/Commands/Model/Teams/TeamSecurityUser.cs index 4d88cb1a3..b35b9fa30 100644 --- a/Commands/Model/Teams/TeamSecurityUser.cs +++ b/Commands/Model/Teams/TeamSecurityUser.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamSecurityUser { diff --git a/Commands/Model/Teams/TeamSettings.cs b/Commands/Model/Teams/TeamSettings.cs index 8fafc631e..9e21dd39e 100644 --- a/Commands/Model/Teams/TeamSettings.cs +++ b/Commands/Model/Teams/TeamSettings.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public class TeamCreationInformation { diff --git a/Commands/Model/Teams/TeamTab.cs b/Commands/Model/Teams/TeamTab.cs index 50c3771fe..044bd3b83 100644 --- a/Commands/Model/Teams/TeamTab.cs +++ b/Commands/Model/Teams/TeamTab.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using System.Web; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamTab { diff --git a/Commands/Model/Teams/TeamTabConfiguration.cs b/Commands/Model/Teams/TeamTabConfiguration.cs index b3c4b7c3a..17d30a4b2 100644 --- a/Commands/Model/Teams/TeamTabConfiguration.cs +++ b/Commands/Model/Teams/TeamTabConfiguration.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamTabConfiguration { diff --git a/Commands/Model/Teams/TeamTabResource.cs b/Commands/Model/Teams/TeamTabResource.cs index 70d77dbeb..56499e3c2 100644 --- a/Commands/Model/Teams/TeamTabResource.cs +++ b/Commands/Model/Teams/TeamTabResource.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamTabResource { diff --git a/Commands/Model/Teams/TeamTabType.cs b/Commands/Model/Teams/TeamTabType.cs index e58d3b91d..e0281a31d 100644 --- a/Commands/Model/Teams/TeamTabType.cs +++ b/Commands/Model/Teams/TeamTabType.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public enum TeamTabType { diff --git a/Commands/Model/Teams/User.cs b/Commands/Model/Teams/User.cs index 466462883..d7c10427c 100644 --- a/Commands/Model/Teams/User.cs +++ b/Commands/Model/Teams/User.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Model.Teams +namespace PnP.PowerShell.Commands.Model.Teams { public class User : IEquatable { diff --git a/Commands/ModuleFiles/SharePointPnP.PowerShell.2013.Commands.Format.ps1xml b/Commands/ModuleFiles/PnP.PowerShell.2013.Commands.Format.ps1xml similarity index 99% rename from Commands/ModuleFiles/SharePointPnP.PowerShell.2013.Commands.Format.ps1xml rename to Commands/ModuleFiles/PnP.PowerShell.2013.Commands.Format.ps1xml index 60d97bab7..a1252cfba 100644 --- a/Commands/ModuleFiles/SharePointPnP.PowerShell.2013.Commands.Format.ps1xml +++ b/Commands/ModuleFiles/PnP.PowerShell.2013.Commands.Format.ps1xml @@ -826,7 +826,7 @@ ProvisioningTemplateInformation - SharePointPnP.PowerShell.Commands.Components.ProvisioningTemplateInformation + PnP.PowerShell.Commands.Components.ProvisioningTemplateInformation @@ -1309,7 +1309,7 @@ PnPException - SharePointPnP.PowerShell.Commands.Model.PnPException + PnP.PowerShell.Commands.Model.PnPException diff --git a/Commands/ModuleFiles/SharePointPnP.PowerShell.2016.Commands.Format.ps1xml b/Commands/ModuleFiles/PnP.PowerShell.2016.Commands.Format.ps1xml similarity index 99% rename from Commands/ModuleFiles/SharePointPnP.PowerShell.2016.Commands.Format.ps1xml rename to Commands/ModuleFiles/PnP.PowerShell.2016.Commands.Format.ps1xml index 60d97bab7..a1252cfba 100644 --- a/Commands/ModuleFiles/SharePointPnP.PowerShell.2016.Commands.Format.ps1xml +++ b/Commands/ModuleFiles/PnP.PowerShell.2016.Commands.Format.ps1xml @@ -826,7 +826,7 @@ ProvisioningTemplateInformation - SharePointPnP.PowerShell.Commands.Components.ProvisioningTemplateInformation + PnP.PowerShell.Commands.Components.ProvisioningTemplateInformation @@ -1309,7 +1309,7 @@ PnPException - SharePointPnP.PowerShell.Commands.Model.PnPException + PnP.PowerShell.Commands.Model.PnPException diff --git a/Commands/ModuleFiles/SharePointPnP.PowerShell.2019.Commands.Format.ps1xml b/Commands/ModuleFiles/PnP.PowerShell.2019.Commands.Format.ps1xml similarity index 99% rename from Commands/ModuleFiles/SharePointPnP.PowerShell.2019.Commands.Format.ps1xml rename to Commands/ModuleFiles/PnP.PowerShell.2019.Commands.Format.ps1xml index 1eec4e79f..b18cea2fb 100644 --- a/Commands/ModuleFiles/SharePointPnP.PowerShell.2019.Commands.Format.ps1xml +++ b/Commands/ModuleFiles/PnP.PowerShell.2019.Commands.Format.ps1xml @@ -826,7 +826,7 @@ ProvisioningTemplateInformation - SharePointPnP.PowerShell.Commands.Components.ProvisioningTemplateInformation + PnP.PowerShell.Commands.Components.ProvisioningTemplateInformation @@ -1397,7 +1397,7 @@ PnPException - SharePointPnP.PowerShell.Commands.Model.PnPException + PnP.PowerShell.Commands.Model.PnPException diff --git a/Commands/ModuleFiles/SharePointPnP.PowerShell.Online.Commands.Format.ps1xml b/Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml similarity index 99% rename from Commands/ModuleFiles/SharePointPnP.PowerShell.Online.Commands.Format.ps1xml rename to Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml index a0ab3c2d8..2a3212f36 100644 --- a/Commands/ModuleFiles/SharePointPnP.PowerShell.Online.Commands.Format.ps1xml +++ b/Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml @@ -826,7 +826,7 @@ ProvisioningTemplateInformation - SharePointPnP.PowerShell.Commands.Components.ProvisioningTemplateInformation + PnP.PowerShell.Commands.Components.ProvisioningTemplateInformation @@ -1597,7 +1597,7 @@ SPOTheme - SharePointPnP.PowerShell.Commands.Model.SPOTheme + PnP.PowerShell.Commands.Model.SPOTheme @@ -1849,7 +1849,7 @@ PnPException - SharePointPnP.PowerShell.Commands.Model.PnPException + PnP.PowerShell.Commands.Model.PnPException @@ -2023,7 +2023,7 @@ Team - SharePointPnP.PowerShell.Commands.Model.Teams.Team + PnP.PowerShell.Commands.Model.Teams.Team @@ -2069,7 +2069,7 @@ TeamChannel - SharePointPnP.PowerShell.Commands.Model.Teams.TeamChannel + PnP.PowerShell.Commands.Model.Teams.TeamChannel @@ -2131,7 +2131,7 @@ TeamApp - SharePointPnP.PowerShell.Commands.Model.Teams.TeamApp + PnP.PowerShell.Commands.Model.Teams.TeamApp @@ -2171,7 +2171,7 @@ TeamChannelMessage - SharePointPnP.PowerShell.Commands.Model.Teams.TeamChannelMessage + PnP.PowerShell.Commands.Model.Teams.TeamChannelMessage @@ -2207,7 +2207,7 @@ User - SharePointPnP.PowerShell.Commands.Model.Teams.User + PnP.PowerShell.Commands.Model.Teams.User diff --git a/Commands/Navigation/AddNavigationNode.cs b/Commands/Navigation/AddNavigationNode.cs index 98d021d44..93fa81da3 100644 --- a/Commands/Navigation/AddNavigationNode.cs +++ b/Commands/Navigation/AddNavigationNode.cs @@ -2,9 +2,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Add, "PnPNavigationNode")] [CmdletHelp("Adds an item to a navigation element", diff --git a/Commands/Navigation/GetNavigationNode.cs b/Commands/Navigation/GetNavigationNode.cs index 011851623..2ef41f58f 100644 --- a/Commands/Navigation/GetNavigationNode.cs +++ b/Commands/Navigation/GetNavigationNode.cs @@ -4,9 +4,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Get, "PnPNavigationNode", DefaultParameterSetName = ParameterSet_ALLBYLOCATION)] [CmdletHelp("Returns all or a specific navigation node", diff --git a/Commands/Navigation/RemoveNavigationNode.cs b/Commands/Navigation/RemoveNavigationNode.cs index 0a7fefe77..98a16319b 100644 --- a/Commands/Navigation/RemoveNavigationNode.cs +++ b/Commands/Navigation/RemoveNavigationNode.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Enums; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Branding +namespace PnP.PowerShell.Commands.Branding { [Cmdlet(VerbsCommon.Remove, "PnPNavigationNode", DefaultParameterSetName = ParameterSet_BYID, SupportsShouldProcess = true)] [CmdletHelp("Removes a menu item from either the quicklaunch or top navigation", diff --git a/Commands/SharePointPnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj similarity index 99% rename from Commands/SharePointPnP.PowerShell.Commands.csproj rename to Commands/PnP.PowerShell.Commands.csproj index a18b6231f..3df39221f 100644 --- a/Commands/SharePointPnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -135,7 +135,7 @@ MinimumRecommendedRules.ruleset - SharePointPnP.PowerShell.Commands + PnP.PowerShell.Commands @@ -163,6 +163,9 @@ prompt MinimumRecommendedRules.ruleset + + PnP.PowerShell.Online.Commands + @@ -1148,10 +1151,10 @@ Designer - + Always - + Always Designer @@ -1234,9 +1237,9 @@ - + {fdd50bbd-ae78-4b10-9549-0566686719ab} - SharePointPnP.PowerShell.CmdletHelpAttributes + PnP.PowerShell.CmdletHelpAttributes @@ -1250,10 +1253,10 @@ - + Always - + Always @@ -1276,7 +1279,7 @@ - + \ No newline at end of file diff --git a/Commands/Principals/AddAlert.cs b/Commands/Principals/AddAlert.cs index c442b2fd9..27925628d 100644 --- a/Commands/Principals/AddAlert.cs +++ b/Commands/Principals/AddAlert.cs @@ -3,11 +3,11 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Add, "PnPAlert")] [CmdletHelp("Adds an alert for a user to a list", diff --git a/Commands/Principals/AddUserToGroup.cs b/Commands/Principals/AddUserToGroup.cs index e34fd417a..eea6ded47 100644 --- a/Commands/Principals/AddUserToGroup.cs +++ b/Commands/Principals/AddUserToGroup.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Add, "PnPUserToGroup")] [CmdletHelp("Adds a user to a SharePoint group", diff --git a/Commands/Principals/GetAlert.cs b/Commands/Principals/GetAlert.cs index 965cf4db3..1b813fc87 100644 --- a/Commands/Principals/GetAlert.cs +++ b/Commands/Principals/GetAlert.cs @@ -1,12 +1,12 @@ #if !SP2013 && !SP2016 using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Get, "PnPAlert")] [CmdletHelp("Returns registered alerts for a user.", diff --git a/Commands/Principals/GetGroup.cs b/Commands/Principals/GetGroup.cs index 60f6311f5..38e9fdf57 100644 --- a/Commands/Principals/GetGroup.cs +++ b/Commands/Principals/GetGroup.cs @@ -1,10 +1,10 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Get, "PnPGroup",DefaultParameterSetName="All")] [CmdletHelp("Returns a specific SharePoint group or all SharePoint groups in site.", diff --git a/Commands/Principals/GetGroupMembers.cs b/Commands/Principals/GetGroupMembers.cs index d2c7372fa..f45fc57fc 100644 --- a/Commands/Principals/GetGroupMembers.cs +++ b/Commands/Principals/GetGroupMembers.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Get, "PnPGroupMembers")] [CmdletHelp("Retrieves all members of a group", diff --git a/Commands/Principals/GetGroupPermissions.cs b/Commands/Principals/GetGroupPermissions.cs index 723ed62f7..ff1bcc5d9 100644 --- a/Commands/Principals/GetGroupPermissions.cs +++ b/Commands/Principals/GetGroupPermissions.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Get, "PnPGroupPermissions")] [CmdletHelp("Returns the permissions for a specific SharePoint group", diff --git a/Commands/Principals/GetUser.cs b/Commands/Principals/GetUser.cs index bd9e87fde..8706c23ab 100644 --- a/Commands/Principals/GetUser.cs +++ b/Commands/Principals/GetUser.cs @@ -1,16 +1,16 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Linq.Expressions; using System; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; using System.Collections.Generic; using System.Xml.Linq; using System.Data; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Get, "PnPUser", DefaultParameterSetName = PARAMETERSET_IDENTITY)] [CmdletHelp("Returns site users of current web", diff --git a/Commands/Principals/NewGroup.cs b/Commands/Principals/NewGroup.cs index d4460d248..aa59493e0 100644 --- a/Commands/Principals/NewGroup.cs +++ b/Commands/Principals/NewGroup.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; using System; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.New, "PnPGroup")] [CmdletHelp("Adds group to the Site Groups List and returns a group object", diff --git a/Commands/Principals/NewUser.cs b/Commands/Principals/NewUser.cs index aafdb5ac0..fab3fa8cd 100644 --- a/Commands/Principals/NewUser.cs +++ b/Commands/Principals/NewUser.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.New, "PnPUser")] [CmdletHelp("Adds a user to the built-in Site User Info List and returns a user object", diff --git a/Commands/Principals/RemoveAlert.cs b/Commands/Principals/RemoveAlert.cs index 31a09316f..1fbed4909 100644 --- a/Commands/Principals/RemoveAlert.cs +++ b/Commands/Principals/RemoveAlert.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Remove, "PnPAlert")] [CmdletHelp("Removes an alert for a user", diff --git a/Commands/Principals/RemoveGroup.cs b/Commands/Principals/RemoveGroup.cs index d47d55412..97d122aa0 100644 --- a/Commands/Principals/RemoveGroup.cs +++ b/Commands/Principals/RemoveGroup.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Remove, "PnPGroup", DefaultParameterSetName = "All")] [CmdletHelp("Removes a group from a web.", diff --git a/Commands/Principals/RemoveUser.cs b/Commands/Principals/RemoveUser.cs index fd0367cce..323ef577a 100644 --- a/Commands/Principals/RemoveUser.cs +++ b/Commands/Principals/RemoveUser.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Linq.Expressions; using System; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Remove, "PnPUser")] [CmdletHelp("Removes a specific user from the site collection User Information List", diff --git a/Commands/Principals/RemoveUserFromGroup.cs b/Commands/Principals/RemoveUserFromGroup.cs index b805cdb44..ee1f44774 100644 --- a/Commands/Principals/RemoveUserFromGroup.cs +++ b/Commands/Principals/RemoveUserFromGroup.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Remove, "PnPUserFromGroup")] [CmdletHelp("Removes a user from a group", diff --git a/Commands/Principals/SetGroup.cs b/Commands/Principals/SetGroup.cs index 0a2e8cd7e..7e701a728 100644 --- a/Commands/Principals/SetGroup.cs +++ b/Commands/Principals/SetGroup.cs @@ -1,11 +1,11 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Set, "PnPGroup")] [CmdletHelp("Updates a group", diff --git a/Commands/Principals/SetGroupPermissions.cs b/Commands/Principals/SetGroupPermissions.cs index 3d10d67af..d10cda997 100644 --- a/Commands/Principals/SetGroupPermissions.cs +++ b/Commands/Principals/SetGroupPermissions.cs @@ -1,11 +1,11 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Principals +namespace PnP.PowerShell.Commands.Principals { [Cmdlet(VerbsCommon.Set, "PnPGroupPermissions")] [CmdletHelp("Adds and/or removes permissions of a specific SharePoint group", diff --git a/Commands/Properties/AssemblyInfo.cs b/Commands/Properties/AssemblyInfo.cs index 782b64d16..3fff88c77 100644 --- a/Commands/Properties/AssemblyInfo.cs +++ b/Commands/Properties/AssemblyInfo.cs @@ -6,27 +6,27 @@ // set of attributes. Change these attribute values to modify the information // associated with an assembly. #if SP2013 -[assembly: AssemblyTitle("SharePointPnP.PowerShell.SP2013.Commands")] +[assembly: AssemblyTitle("PnP.PowerShell.SP2013.Commands")] #elif SP2016 -[assembly: AssemblyTitle("SharePointPnP.PowerShell.SP2016.Commands")] +[assembly: AssemblyTitle("PnP.PowerShell.SP2016.Commands")] #elif SP2019 -[assembly: AssemblyTitle("SharePointPnP.PowerShell.SP2019.Commands")] +[assembly: AssemblyTitle("PnP.PowerShell.SP2019.Commands")] #else -[assembly: AssemblyTitle("SharePointPnP.PowerShell.Online.Commands")] +[assembly: AssemblyTitle("PnP.PowerShell.Online.Commands")] #endif [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] #if SP2013 -[assembly: AssemblyProduct("SharePointPnP.PowerShell.SP2013.Commands")] +[assembly: AssemblyProduct("PnP.PowerShell.SP2013.Commands")] #elif SP2016 -[assembly: AssemblyProduct("SharePointPnP.PowerShell.SP2016.Commands")] +[assembly: AssemblyProduct("PnP.PowerShell.SP2016.Commands")] #elif SP2019 -[assembly: AssemblyProduct("SharePointPnP.PowerShell.SP2019.Commands")] +[assembly: AssemblyProduct("PnP.PowerShell.SP2019.Commands")] #elif NETSTANDARD2_1 [assembly: AssemblyProduct("PnP.PowerShell.Online.Commands")] #else -[assembly: AssemblyProduct("SharePointPnP.PowerShell.Online.Commands")] +[assembly: AssemblyProduct("PnP.PowerShell.Online.Commands")] #endif [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] @@ -57,4 +57,4 @@ [assembly: AssemblyVersion("4.0.0.0")] [assembly: AssemblyFileVersion("4.0.0.0")] #endif -[assembly: InternalsVisibleTo("SharePointPnP.PowerShell.Tests")] \ No newline at end of file +[assembly: InternalsVisibleTo("PnP.PowerShell.Tests")] \ No newline at end of file diff --git a/Commands/Properties/Resources.Designer.cs b/Commands/Properties/Resources.Designer.cs index 288e7a0b5..fa139df5e 100644 --- a/Commands/Properties/Resources.Designer.cs +++ b/Commands/Properties/Resources.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace SharePointPnP.PowerShell.Commands.Properties { +namespace PnP.PowerShell.Commands.Properties { using System; @@ -39,7 +39,7 @@ internal Resources() { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SharePointPnP.PowerShell.Commands.Properties.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PnP.PowerShell.Commands.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; @@ -79,7 +79,6 @@ internal static string ApplicationName { } /// - /// Looks up a localized string similar to The certificate located at '{0}' holds no private key. Ensure you provide the private key certificate, typically the .pfx file.. /// internal static string CertificateAtPathHasNoPrivateKey { @@ -87,26 +86,27 @@ internal static string CertificateAtPathHasNoPrivateKey { return ResourceManager.GetString("CertificateAtPathHasNoPrivateKey", resourceCulture); } } - /// Looks up a localized string similar to The provided certificate with the thumbprint '{0}' does not have a private key which is required for a connection to be established. Ensure you have imported the certificate containing the private key, typically the .pfx file, into the Windows Certificate Store.. + + /// + /// Looks up a localized string similar to No private key certificate has been found at '{0}'. /// - internal static string CertificateWithThumbprintDoesNotHavePrivateKey { + internal static string CertificateNotFoundAtPath { get { - return ResourceManager.GetString("CertificateWithThumbprintDoesNotHavePrivateKey", resourceCulture); + return ResourceManager.GetString("CertificateNotFoundAtPath", resourceCulture); } } /// - - /// Looks up a localized string similar to No private key certificate has been found at '{0}'. + /// Looks up a localized string similar to The provided certificate with the thumbprint '{0}' does not have a private key which is required for a connection to be established. Ensure you have imported the certificate containing the private key, typically the .pfx file, into the Windows Certificate Store.. /// - internal static string CertificateNotFoundAtPath { + internal static string CertificateWithThumbprintDoesNotHavePrivateKey { get { - return ResourceManager.GetString("CertificateNotFoundAtPath", resourceCulture); + return ResourceManager.GetString("CertificateWithThumbprintDoesNotHavePrivateKey", resourceCulture); } } /// - /// Looks up a localized string similar to No certificate with the thumbprint '{0}' has been found in the Windows certificate store. + /// Looks up a localized string similar to No certificate with the thumbprint '{0}' has been found in the Windows Certificate Store. /// internal static string CertificateWithThumbprintNotFound { get { diff --git a/Commands/Provider/Parameters/SPOChildItemsParameters.cs b/Commands/Provider/Parameters/SPOChildItemsParameters.cs index e14f907c8..3049634f4 100644 --- a/Commands/Provider/Parameters/SPOChildItemsParameters.cs +++ b/Commands/Provider/Parameters/SPOChildItemsParameters.cs @@ -1,6 +1,6 @@ using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provider.Parameters +namespace PnP.PowerShell.Commands.Provider.Parameters { public class SPOChildItemsParameters { diff --git a/Commands/Provider/Parameters/SPOContentParameters.cs b/Commands/Provider/Parameters/SPOContentParameters.cs index 0e33cfbf6..c72a2d4a0 100644 --- a/Commands/Provider/Parameters/SPOContentParameters.cs +++ b/Commands/Provider/Parameters/SPOContentParameters.cs @@ -1,6 +1,6 @@ using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provider.Parameters +namespace PnP.PowerShell.Commands.Provider.Parameters { public class SPOContentParameters { diff --git a/Commands/Provider/Parameters/SPODriveParameters.cs b/Commands/Provider/Parameters/SPODriveParameters.cs index b67e53c2b..876b4579c 100644 --- a/Commands/Provider/Parameters/SPODriveParameters.cs +++ b/Commands/Provider/Parameters/SPODriveParameters.cs @@ -1,7 +1,7 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Provider.Parameters +namespace PnP.PowerShell.Commands.Provider.Parameters { public class SPODriveParameters { diff --git a/Commands/Provider/SPOContentReaderWriter.cs b/Commands/Provider/SPOContentReaderWriter.cs index 1c4bbc572..4b944c470 100644 --- a/Commands/Provider/SPOContentReaderWriter.cs +++ b/Commands/Provider/SPOContentReaderWriter.cs @@ -6,7 +6,7 @@ using Microsoft.SharePoint.Client; using File = Microsoft.SharePoint.Client.File; -namespace SharePointPnP.PowerShell.Commands.Provider +namespace PnP.PowerShell.Commands.Provider { internal class SPOContentReaderWriter : IContentReader, IContentWriter { diff --git a/Commands/Provider/SPODriveCacheItem.cs b/Commands/Provider/SPODriveCacheItem.cs index 57fcc80d2..eb668d252 100644 --- a/Commands/Provider/SPODriveCacheItem.cs +++ b/Commands/Provider/SPODriveCacheItem.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.Commands.Provider +namespace PnP.PowerShell.Commands.Provider { internal class SPODriveCacheItem { diff --git a/Commands/Provider/SPODriveCacheWeb.cs b/Commands/Provider/SPODriveCacheWeb.cs index 1efaaf3e1..5f19fbf30 100644 --- a/Commands/Provider/SPODriveCacheWeb.cs +++ b/Commands/Provider/SPODriveCacheWeb.cs @@ -1,7 +1,7 @@ using System; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Provider +namespace PnP.PowerShell.Commands.Provider { internal class SPODriveCacheWeb { diff --git a/Commands/Provider/SPODriveInfo.cs b/Commands/Provider/SPODriveInfo.cs index f55bedb10..e1101923e 100644 --- a/Commands/Provider/SPODriveInfo.cs +++ b/Commands/Provider/SPODriveInfo.cs @@ -3,7 +3,7 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Provider +namespace PnP.PowerShell.Commands.Provider { internal class SPODriveInfo : PSDriveInfo { diff --git a/Commands/Provider/SPOProvider.cs b/Commands/Provider/SPOProvider.cs index 35d423a8d..3dc1d7194 100644 --- a/Commands/Provider/SPOProvider.cs +++ b/Commands/Provider/SPOProvider.cs @@ -7,14 +7,14 @@ using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Extensions; -using SharePointPnP.PowerShell.Commands.Provider.Parameters; -using SharePointPnP.PowerShell.Commands.Provider.SPOProxy; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.Commands.Provider.Parameters; +using PnP.PowerShell.Commands.Provider.SPOProxy; using File = Microsoft.SharePoint.Client.File; -using PnPResources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnPResources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Provider +namespace PnP.PowerShell.Commands.Provider { [CmdletProvider(PSProviderName, ProviderCapabilities.ShouldProcess)] public class SPOProvider : NavigationCmdletProvider, IContentCmdletProvider diff --git a/Commands/Provider/SPOProxy/SPOProxyCmdletBase.cs b/Commands/Provider/SPOProxy/SPOProxyCmdletBase.cs index 04ba803c6..36c6a9723 100644 --- a/Commands/Provider/SPOProxy/SPOProxyCmdletBase.cs +++ b/Commands/Provider/SPOProxy/SPOProxyCmdletBase.cs @@ -1,6 +1,6 @@ using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provider.SPOProxy +namespace PnP.PowerShell.Commands.Provider.SPOProxy { public abstract class SPOProxyCmdletBase : PSCmdlet { diff --git a/Commands/Provider/SPOProxy/SPOProxyCopyItem.cs b/Commands/Provider/SPOProxy/SPOProxyCopyItem.cs index c8eb0b57f..4369a9f32 100644 --- a/Commands/Provider/SPOProxy/SPOProxyCopyItem.cs +++ b/Commands/Provider/SPOProxy/SPOProxyCopyItem.cs @@ -6,10 +6,10 @@ using System.Management.Automation.Runspaces; using Microsoft.PowerShell.Commands; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.Provider.SPOProxy +namespace PnP.PowerShell.Commands.Provider.SPOProxy { [Cmdlet(CmdletVerb, CmdletNoun, DefaultParameterSetName = "Path", SupportsShouldProcess = true, SupportsTransactions = true)] [CmdletHelp("Proxy cmdlet for using Copy-Item between SharePoint provider and FileSystem provider", Category = CmdletHelpCategory.Files)] diff --git a/Commands/Provider/SPOProxy/SPOProxyImplementation.cs b/Commands/Provider/SPOProxy/SPOProxyImplementation.cs index 3b2dae631..d916d5cc8 100644 --- a/Commands/Provider/SPOProxy/SPOProxyImplementation.cs +++ b/Commands/Provider/SPOProxy/SPOProxyImplementation.cs @@ -11,7 +11,7 @@ using Microsoft.SharePoint.Client; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.Provider.SPOProxy +namespace PnP.PowerShell.Commands.Provider.SPOProxy { internal class SPOProxyImplementation { diff --git a/Commands/Provider/SPOProxy/SPOProxyMoveItem.cs b/Commands/Provider/SPOProxy/SPOProxyMoveItem.cs index b75060da9..2ff519266 100644 --- a/Commands/Provider/SPOProxy/SPOProxyMoveItem.cs +++ b/Commands/Provider/SPOProxy/SPOProxyMoveItem.cs @@ -1,7 +1,7 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Provider.SPOProxy +namespace PnP.PowerShell.Commands.Provider.SPOProxy { [Cmdlet(CmdletVerb, CmdletNoun, DefaultParameterSetName = "Path", SupportsShouldProcess = true, SupportsTransactions = true)] [CmdletHelp("Proxy cmdlet for using Move-Item between SharePoint provider and FileSystem provider", Category = CmdletHelpCategory.Files)] diff --git a/Commands/Provisioning/Site/AddDataRowsToProvisioningTemplate.cs b/Commands/Provisioning/Site/AddDataRowsToProvisioningTemplate.cs index 237356cc1..d05b046b3 100644 --- a/Commands/Provisioning/Site/AddDataRowsToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/AddDataRowsToProvisioningTemplate.cs @@ -3,9 +3,9 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System; using System.Collections.Generic; using System.IO; @@ -15,7 +15,7 @@ using System.Text.RegularExpressions; using SPSite = Microsoft.SharePoint.Client.Site; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Add, "PnPDataRowsToProvisioningTemplate")] [CmdletHelp("Adds datarows to a list inside a PnP Provisioning Template", diff --git a/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs b/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs index 3dbce53a1..94495a68b 100644 --- a/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs @@ -4,7 +4,7 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.IO; using System.Linq; @@ -12,7 +12,7 @@ using System.Net; using PnPFileLevel = OfficeDevPnP.Core.Framework.Provisioning.Model.FileLevel; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Add, "PnPFileToProvisioningTemplate")] [CmdletHelp("Adds a file to a PnP Provisioning Template", diff --git a/Commands/Provisioning/Site/AddListFoldersToProvisioningTemplate.cs b/Commands/Provisioning/Site/AddListFoldersToProvisioningTemplate.cs index 93d81e032..57d027df3 100644 --- a/Commands/Provisioning/Site/AddListFoldersToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/AddListFoldersToProvisioningTemplate.cs @@ -3,8 +3,8 @@ using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using OfficeDevPnP.Core.AppModelExtensions; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Collections.Generic; using System.IO; @@ -14,7 +14,7 @@ using System.Threading.Tasks; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Add, "PnPListFoldersToProvisioningTemplate")] [CmdletHelp("Adds folders to a list in a PnP Provisioning Template", diff --git a/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs b/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs index 572355883..27357055e 100644 --- a/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs @@ -3,7 +3,7 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using OfficeDevPnP.Core.Framework.Provisioning.Connectors; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; @@ -11,11 +11,11 @@ using System.Linq; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Base; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet("Apply", "PnPProvisioningTemplate")] [CmdletHelp("Applies a site template to a web", diff --git a/Commands/Provisioning/Site/ConvertFolderToProvisioningTemplate.cs b/Commands/Provisioning/Site/ConvertFolderToProvisioningTemplate.cs index 6e1276de8..ea5e45ddd 100644 --- a/Commands/Provisioning/Site/ConvertFolderToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ConvertFolderToProvisioningTemplate.cs @@ -1,13 +1,13 @@ using OfficeDevPnP.Core.Framework.Provisioning.Connectors.OpenXML; using OfficeDevPnP.Core.Framework.Provisioning.Connectors.OpenXML.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning +namespace PnP.PowerShell.Commands.Provisioning { [Cmdlet(VerbsData.Convert, "PnPFolderToProvisioningTemplate")] [CmdletHelp("Creates a pnp package file of an existing template xml, and includes all files in the current folder", diff --git a/Commands/Provisioning/Site/ConvertProvisioningTemplate.cs b/Commands/Provisioning/Site/ConvertProvisioningTemplate.cs index b2281c8a3..2b9385a99 100644 --- a/Commands/Provisioning/Site/ConvertProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ConvertProvisioningTemplate.cs @@ -1,12 +1,12 @@ using System.IO; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using OfficeDevPnP.Core.Framework.Provisioning.Providers; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.Provisioning +namespace PnP.PowerShell.Commands.Provisioning { [Cmdlet(VerbsData.Convert, "PnPProvisioningTemplate")] [CmdletHelp("Converts a provisioning template to an other schema version", diff --git a/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs b/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs index 6d18c6934..6fa1f8bdd 100644 --- a/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs @@ -6,14 +6,14 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; using OfficeDevPnP.Core.Framework.Provisioning.Providers; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using File = System.IO.File; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.Commands.Utilities; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Utilities; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsData.Export, "PnPListToProvisioningTemplate", SupportsShouldProcess = true)] [CmdletHelp("Exports one or more lists to provisioning template", diff --git a/Commands/Provisioning/Site/GetProvisioningTemplate.cs b/Commands/Provisioning/Site/GetProvisioningTemplate.cs index 299ca8335..924c9f3bc 100644 --- a/Commands/Provisioning/Site/GetProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/GetProvisioningTemplate.cs @@ -7,17 +7,17 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; using OfficeDevPnP.Core.Framework.Provisioning.Providers; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using File = System.IO.File; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Collections; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Get, "PnPProvisioningTemplate", SupportsShouldProcess = true)] [CmdletHelp("Generates a provisioning site template from a web", diff --git a/Commands/Provisioning/Site/NewProvisioningTemplate.cs b/Commands/Provisioning/Site/NewProvisioningTemplate.cs index 37b713e08..95f98c761 100644 --- a/Commands/Provisioning/Site/NewProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/NewProvisioningTemplate.cs @@ -1,8 +1,8 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning +namespace PnP.PowerShell.Commands.Provisioning { [Cmdlet(VerbsCommon.New, "PnPProvisioningTemplate", SupportsShouldProcess = true)] [CmdletHelp("Creates a new provisioning template object", diff --git a/Commands/Provisioning/Site/NewProvisioningTemplateFromFolder.cs b/Commands/Provisioning/Site/NewProvisioningTemplateFromFolder.cs index c4d97261b..febba13dc 100644 --- a/Commands/Provisioning/Site/NewProvisioningTemplateFromFolder.cs +++ b/Commands/Provisioning/Site/NewProvisioningTemplateFromFolder.cs @@ -1,8 +1,8 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections; using System.Collections.Generic; using System.IO; @@ -11,9 +11,9 @@ using System.Xml.Linq; using OfficeDevPnP.Core.Framework.Provisioning.Connectors.OpenXML; using OfficeDevPnP.Core.Framework.Provisioning.Connectors.OpenXML.Model; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Provisioning +namespace PnP.PowerShell.Commands.Provisioning { [Cmdlet(VerbsCommon.New, "PnPProvisioningTemplateFromFolder")] [CmdletHelp("Generates a provisioning template from a given folder, including only files that are present in that folder", diff --git a/Commands/Provisioning/Site/ReadProvisioningTemplate.cs b/Commands/Provisioning/Site/ReadProvisioningTemplate.cs index 0c9cde9b2..3c674e8af 100644 --- a/Commands/Provisioning/Site/ReadProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ReadProvisioningTemplate.cs @@ -2,14 +2,14 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Utilities; using System; using System.IO; using System.Management.Automation; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Provisioning +namespace PnP.PowerShell.Commands.Provisioning { [Cmdlet(VerbsCommunications.Read, "PnPProvisioningTemplate")] [Alias("Load-PnPProvisioningTemplate")] diff --git a/Commands/Provisioning/Site/RemoveFileFromProvisioningTemplate.cs b/Commands/Provisioning/Site/RemoveFileFromProvisioningTemplate.cs index f1a58c5ac..f1eaa2d0e 100644 --- a/Commands/Provisioning/Site/RemoveFileFromProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/RemoveFileFromProvisioningTemplate.cs @@ -2,13 +2,13 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.IO; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Remove, "PnPFileFromProvisioningTemplate")] [CmdletHelp("Removes a file from a PnP Provisioning Template", diff --git a/Commands/Provisioning/Site/SaveProvisioningTemplate.cs b/Commands/Provisioning/Site/SaveProvisioningTemplate.cs index fcd62fa2b..c1908c13b 100644 --- a/Commands/Provisioning/Site/SaveProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/SaveProvisioningTemplate.cs @@ -2,9 +2,9 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System; using System.Collections.Generic; using System.IO; @@ -13,7 +13,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Provisioning +namespace PnP.PowerShell.Commands.Provisioning { [Cmdlet(VerbsData.Save, "PnPProvisioningTemplate")] [CmdletHelp("Saves a PnP site template to the file system", diff --git a/Commands/Provisioning/Site/SetProvisioningTemplateMetadata.cs b/Commands/Provisioning/Site/SetProvisioningTemplateMetadata.cs index fde74626e..998f8126c 100644 --- a/Commands/Provisioning/Site/SetProvisioningTemplateMetadata.cs +++ b/Commands/Provisioning/Site/SetProvisioningTemplateMetadata.cs @@ -3,14 +3,14 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using OfficeDevPnP.Core.Framework.Provisioning.Connectors; using System.Collections; using OfficeDevPnP.Core.Framework.Provisioning.Providers; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Set, "PnPProvisioningTemplateMetadata")] [CmdletHelp("Sets metadata of a provisioning template", diff --git a/Commands/Provisioning/Tenant/AddProvisioningTemplate.cs b/Commands/Provisioning/Tenant/AddProvisioningTemplate.cs index b4e67e593..e376dcd4a 100644 --- a/Commands/Provisioning/Tenant/AddProvisioningTemplate.cs +++ b/Commands/Provisioning/Tenant/AddProvisioningTemplate.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.Add, "PnPProvisioningTemplate", SupportsShouldProcess = true)] [CmdletHelp("Adds a PnP Provisioning Template object to a tenant template", diff --git a/Commands/Provisioning/Tenant/AddTenantSequence.cs b/Commands/Provisioning/Tenant/AddTenantSequence.cs index 7be54eb0f..eb9365f1b 100644 --- a/Commands/Provisioning/Tenant/AddTenantSequence.cs +++ b/Commands/Provisioning/Tenant/AddTenantSequence.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.Add, "PnPTenantSequence", SupportsShouldProcess = true)] [CmdletHelp("Adds a tenant sequence object to a tenant template", diff --git a/Commands/Provisioning/Tenant/AddTenantSequenceSite.cs b/Commands/Provisioning/Tenant/AddTenantSequenceSite.cs index 1e3ceabe9..d59519e37 100644 --- a/Commands/Provisioning/Tenant/AddTenantSequenceSite.cs +++ b/Commands/Provisioning/Tenant/AddTenantSequenceSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.Add, "PnPTenantSequenceSite", SupportsShouldProcess = true)] [CmdletHelp("Adds a existing tenant sequence site object to a tenant template", diff --git a/Commands/Provisioning/Tenant/AddTenantSequenceSubSite.cs b/Commands/Provisioning/Tenant/AddTenantSequenceSubSite.cs index b99145956..e2a1a8655 100644 --- a/Commands/Provisioning/Tenant/AddTenantSequenceSubSite.cs +++ b/Commands/Provisioning/Tenant/AddTenantSequenceSubSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.Add, "PnPTenantSequenceSubSite", SupportsShouldProcess = true)] [CmdletHelp("Adds a tenant sequence sub site object to a tenant sequence site object", diff --git a/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs b/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs index e685a7257..b10c87362 100644 --- a/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs @@ -5,10 +5,10 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; using OfficeDevPnP.Core.Framework.Provisioning.Providers; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model; using System; using System.Collections; using System.Collections.Generic; @@ -17,7 +17,7 @@ using System.Management.Automation; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet("Apply", "PnPTenantTemplate", SupportsShouldProcess = true)] [CmdletHelp("Applies a tenant template to the current tenant. You must have the Office 365 Global Admin role to run this cmdlet successfully.", diff --git a/Commands/Provisioning/Tenant/GetTenantSequence.cs b/Commands/Provisioning/Tenant/GetTenantSequence.cs index 913218712..74e4efcb9 100644 --- a/Commands/Provisioning/Tenant/GetTenantSequence.cs +++ b/Commands/Provisioning/Tenant/GetTenantSequence.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.Get, "PnPTenantSequence", SupportsShouldProcess = true)] [CmdletHelp("Returns one ore more provisioning sequence object(s) from a tenant template", diff --git a/Commands/Provisioning/Tenant/GetTenantSequenceSite.cs b/Commands/Provisioning/Tenant/GetTenantSequenceSite.cs index e2824f9f2..181e38064 100644 --- a/Commands/Provisioning/Tenant/GetTenantSequenceSite.cs +++ b/Commands/Provisioning/Tenant/GetTenantSequenceSite.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.Get, "PnPTenantSequenceSite", SupportsShouldProcess = true)] [CmdletHelp("Returns one ore more sites from a tenant template", diff --git a/Commands/Provisioning/Tenant/GetTenantTemplate.cs b/Commands/Provisioning/Tenant/GetTenantTemplate.cs index 5c7d6a93c..743c1fe7f 100644 --- a/Commands/Provisioning/Tenant/GetTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/GetTenantTemplate.cs @@ -6,16 +6,16 @@ using OfficeDevPnP.Core.Framework.Provisioning.Connectors; using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using File = System.IO.File; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.Commands.Base.PipeBinds; using OfficeDevPnP.Core.Framework.Provisioning.Model.Configuration; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Site +namespace PnP.PowerShell.Commands.Provisioning.Site { [Cmdlet(VerbsCommon.Get, "PnPTenantTemplate", SupportsShouldProcess = true)] [CmdletHelp("Generates a provisioning tenant template from a site. If the site is a hubsite any connected site will be included.", diff --git a/Commands/Provisioning/Tenant/NewTenantSequence.cs b/Commands/Provisioning/Tenant/NewTenantSequence.cs index 5697acaee..013f98bb7 100644 --- a/Commands/Provisioning/Tenant/NewTenantSequence.cs +++ b/Commands/Provisioning/Tenant/NewTenantSequence.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.New, "PnPTenantSequence", SupportsShouldProcess = true)] [CmdletHelp("Creates a new tenant sequence object", diff --git a/Commands/Provisioning/Tenant/NewTenantSequenceCommunicationSite.cs b/Commands/Provisioning/Tenant/NewTenantSequenceCommunicationSite.cs index 14a2ba96e..4bc949311 100644 --- a/Commands/Provisioning/Tenant/NewTenantSequenceCommunicationSite.cs +++ b/Commands/Provisioning/Tenant/NewTenantSequenceCommunicationSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.New, "PnPTenantSequenceCommunicationSite", SupportsShouldProcess = true)] [CmdletHelp("Creates a communication site object", diff --git a/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSite.cs b/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSite.cs index 28a40acfb..16a401784 100644 --- a/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSite.cs +++ b/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.New, "PnPTenantSequenceTeamNoGroupSite", SupportsShouldProcess = true)] [CmdletHelp("Creates a new team site without a Microsoft 365 group in-memory object", diff --git a/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSubSite.cs b/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSubSite.cs index 5b9121e3e..f4ed49ab8 100644 --- a/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSubSite.cs +++ b/Commands/Provisioning/Tenant/NewTenantSequenceTeamNoGroupSubSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.New, "PnPTenantSequenceTeamNoGroupSubSite", SupportsShouldProcess = true)] [CmdletHelp("Creates a team site subsite with no Microsoft 365 group object", diff --git a/Commands/Provisioning/Tenant/NewTenantSequenceTeamSite.cs b/Commands/Provisioning/Tenant/NewTenantSequenceTeamSite.cs index 9bc3e7511..67ef15c95 100644 --- a/Commands/Provisioning/Tenant/NewTenantSequenceTeamSite.cs +++ b/Commands/Provisioning/Tenant/NewTenantSequenceTeamSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.New, "PnPTenantSequenceTeamSite", SupportsShouldProcess = true)] [CmdletHelp("Creates a team site object", diff --git a/Commands/Provisioning/Tenant/NewTenantTemplate.cs b/Commands/Provisioning/Tenant/NewTenantTemplate.cs index a2310cbb5..65ff90463 100644 --- a/Commands/Provisioning/Tenant/NewTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/NewTenantTemplate.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommon.New, "PnPTenantTemplate", SupportsShouldProcess = true)] [CmdletHelp("Creates a new tenant template object", diff --git a/Commands/Provisioning/Tenant/ReadTenantTemplate.cs b/Commands/Provisioning/Tenant/ReadTenantTemplate.cs index 1c119ea5c..4d0bf49e4 100644 --- a/Commands/Provisioning/Tenant/ReadTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/ReadTenantTemplate.cs @@ -3,13 +3,13 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Utilities; using System; using System.IO; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsCommunications.Read, "PnPTenantTemplate")] [CmdletHelp("Loads/Reads a PnP tenant template from the file system and returns an in-memory instance of this template.", diff --git a/Commands/Provisioning/Tenant/SaveTenantTemplate.cs b/Commands/Provisioning/Tenant/SaveTenantTemplate.cs index 593a72426..8e14347c7 100644 --- a/Commands/Provisioning/Tenant/SaveTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/SaveTenantTemplate.cs @@ -3,15 +3,15 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.Providers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System; using System.IO; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsData.Save, "PnPTenantTemplate")] [CmdletHelp("Saves a PnP provisioning hierarchy to the file system", diff --git a/Commands/Provisioning/Tenant/TestTenantTemplate.cs b/Commands/Provisioning/Tenant/TestTenantTemplate.cs index e526c3ca3..53cf51eb6 100644 --- a/Commands/Provisioning/Tenant/TestTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/TestTenantTemplate.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Provisioning.Tenant +namespace PnP.PowerShell.Commands.Provisioning.Tenant { [Cmdlet(VerbsDiagnostic.Test, "PnPTenantTemplate", SupportsShouldProcess = true)] [CmdletHelp("Tests a tenant template for invalid references", diff --git a/Commands/Publishing/AddHtmlPublishingPageLayout.cs b/Commands/Publishing/AddHtmlPublishingPageLayout.cs index 90e029507..382ff2094 100644 --- a/Commands/Publishing/AddHtmlPublishingPageLayout.cs +++ b/Commands/Publishing/AddHtmlPublishingPageLayout.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Add, "PnPHtmlPublishingPageLayout")] [CmdletHelp("Adds a HTML based publishing page layout", diff --git a/Commands/Publishing/AddMasterPage.cs b/Commands/Publishing/AddMasterPage.cs index 0b8404e8e..0705d83bd 100644 --- a/Commands/Publishing/AddMasterPage.cs +++ b/Commands/Publishing/AddMasterPage.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Add, "PnPMasterPage")] [CmdletHelp("Adds a Masterpage", diff --git a/Commands/Publishing/AddPublishingImageRendition.cs b/Commands/Publishing/AddPublishingImageRendition.cs index faa8d5286..3fc3dcd42 100644 --- a/Commands/Publishing/AddPublishingImageRendition.cs +++ b/Commands/Publishing/AddPublishingImageRendition.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Add, "PnPPublishingImageRendition")] [CmdletHelp("Adds an Image Rendition if the Name of the Image Rendition does not already exist. This prevents creating two Image Renditions that share the same name.", Category = CmdletHelpCategory.Publishing)] diff --git a/Commands/Publishing/AddPublishingPage.cs b/Commands/Publishing/AddPublishingPage.cs index e4e433180..44567b520 100644 --- a/Commands/Publishing/AddPublishingPage.cs +++ b/Commands/Publishing/AddPublishingPage.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Add, "PnPPublishingPage")] [CmdletHelp("Adds a publishing page", diff --git a/Commands/Publishing/AddPublishingPageLayout.cs b/Commands/Publishing/AddPublishingPageLayout.cs index 0ca39f93b..56f40971a 100644 --- a/Commands/Publishing/AddPublishingPageLayout.cs +++ b/Commands/Publishing/AddPublishingPageLayout.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Add, "PnPPublishingPageLayout")] [CmdletHelp("Adds a publishing page layout", diff --git a/Commands/Publishing/AddWikiPage.cs b/Commands/Publishing/AddWikiPage.cs index 5589cef87..6a96b84fc 100644 --- a/Commands/Publishing/AddWikiPage.cs +++ b/Commands/Publishing/AddWikiPage.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Add, "PnPWikiPage")] [CmdletHelp("Adds a wiki page", diff --git a/Commands/Publishing/GetPublishingImageRendition.cs b/Commands/Publishing/GetPublishingImageRendition.cs index ab8b3f7d2..e92bae076 100644 --- a/Commands/Publishing/GetPublishingImageRendition.cs +++ b/Commands/Publishing/GetPublishingImageRendition.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Publishing; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Get, "PnPPublishingImageRendition")] [CmdletHelp("Returns all image renditions or if Identity is specified a specific one", diff --git a/Commands/Publishing/GetWikiPageContent.cs b/Commands/Publishing/GetWikiPageContent.cs index e828f4879..4fadf5d40 100644 --- a/Commands/Publishing/GetWikiPageContent.cs +++ b/Commands/Publishing/GetWikiPageContent.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Get, "PnPWikiPageContent")] [CmdletHelp("Gets the contents/source of a wiki page", diff --git a/Commands/Publishing/RemovePublishingImageRendition.cs b/Commands/Publishing/RemovePublishingImageRendition.cs index 740929941..25dd78216 100644 --- a/Commands/Publishing/RemovePublishingImageRendition.cs +++ b/Commands/Publishing/RemovePublishingImageRendition.cs @@ -1,12 +1,12 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Remove, "PnPPublishingImageRendition")] [CmdletHelp("Removes an existing image rendition", Category = CmdletHelpCategory.Publishing)] diff --git a/Commands/Publishing/RemoveWikiPage.cs b/Commands/Publishing/RemoveWikiPage.cs index c471e7f2b..7ab76be5c 100644 --- a/Commands/Publishing/RemoveWikiPage.cs +++ b/Commands/Publishing/RemoveWikiPage.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Remove, "PnPWikiPage", ConfirmImpact = ConfirmImpact.High)] [CmdletHelp("Removes a wiki page", diff --git a/Commands/Publishing/SetAvailablePageLayouts.cs b/Commands/Publishing/SetAvailablePageLayouts.cs index 4b23b6a93..9c46db7e2 100644 --- a/Commands/Publishing/SetAvailablePageLayouts.cs +++ b/Commands/Publishing/SetAvailablePageLayouts.cs @@ -1,4 +1,4 @@ -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; using System.Linq; @@ -7,7 +7,7 @@ using System.Threading.Tasks; using Microsoft.SharePoint.Client; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Set, "PnPAvailablePageLayouts")] [CmdletHelp("Sets the available page layouts for the current site", diff --git a/Commands/Publishing/SetDefaultPageLayout.cs b/Commands/Publishing/SetDefaultPageLayout.cs index 4ff515cda..1a0745c31 100644 --- a/Commands/Publishing/SetDefaultPageLayout.cs +++ b/Commands/Publishing/SetDefaultPageLayout.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Set, "PnPDefaultPageLayout")] [CmdletHelp("Sets a specific page layout to be the default page layout for a publishing site", diff --git a/Commands/Publishing/SetWikiPageContent.cs b/Commands/Publishing/SetWikiPageContent.cs index 715d9fdb9..40a24557e 100644 --- a/Commands/Publishing/SetWikiPageContent.cs +++ b/Commands/Publishing/SetWikiPageContent.cs @@ -2,10 +2,10 @@ using System.IO; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.Publishing +namespace PnP.PowerShell.Commands.Publishing { [Cmdlet(VerbsCommon.Set, "PnPWikiPageContent")] [CmdletHelp("Sets the contents of a wikipage", diff --git a/Commands/RecordsManagement/ClearListItemAsRecord.cs b/Commands/RecordsManagement/ClearListItemAsRecord.cs index b328fce77..525bdd901 100644 --- a/Commands/RecordsManagement/ClearListItemAsRecord.cs +++ b/Commands/RecordsManagement/ClearListItemAsRecord.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsCommon.Clear, "PnPListItemAsRecord")] [CmdletHelp("Undeclares a list item as a record", diff --git a/Commands/RecordsManagement/DisableInPlaceRecordsManagementForSite.cs b/Commands/RecordsManagement/DisableInPlaceRecordsManagementForSite.cs index d1995bb1d..8d360d56b 100644 --- a/Commands/RecordsManagement/DisableInPlaceRecordsManagementForSite.cs +++ b/Commands/RecordsManagement/DisableInPlaceRecordsManagementForSite.cs @@ -1,14 +1,14 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq.Expressions; using System; using System.Linq; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsLifecycle.Disable, "PnPInPlaceRecordsManagementForSite")] [CmdletHelp("Disables in place records management for a site.", diff --git a/Commands/RecordsManagement/EnableInPlaceRecordsManagementForSite.cs b/Commands/RecordsManagement/EnableInPlaceRecordsManagementForSite.cs index a25e24bfb..711cb755f 100644 --- a/Commands/RecordsManagement/EnableInPlaceRecordsManagementForSite.cs +++ b/Commands/RecordsManagement/EnableInPlaceRecordsManagementForSite.cs @@ -1,14 +1,14 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq.Expressions; using System; using System.Linq; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsLifecycle.Enable, "PnPInPlaceRecordsManagementForSite")] [CmdletHelp("Enables in place records management for a site.", diff --git a/Commands/RecordsManagement/GetInPlaceRecordsManagement.cs b/Commands/RecordsManagement/GetInPlaceRecordsManagement.cs index ae2f5fd6f..f2c8eabae 100644 --- a/Commands/RecordsManagement/GetInPlaceRecordsManagement.cs +++ b/Commands/RecordsManagement/GetInPlaceRecordsManagement.cs @@ -1,14 +1,14 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq.Expressions; using System; using System.Linq; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsCommon.Get, "PnPInPlaceRecordsManagement")] [CmdletHelp("Returns if the place records management feature is enabled.", diff --git a/Commands/RecordsManagement/GetListManualRecordDeclaration.cs b/Commands/RecordsManagement/GetListManualRecordDeclaration.cs index 44744784f..3a20607c6 100644 --- a/Commands/RecordsManagement/GetListManualRecordDeclaration.cs +++ b/Commands/RecordsManagement/GetListManualRecordDeclaration.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Collections.Generic; using System.Linq; @@ -9,7 +9,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsCommon.Get, "PnPListRecordDeclaration")] [CmdletHelp("Returns the manual record declaration settings for a list", diff --git a/Commands/RecordsManagement/SetInPlaceRecordsManagement.cs b/Commands/RecordsManagement/SetInPlaceRecordsManagement.cs index 8e983cccb..89dc81b2e 100644 --- a/Commands/RecordsManagement/SetInPlaceRecordsManagement.cs +++ b/Commands/RecordsManagement/SetInPlaceRecordsManagement.cs @@ -1,14 +1,14 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq.Expressions; using System; using System.Linq; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsCommon.Set, "PnPInPlaceRecordsManagement")] [CmdletHelp("Activates or deactivates in the place records management feature.", diff --git a/Commands/RecordsManagement/SetListItemAsRecord.cs b/Commands/RecordsManagement/SetListItemAsRecord.cs index aa0d8fe84..514681151 100644 --- a/Commands/RecordsManagement/SetListItemAsRecord.cs +++ b/Commands/RecordsManagement/SetListItemAsRecord.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsCommon.Set, "PnPListItemAsRecord")] [CmdletHelp("Declares a list item as a record, for more information, see https://docs.microsoft.com/sharepoint/governance/records-management-in-sharepoint-server", diff --git a/Commands/RecordsManagement/SetListRecordDeclaration.cs b/Commands/RecordsManagement/SetListRecordDeclaration.cs index bafebc3b9..55e44c6d0 100644 --- a/Commands/RecordsManagement/SetListRecordDeclaration.cs +++ b/Commands/RecordsManagement/SetListRecordDeclaration.cs @@ -1,7 +1,7 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Collections.Generic; using System.Linq; @@ -9,7 +9,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsCommon.Set, "PnPListRecordDeclaration")] [CmdletHelp("Sets the manual record declaration settings for a list", diff --git a/Commands/RecordsManagement/TestListItemIsRecord.cs b/Commands/RecordsManagement/TestListItemIsRecord.cs index 3a8012cb8..e99e510e6 100644 --- a/Commands/RecordsManagement/TestListItemIsRecord.cs +++ b/Commands/RecordsManagement/TestListItemIsRecord.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.RecordsManagement +namespace PnP.PowerShell.Commands.RecordsManagement { [Cmdlet(VerbsDiagnostic.Test, "PnPListItemIsRecord")] [CmdletHelp("Checks if a list item is a record", diff --git a/Commands/RecycleBin/ClearRecycleBinItem.cs b/Commands/RecycleBin/ClearRecycleBinItem.cs index 7c7bde4f2..2eb9e05a3 100644 --- a/Commands/RecycleBin/ClearRecycleBinItem.cs +++ b/Commands/RecycleBin/ClearRecycleBinItem.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsCommon.Clear, "PnPRecycleBinItem", DefaultParameterSetName = PARAMETERSET_ALL)] [CmdletHelp("Permanently deletes all or a specific recycle bin item", diff --git a/Commands/RecycleBin/ClearTenantRecycleBinItem.cs b/Commands/RecycleBin/ClearTenantRecycleBinItem.cs index 035a0df93..775560903 100644 --- a/Commands/RecycleBin/ClearTenantRecycleBinItem.cs +++ b/Commands/RecycleBin/ClearTenantRecycleBinItem.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsCommon.Clear, "PnPTenantRecycleBinItem")] [CmdletHelp("Permanently deletes a site collection from the tenant scoped recycle bin", diff --git a/Commands/RecycleBin/GetRecycleBinItem.cs b/Commands/RecycleBin/GetRecycleBinItem.cs index b02690b96..7742d7a0a 100644 --- a/Commands/RecycleBin/GetRecycleBinItem.cs +++ b/Commands/RecycleBin/GetRecycleBinItem.cs @@ -4,10 +4,10 @@ using System.Linq.Expressions; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsCommon.Get, "PnPRecycleBinItem", DefaultParameterSetName = ParameterSet_ALL)] [CmdletHelp("Returns the items in the recycle bin from the context", diff --git a/Commands/RecycleBin/GetTenantRecycleBinItem.cs b/Commands/RecycleBin/GetTenantRecycleBinItem.cs index 4c80c7c34..3255b41ee 100644 --- a/Commands/RecycleBin/GetTenantRecycleBinItem.cs +++ b/Commands/RecycleBin/GetTenantRecycleBinItem.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsCommon.Get, "PnPTenantRecycleBinItem", DefaultParameterSetName = "All")] [CmdletHelp("Returns all modern and classic site collections in the tenant scoped recycle bin", diff --git a/Commands/RecycleBin/MoveRecycleBinItem.cs b/Commands/RecycleBin/MoveRecycleBinItem.cs index 57e664c03..cdfa6b9a0 100644 --- a/Commands/RecycleBin/MoveRecycleBinItem.cs +++ b/Commands/RecycleBin/MoveRecycleBinItem.cs @@ -2,11 +2,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsCommon.Move, "PnPRecycleBinItem")] [CmdletHelp("Moves all items or a specific item in the first stage recycle bin of the current site collection to the second stage recycle bin", diff --git a/Commands/RecycleBin/RestoreRecycleBinItem.cs b/Commands/RecycleBin/RestoreRecycleBinItem.cs index 72c6e2dec..cce1ad49d 100644 --- a/Commands/RecycleBin/RestoreRecycleBinItem.cs +++ b/Commands/RecycleBin/RestoreRecycleBinItem.cs @@ -1,11 +1,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsData.Restore, "PnPRecycleBinItem", DefaultParameterSetName = PARAMETERSET_ALL)] [CmdletHelp("Restores the provided recycle bin item to its original location", diff --git a/Commands/RecycleBin/RestoreTenantRecycleBinItem.cs b/Commands/RecycleBin/RestoreTenantRecycleBinItem.cs index 0601060cc..2fc2f8068 100644 --- a/Commands/RecycleBin/RestoreTenantRecycleBinItem.cs +++ b/Commands/RecycleBin/RestoreTenantRecycleBinItem.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using System.Threading; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.RecycleBin +namespace PnP.PowerShell.Commands.RecycleBin { [Cmdlet(VerbsData.Restore, "PnPTenantRecycleBinItem")] [CmdletHelp("Restores a site collection from the tenant scoped recycle bin", diff --git a/Commands/Search/GetSearchConfiguration.cs b/Commands/Search/GetSearchConfiguration.cs index 06eab13e8..b14e98cd1 100644 --- a/Commands/Search/GetSearchConfiguration.cs +++ b/Commands/Search/GetSearchConfiguration.cs @@ -7,11 +7,11 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Administration; using Microsoft.SharePoint.Client.Search.Portability; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { public enum OutputFormat { diff --git a/Commands/Search/GetSearchCrawlLog.cs b/Commands/Search/GetSearchCrawlLog.cs index 4abb7056f..1cd7ec0bb 100644 --- a/Commands/Search/GetSearchCrawlLog.cs +++ b/Commands/Search/GetSearchCrawlLog.cs @@ -5,9 +5,9 @@ using System.Web; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Administration; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { public enum LogLevel { diff --git a/Commands/Search/GetSearchSettings.cs b/Commands/Search/GetSearchSettings.cs index d53eb16fc..fbbe53575 100644 --- a/Commands/Search/GetSearchSettings.cs +++ b/Commands/Search/GetSearchSettings.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { [Cmdlet(VerbsCommon.Get, "PnPSearchSettings")] [CmdletHelp("Retrieves search settings for a site", diff --git a/Commands/Search/GetSiteSearchQueryResults.cs b/Commands/Search/GetSiteSearchQueryResults.cs index 808badb7c..b964aa1c6 100644 --- a/Commands/Search/GetSiteSearchQueryResults.cs +++ b/Commands/Search/GetSiteSearchQueryResults.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Query; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { [Cmdlet(VerbsCommon.Get, "PnPSiteSearchQueryResults", DefaultParameterSetName = "Limit")] [CmdletHelp("Executes a search query to retrieve indexed site collections", diff --git a/Commands/Search/PnPResultTable.cs b/Commands/Search/PnPResultTable.cs index 1b9d38a80..8139096f2 100644 --- a/Commands/Search/PnPResultTable.cs +++ b/Commands/Search/PnPResultTable.cs @@ -3,7 +3,7 @@ using System.Linq; using Microsoft.SharePoint.Client.Search.Query; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { public class PnPResultTable { diff --git a/Commands/Search/PnPResultTableCollection.cs b/Commands/Search/PnPResultTableCollection.cs index 8204809c2..79d2f3d62 100644 --- a/Commands/Search/PnPResultTableCollection.cs +++ b/Commands/Search/PnPResultTableCollection.cs @@ -5,7 +5,7 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Query; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { public class PnPResultTableCollection : ClientValueObjectCollection diff --git a/Commands/Search/RemoveSearchConfiguration.cs b/Commands/Search/RemoveSearchConfiguration.cs index 2acdaca24..440485478 100644 --- a/Commands/Search/RemoveSearchConfiguration.cs +++ b/Commands/Search/RemoveSearchConfiguration.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Administration; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { [Cmdlet(VerbsCommon.Remove, "PnPSearchConfiguration")] [CmdletHelp("Remove the search configuration", diff --git a/Commands/Search/SetSearchConfiguration.cs b/Commands/Search/SetSearchConfiguration.cs index 09b8ba346..d53796591 100644 --- a/Commands/Search/SetSearchConfiguration.cs +++ b/Commands/Search/SetSearchConfiguration.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Administration; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { [Cmdlet(VerbsCommon.Set, "PnPSearchConfiguration")] [CmdletHelp("Sets the search configuration", diff --git a/Commands/Search/SetSearchSettings.cs b/Commands/Search/SetSearchSettings.cs index 59970e0a5..cfdbb5ca2 100644 --- a/Commands/Search/SetSearchSettings.cs +++ b/Commands/Search/SetSearchSettings.cs @@ -2,11 +2,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Enums; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Enums; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { [Cmdlet(VerbsCommon.Set, "PnPSearchSettings")] [CmdletHelp("Sets search settings for a site", diff --git a/Commands/Search/SubmitSearchQuery.cs b/Commands/Search/SubmitSearchQuery.cs index d34f43ba8..7a37512d0 100644 --- a/Commands/Search/SubmitSearchQuery.cs +++ b/Commands/Search/SubmitSearchQuery.cs @@ -3,11 +3,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Search.Query; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Collections.Generic; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Search +namespace PnP.PowerShell.Commands.Search { [Cmdlet(VerbsLifecycle.Submit, "PnPSearchQuery", DefaultParameterSetName = "Limit")] [Alias("Invoke-PnPSearchQuery")] diff --git a/Commands/Site/AddRoleDefinition.cs b/Commands/Site/AddRoleDefinition.cs index aa58e8616..fc61f4c0e 100644 --- a/Commands/Site/AddRoleDefinition.cs +++ b/Commands/Site/AddRoleDefinition.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Add, "PnPRoleDefinition")] [CmdletHelp("Adds a Role Defintion (Permission Level) to the site collection in the current context", diff --git a/Commands/Site/AddSiteCollectionAdmin.cs b/Commands/Site/AddSiteCollectionAdmin.cs index c773ebad1..3322227b5 100644 --- a/Commands/Site/AddSiteCollectionAdmin.cs +++ b/Commands/Site/AddSiteCollectionAdmin.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Add, "PnPSiteCollectionAdmin")] [CmdletHelp("Adds one or more users as site collection administrators to the site collection in the current context", diff --git a/Commands/Site/AddTeamsTeam.cs b/Commands/Site/AddTeamsTeam.cs index da2d38396..47a493e37 100644 --- a/Commands/Site/AddTeamsTeam.cs +++ b/Commands/Site/AddTeamsTeam.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Add, "PnPTeamsTeam")] [CmdletHelp("Adds a Teams team to an existing, group connected, site collection", diff --git a/Commands/Site/DisableSharingForNonOwnersOfSite.cs b/Commands/Site/DisableSharingForNonOwnersOfSite.cs index 20daf0c47..cf0a5b466 100644 --- a/Commands/Site/DisableSharingForNonOwnersOfSite.cs +++ b/Commands/Site/DisableSharingForNonOwnersOfSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsLifecycle.Disable, "PnPSharingForNonOwnersOfSite")] [CmdletHelp("Configures the site to only allow sharing of the site and items in the site by owners", diff --git a/Commands/Site/EnableCommSite.cs b/Commands/Site/EnableCommSite.cs index dfa643e4b..a294a34bd 100644 --- a/Commands/Site/EnableCommSite.cs +++ b/Commands/Site/EnableCommSite.cs @@ -1,10 +1,10 @@ #if !ONPREMISES using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsLifecycle.Enable, "PnPCommSite")] [CmdletHelp("Enables the modern communication site experience on a classic team site.", diff --git a/Commands/Site/GetAuditing.cs b/Commands/Site/GetAuditing.cs index 9372a56cc..3a8829ea5 100644 --- a/Commands/Site/GetAuditing.cs +++ b/Commands/Site/GetAuditing.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Get, "PnPAuditing")] [CmdletHelp("Get the Auditing setting of a site", diff --git a/Commands/Site/GetIsSiteAliasAvailable.cs b/Commands/Site/GetIsSiteAliasAvailable.cs index c6a8297b5..180f3341e 100644 --- a/Commands/Site/GetIsSiteAliasAvailable.cs +++ b/Commands/Site/GetIsSiteAliasAvailable.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPIsSiteAliasAvailable")] [CmdletHelp("Validates if a certain alias is still available to be used to create a new site collection for. If it is not, it will propose an alternative alias and URL which is still available.", diff --git a/Commands/Site/GetRoleDefinition.cs b/Commands/Site/GetRoleDefinition.cs index 880d0e26b..fbe784bb2 100644 --- a/Commands/Site/GetRoleDefinition.cs +++ b/Commands/Site/GetRoleDefinition.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Get, "PnPRoleDefinition")] [CmdletHelp("Retrieves a Role Definitions of a site", diff --git a/Commands/Site/GetSharingForNonOwnersOfSite.cs b/Commands/Site/GetSharingForNonOwnersOfSite.cs index 12d71b7bd..87a51215c 100644 --- a/Commands/Site/GetSharingForNonOwnersOfSite.cs +++ b/Commands/Site/GetSharingForNonOwnersOfSite.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Get, "PnPSharingForNonOwnersOfSite")] [CmdletHelp("Returns $false if sharing of the site and items in the site is restricted only to owners or $true if members and owners are allowed to share", diff --git a/Commands/Site/GetSite.cs b/Commands/Site/GetSite.cs index ef223f7ef..bb7cde22c 100644 --- a/Commands/Site/GetSite.cs +++ b/Commands/Site/GetSite.cs @@ -2,9 +2,9 @@ using System.Linq.Expressions; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Get, "PnPSite")] [CmdletHelp("Returns the current site collection from the context.", diff --git a/Commands/Site/GetSiteCollectionAdmin.cs b/Commands/Site/GetSiteCollectionAdmin.cs index 47eafec0a..52e4ec2ef 100644 --- a/Commands/Site/GetSiteCollectionAdmin.cs +++ b/Commands/Site/GetSiteCollectionAdmin.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Linq.Expressions; using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Get, "PnPSiteCollectionAdmin")] [CmdletHelp("Returns the current site collection administrators of the site collection in the current context", diff --git a/Commands/Site/InstallSolution.cs b/Commands/Site/InstallSolution.cs index 49a41bea1..93fcaa4e5 100644 --- a/Commands/Site/InstallSolution.cs +++ b/Commands/Site/InstallSolution.cs @@ -1,11 +1,11 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsLifecycle.Install, "PnPSolution")] [CmdletHelp("Installs a sandboxed solution to a site collection. WARNING! This method can delete your composed look gallery due to the method used to activate the solution. We recommend you to only to use this cmdlet if you are okay with that.", diff --git a/Commands/Site/RemoveRoleDefinition.cs b/Commands/Site/RemoveRoleDefinition.cs index 3779081cb..3657aa3dc 100644 --- a/Commands/Site/RemoveRoleDefinition.cs +++ b/Commands/Site/RemoveRoleDefinition.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Remove, "PnPRoleDefinition")] [CmdletHelp("Remove a Role Definition from a site", diff --git a/Commands/Site/RemoveSiteCollectionAdmin.cs b/Commands/Site/RemoveSiteCollectionAdmin.cs index 4f21feb9a..21736eeb8 100644 --- a/Commands/Site/RemoveSiteCollectionAdmin.cs +++ b/Commands/Site/RemoveSiteCollectionAdmin.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Remove, "PnPSiteCollectionAdmin")] [CmdletHelp("Removes one or more users as site collection administrators from the site collection in the current context", diff --git a/Commands/Site/SetAppSideLoading.cs b/Commands/Site/SetAppSideLoading.cs index fc5bd9972..2513853c5 100644 --- a/Commands/Site/SetAppSideLoading.cs +++ b/Commands/Site/SetAppSideLoading.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Set, "PnPAppSideLoading")] [CmdletHelp("Enables the App SideLoading Feature on a site", diff --git a/Commands/Site/SetAuditing.cs b/Commands/Site/SetAuditing.cs index 99ed2ff75..7a06fe11d 100644 --- a/Commands/Site/SetAuditing.cs +++ b/Commands/Site/SetAuditing.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Set, "PnPAuditing")] [CmdletHelp("Set Auditing setting for a site", diff --git a/Commands/Site/SetSite.cs b/Commands/Site/SetSite.cs index dc979aa6b..9387c3ba9 100644 --- a/Commands/Site/SetSite.cs +++ b/Commands/Site/SetSite.cs @@ -3,14 +3,14 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Utilities; using System; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsCommon.Set, "PnPSite")] [CmdletHelp("Sets Site Collection properties.", diff --git a/Commands/Site/TestOffice365GroupAliasIsUsed.cs b/Commands/Site/TestOffice365GroupAliasIsUsed.cs index 746ceab64..747ca80fd 100644 --- a/Commands/Site/TestOffice365GroupAliasIsUsed.cs +++ b/Commands/Site/TestOffice365GroupAliasIsUsed.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using OfficeDevPnP.Core.Sites; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsDiagnostic.Test, "PnPOffice365GroupAliasIsUsed")] [CmdletHelp("Tests if a given alias is already used used", diff --git a/Commands/Site/UninstallSolution.cs b/Commands/Site/UninstallSolution.cs index ad99da070..465cb466c 100644 --- a/Commands/Site/UninstallSolution.cs +++ b/Commands/Site/UninstallSolution.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Site +namespace PnP.PowerShell.Commands.Site { [Cmdlet(VerbsLifecycle.Uninstall, "PnPSolution")] [CmdletHelp("Uninstalls a sandboxed solution from a site collection", diff --git a/Commands/SiteDesigns/AddSiteDesign.cs b/Commands/SiteDesigns/AddSiteDesign.cs index 0a9616d16..0fd04b4e5 100644 --- a/Commands/SiteDesigns/AddSiteDesign.cs +++ b/Commands/SiteDesigns/AddSiteDesign.cs @@ -1,15 +1,15 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Add, "PnPSiteDesign", SupportsShouldProcess = true)] [CmdletHelp(@"Creates a new Site Design on the current tenant.", diff --git a/Commands/SiteDesigns/AddSiteDesignTask.cs b/Commands/SiteDesigns/AddSiteDesignTask.cs index 0d66a87b0..d377a9983 100644 --- a/Commands/SiteDesigns/AddSiteDesignTask.cs +++ b/Commands/SiteDesigns/AddSiteDesignTask.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.SiteDesigns +namespace PnP.PowerShell.Commands.SiteDesigns { [Cmdlet(VerbsCommon.Add, "PnPSiteDesignTask", SupportsShouldProcess = true)] [CmdletHelp(@"Similar to Invoke-PnPSiteDesign, this command is used to apply a published site design to a specified site collection target. It schedules the operation, allowing for the application of larger site scripts (Invoke-PnPSiteDesign is limited to 30 actions and subactions).", diff --git a/Commands/SiteDesigns/AddSiteScript.cs b/Commands/SiteDesigns/AddSiteScript.cs index 1766b9d21..b4937b490 100644 --- a/Commands/SiteDesigns/AddSiteScript.cs +++ b/Commands/SiteDesigns/AddSiteScript.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Add, "PnPSiteScript", SupportsShouldProcess = true)] [CmdletHelp(@"Creates a new Site Script on the current tenant.", diff --git a/Commands/SiteDesigns/GetSiteDesign.cs b/Commands/SiteDesigns/GetSiteDesign.cs index e7c744a87..084e90e5a 100644 --- a/Commands/SiteDesigns/GetSiteDesign.cs +++ b/Commands/SiteDesigns/GetSiteDesign.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPSiteDesign", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieve Site Designs that have been registered on the current tenant.", diff --git a/Commands/SiteDesigns/GetSiteDesignRights.cs b/Commands/SiteDesigns/GetSiteDesignRights.cs index 64e53bf47..fd01d575e 100644 --- a/Commands/SiteDesigns/GetSiteDesignRights.cs +++ b/Commands/SiteDesigns/GetSiteDesignRights.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPSiteDesignRights", SupportsShouldProcess = true)] [CmdletHelp(@"Returns the principals with design rights on a specific Site Design", diff --git a/Commands/SiteDesigns/GetSiteDesignRun.cs b/Commands/SiteDesigns/GetSiteDesignRun.cs index 4f1d2ca01..cb9ed916b 100644 --- a/Commands/SiteDesigns/GetSiteDesignRun.cs +++ b/Commands/SiteDesigns/GetSiteDesignRun.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.SiteDesigns +namespace PnP.PowerShell.Commands.SiteDesigns { [Cmdlet(VerbsCommon.Get, "PnPSiteDesignRun", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieves a list of site designs applied to a specified site collection.", diff --git a/Commands/SiteDesigns/GetSiteDesignRunStatus.cs b/Commands/SiteDesigns/GetSiteDesignRunStatus.cs index d0715751d..a95176dca 100644 --- a/Commands/SiteDesigns/GetSiteDesignRunStatus.cs +++ b/Commands/SiteDesigns/GetSiteDesignRunStatus.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.SiteDesigns +namespace PnP.PowerShell.Commands.SiteDesigns { [Cmdlet(VerbsCommon.Get, "PnPSiteDesignRunStatus", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieves and displays a list of all site script actions executed for a specified site design applied to a site. ", diff --git a/Commands/SiteDesigns/GetSiteDesignTask.cs b/Commands/SiteDesigns/GetSiteDesignTask.cs index 991be9ec4..666116452 100644 --- a/Commands/SiteDesigns/GetSiteDesignTask.cs +++ b/Commands/SiteDesigns/GetSiteDesignTask.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.SiteDesigns +namespace PnP.PowerShell.Commands.SiteDesigns { [Cmdlet(VerbsCommon.Get, "PnPSiteDesignTask", SupportsShouldProcess = false)] [CmdletHelp(@"This cmdlet retrieves a scheduled site design task.", diff --git a/Commands/SiteDesigns/GetSiteScript.cs b/Commands/SiteDesigns/GetSiteScript.cs index d01a0c3ac..bd1c4f972 100644 --- a/Commands/SiteDesigns/GetSiteScript.cs +++ b/Commands/SiteDesigns/GetSiteScript.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPSiteScript", SupportsShouldProcess = true)] [CmdletHelp(@"Retrieve Site Scripts that have been registered on the current tenant.", diff --git a/Commands/SiteDesigns/GetSiteScriptFromList.cs b/Commands/SiteDesigns/GetSiteScriptFromList.cs index 11d9cc4f1..0f377fca6 100644 --- a/Commands/SiteDesigns/GetSiteScriptFromList.cs +++ b/Commands/SiteDesigns/GetSiteScriptFromList.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPSiteScriptFromList", SupportsShouldProcess = true)] [CmdletHelp(@"Generates a Site Script from an existing list", diff --git a/Commands/SiteDesigns/GetSiteScriptFromWeb.cs b/Commands/SiteDesigns/GetSiteScriptFromWeb.cs index cdffa06e1..f10f912f4 100644 --- a/Commands/SiteDesigns/GetSiteScriptFromWeb.cs +++ b/Commands/SiteDesigns/GetSiteScriptFromWeb.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPSiteScriptFromWeb", SupportsShouldProcess = true)] [CmdletHelp(@"Generates a Site Script from an existing site", diff --git a/Commands/SiteDesigns/GrantSiteDesignRights.cs b/Commands/SiteDesigns/GrantSiteDesignRights.cs index 3d8a4f22f..b1b5bf316 100644 --- a/Commands/SiteDesigns/GrantSiteDesignRights.cs +++ b/Commands/SiteDesigns/GrantSiteDesignRights.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsSecurity.Grant, "PnPSiteDesignRights", SupportsShouldProcess = true)] [CmdletHelp(@"Grants the specified principals rights to use the site design.", diff --git a/Commands/SiteDesigns/InvokeSiteDesign.cs b/Commands/SiteDesigns/InvokeSiteDesign.cs index d71fa00d2..63140a4fd 100644 --- a/Commands/SiteDesigns/InvokeSiteDesign.cs +++ b/Commands/SiteDesigns/InvokeSiteDesign.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsLifecycle.Invoke, "PnPSiteDesign", SupportsShouldProcess = true)] [CmdletHelp(@"Apply a Site Design to an existing site. * Requires Tenant Administration Rights *", diff --git a/Commands/SiteDesigns/RemoveSiteDesign.cs b/Commands/SiteDesigns/RemoveSiteDesign.cs index 59d71cbe0..deb3da6f0 100644 --- a/Commands/SiteDesigns/RemoveSiteDesign.cs +++ b/Commands/SiteDesigns/RemoveSiteDesign.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPSiteDesign", SupportsShouldProcess = true)] [CmdletHelp(@"Removes a Site Design", diff --git a/Commands/SiteDesigns/RemoveSiteDesignTask.cs b/Commands/SiteDesigns/RemoveSiteDesignTask.cs index 2e11b0a1b..745fefab9 100644 --- a/Commands/SiteDesigns/RemoveSiteDesignTask.cs +++ b/Commands/SiteDesigns/RemoveSiteDesignTask.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPSiteDesignTask", SupportsShouldProcess = true)] [CmdletHelp(@"Removes a Site Design Task", diff --git a/Commands/SiteDesigns/RemoveSiteScript.cs b/Commands/SiteDesigns/RemoveSiteScript.cs index d98e4c6eb..cff3940ca 100644 --- a/Commands/SiteDesigns/RemoveSiteScript.cs +++ b/Commands/SiteDesigns/RemoveSiteScript.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPSiteScript", SupportsShouldProcess = true)] [CmdletHelp(@"Removes a Site Script", diff --git a/Commands/SiteDesigns/RevokeSiteDesignRights.cs b/Commands/SiteDesigns/RevokeSiteDesignRights.cs index ab2b6a191..c575b82bc 100644 --- a/Commands/SiteDesigns/RevokeSiteDesignRights.cs +++ b/Commands/SiteDesigns/RevokeSiteDesignRights.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsSecurity.Revoke, "PnPSiteDesignRights", SupportsShouldProcess = true)] [CmdletHelp(@"Revokes the specified principals rights to use the site design.", diff --git a/Commands/SiteDesigns/SetSiteDesign.cs b/Commands/SiteDesigns/SetSiteDesign.cs index 3344ab537..4bdfc90a2 100644 --- a/Commands/SiteDesigns/SetSiteDesign.cs +++ b/Commands/SiteDesigns/SetSiteDesign.cs @@ -1,15 +1,15 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPSiteDesign", SupportsShouldProcess = true)] [CmdletHelp(@"Updates a Site Design on the current tenant.", diff --git a/Commands/SiteDesigns/SetSiteScript.cs b/Commands/SiteDesigns/SetSiteScript.cs index f5e22f18d..024e5733a 100644 --- a/Commands/SiteDesigns/SetSiteScript.cs +++ b/Commands/SiteDesigns/SetSiteScript.cs @@ -1,12 +1,12 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPSiteScript", SupportsShouldProcess = true)] [CmdletHelp(@"Updates an existing Site Script on the current tenant.", diff --git a/Commands/Taxonomy/ExportTaxonomy.cs b/Commands/Taxonomy/ExportTaxonomy.cs index 4574ed775..ad181858e 100644 --- a/Commands/Taxonomy/ExportTaxonomy.cs +++ b/Commands/Taxonomy/ExportTaxonomy.cs @@ -3,13 +3,13 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Enums; using File = System.IO.File; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsData.Export, "PnPTaxonomy", SupportsShouldProcess = true)] [CmdletHelp("Exports a taxonomy to either the output or to a file.", diff --git a/Commands/Taxonomy/ExportTermGroupToXml.cs b/Commands/Taxonomy/ExportTermGroupToXml.cs index d00e80d1c..86016fe77 100644 --- a/Commands/Taxonomy/ExportTermGroupToXml.cs +++ b/Commands/Taxonomy/ExportTermGroupToXml.cs @@ -8,12 +8,12 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using File = System.IO.File; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsData.Export, "PnPTermGroupToXml", SupportsShouldProcess = true)] [CmdletHelp("Exports a taxonomy TermGroup to either the output or to an XML file.", diff --git a/Commands/Taxonomy/GetSiteCollectionTermStore.cs b/Commands/Taxonomy/GetSiteCollectionTermStore.cs index 9905d43aa..8d7f1cfd7 100644 --- a/Commands/Taxonomy/GetSiteCollectionTermStore.cs +++ b/Commands/Taxonomy/GetSiteCollectionTermStore.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Get, "PnPSiteCollectionTermStore", SupportsShouldProcess = true)] [CmdletHelp(@"Returns the site collection term store", diff --git a/Commands/Taxonomy/GetTaxonomyItem.cs b/Commands/Taxonomy/GetTaxonomyItem.cs index a5b2aedcc..d7965161f 100644 --- a/Commands/Taxonomy/GetTaxonomyItem.cs +++ b/Commands/Taxonomy/GetTaxonomyItem.cs @@ -2,9 +2,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Get, "PnPTaxonomyItem", SupportsShouldProcess = true)] [CmdletHelp(@"Returns a taxonomy item", diff --git a/Commands/Taxonomy/GetTaxonomySession.cs b/Commands/Taxonomy/GetTaxonomySession.cs index 758991de1..e62810200 100644 --- a/Commands/Taxonomy/GetTaxonomySession.cs +++ b/Commands/Taxonomy/GetTaxonomySession.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Get, "PnPTaxonomySession")] [CmdletHelp("Returns a taxonomy session", diff --git a/Commands/Taxonomy/GetTerm.cs b/Commands/Taxonomy/GetTerm.cs index 0ee3cd6fb..aa726fbab 100644 --- a/Commands/Taxonomy/GetTerm.cs +++ b/Commands/Taxonomy/GetTerm.cs @@ -1,13 +1,13 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq; using System.Linq.Expressions; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Get, "PnPTerm", SupportsShouldProcess = false)] [CmdletHelp(@"Returns a taxonomy term", diff --git a/Commands/Taxonomy/GetTermGroup.cs b/Commands/Taxonomy/GetTermGroup.cs index f49446d7e..b4cc42cfb 100644 --- a/Commands/Taxonomy/GetTermGroup.cs +++ b/Commands/Taxonomy/GetTermGroup.cs @@ -3,10 +3,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Get, "PnPTermGroup", SupportsShouldProcess = false)] [CmdletHelp(@"Returns a taxonomy term group", diff --git a/Commands/Taxonomy/GetTermSet.cs b/Commands/Taxonomy/GetTermSet.cs index 2352dce25..a7febd6de 100644 --- a/Commands/Taxonomy/GetTermSet.cs +++ b/Commands/Taxonomy/GetTermSet.cs @@ -3,10 +3,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Get, "PnPTermSet", SupportsShouldProcess = false)] [CmdletHelp(@"Returns a taxonomy term set", diff --git a/Commands/Taxonomy/ImportTaxonomy.cs b/Commands/Taxonomy/ImportTaxonomy.cs index f7c2672dd..c035dc659 100644 --- a/Commands/Taxonomy/ImportTaxonomy.cs +++ b/Commands/Taxonomy/ImportTaxonomy.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using File = System.IO.File; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsData.Import, "PnPTaxonomy", SupportsShouldProcess = true)] [CmdletHelp("Imports a taxonomy from either a string array or a file", diff --git a/Commands/Taxonomy/ImportTermGroupFromXml.cs b/Commands/Taxonomy/ImportTermGroupFromXml.cs index fb8fc9760..fa97c701a 100644 --- a/Commands/Taxonomy/ImportTermGroupFromXml.cs +++ b/Commands/Taxonomy/ImportTermGroupFromXml.cs @@ -6,10 +6,10 @@ using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers; using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsData.Import, "PnPTermGroupFromXml", SupportsShouldProcess = true)] [CmdletHelp("Imports a taxonomy TermGroup from either the input or from an XML file.", diff --git a/Commands/Taxonomy/ImportTermSet.cs b/Commands/Taxonomy/ImportTermSet.cs index 13f757665..a6c576069 100644 --- a/Commands/Taxonomy/ImportTermSet.cs +++ b/Commands/Taxonomy/ImportTermSet.cs @@ -2,9 +2,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsData.Import, "PnPTermSet", SupportsShouldProcess = false)] [CmdletHelp("Imports a taxonomy term set from a file in the standard format.", diff --git a/Commands/Taxonomy/NewTerm.cs b/Commands/Taxonomy/NewTerm.cs index 6d6d87523..3b098edcb 100644 --- a/Commands/Taxonomy/NewTerm.cs +++ b/Commands/Taxonomy/NewTerm.cs @@ -4,10 +4,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.New, "PnPTerm", SupportsShouldProcess = false)] [CmdletHelp(@"Creates a taxonomy term", diff --git a/Commands/Taxonomy/NewTermGroup.cs b/Commands/Taxonomy/NewTermGroup.cs index 466c2b84f..d1fbb6b36 100644 --- a/Commands/Taxonomy/NewTermGroup.cs +++ b/Commands/Taxonomy/NewTermGroup.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.New, "PnPTermGroup", SupportsShouldProcess = false)] [CmdletHelp(@"Creates a taxonomy term group", diff --git a/Commands/Taxonomy/NewTermLabel.cs b/Commands/Taxonomy/NewTermLabel.cs index 86e1243bc..03d7537f3 100644 --- a/Commands/Taxonomy/NewTermLabel.cs +++ b/Commands/Taxonomy/NewTermLabel.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.New, "PnPTermLabel", SupportsShouldProcess = false)] [CmdletHelp(@"Creates a localized label for a taxonomy term", diff --git a/Commands/Taxonomy/NewTermSet.cs b/Commands/Taxonomy/NewTermSet.cs index 92468e3f4..8639f9847 100644 --- a/Commands/Taxonomy/NewTermSet.cs +++ b/Commands/Taxonomy/NewTermSet.cs @@ -6,10 +6,10 @@ using System.Runtime.InteropServices; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.New, "PnPTermSet", SupportsShouldProcess = false)] [CmdletHelp(@"Creates a taxonomy term set", diff --git a/Commands/Taxonomy/RemoveTaxonomyItem.cs b/Commands/Taxonomy/RemoveTaxonomyItem.cs index d417c5d59..044f56195 100644 --- a/Commands/Taxonomy/RemoveTaxonomyItem.cs +++ b/Commands/Taxonomy/RemoveTaxonomyItem.cs @@ -3,10 +3,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Remove, "PnPTaxonomyItem", SupportsShouldProcess = true)] [CmdletHelp(@"Removes a taxonomy item", diff --git a/Commands/Taxonomy/RemoveTermGroup.cs b/Commands/Taxonomy/RemoveTermGroup.cs index beaf07c07..257c0539c 100644 --- a/Commands/Taxonomy/RemoveTermGroup.cs +++ b/Commands/Taxonomy/RemoveTermGroup.cs @@ -3,10 +3,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Remove, "PnPTermGroup", SupportsShouldProcess = false)] [CmdletHelp(@"Removes a taxonomy term group and all its containing termsets", diff --git a/Commands/Taxonomy/SetTaxonomyFieldValue.cs b/Commands/Taxonomy/SetTaxonomyFieldValue.cs index 409417876..98acad89a 100644 --- a/Commands/Taxonomy/SetTaxonomyFieldValue.cs +++ b/Commands/Taxonomy/SetTaxonomyFieldValue.cs @@ -1,12 +1,12 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Taxonomy +namespace PnP.PowerShell.Commands.Taxonomy { [Cmdlet(VerbsCommon.Set, "PnPTaxonomyFieldValue", DefaultParameterSetName = "ITEM")] [CmdletHelp("Sets a taxonomy term value in a listitem field", diff --git a/Commands/Teams/AddTeamsChannel.cs b/Commands/Teams/AddTeamsChannel.cs index 0d75fb238..73adb30c7 100644 --- a/Commands/Teams/AddTeamsChannel.cs +++ b/Commands/Teams/AddTeamsChannel.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Add, "PnPTeamsChannel")] [CmdletHelp("Adds a channel to an existing Microsoft Teams instance.", diff --git a/Commands/Teams/AddTeamsTab.cs b/Commands/Teams/AddTeamsTab.cs index 6e4ec1f10..a9baa329a 100644 --- a/Commands/Teams/AddTeamsTab.cs +++ b/Commands/Teams/AddTeamsTab.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.BusinessData.MetadataModel; using Microsoft.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Add, "PnPTeamsTab")] [CmdletHelp("Adds a tab to an existing Channel", diff --git a/Commands/Teams/AddTeamsUser.cs b/Commands/Teams/AddTeamsUser.cs index ecc9db2ff..6bd7e7966 100644 --- a/Commands/Teams/AddTeamsUser.cs +++ b/Commands/Teams/AddTeamsUser.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Add, "PnPTeamsUser")] [CmdletHelp("Adds a channel to an existing Microsoft Teams instance.", diff --git a/Commands/Teams/GetTeamsApp.cs b/Commands/Teams/GetTeamsApp.cs index d6c8d5a75..407ac27b2 100644 --- a/Commands/Teams/GetTeamsApp.cs +++ b/Commands/Teams/GetTeamsApp.cs @@ -1,14 +1,14 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Core.Attributes; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Core.Attributes; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPTeamsApp")] [CmdletHelp("Gets one Microsoft Teams App or a list of all apps.", diff --git a/Commands/Teams/GetTeamsChannel.cs b/Commands/Teams/GetTeamsChannel.cs index ffdd62b3e..91d45ea13 100644 --- a/Commands/Teams/GetTeamsChannel.cs +++ b/Commands/Teams/GetTeamsChannel.cs @@ -1,15 +1,15 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Teams +namespace PnP.PowerShell.Commands.Teams { [Cmdlet(VerbsCommon.Get, "PnPTeamsChannel")] [CmdletHelp("Gets the channels for a specified Team.", diff --git a/Commands/Teams/GetTeamsChannelMessage.cs b/Commands/Teams/GetTeamsChannelMessage.cs index 6b50bb837..d88d5adfe 100644 --- a/Commands/Teams/GetTeamsChannelMessage.cs +++ b/Commands/Teams/GetTeamsChannelMessage.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPTeamsChannelMessage")] [CmdletHelp("Sends a message to a Microsoft Teams Channel.", diff --git a/Commands/Teams/GetTeamsTab.cs b/Commands/Teams/GetTeamsTab.cs index de1bcd4ef..5882812ea 100644 --- a/Commands/Teams/GetTeamsTab.cs +++ b/Commands/Teams/GetTeamsTab.cs @@ -1,11 +1,11 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPTeamsTab")] [CmdletHelp("Gets one or all tabs in a channel.", diff --git a/Commands/Teams/GetTeamsTeam.cs b/Commands/Teams/GetTeamsTeam.cs index 87ed69290..50fec140e 100644 --- a/Commands/Teams/GetTeamsTeam.cs +++ b/Commands/Teams/GetTeamsTeam.cs @@ -1,11 +1,11 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPTeamsTeam")] [CmdletHelp("Gets one Microsoft Teams Team or a list of Teams.", diff --git a/Commands/Teams/GetTeamsUser.cs b/Commands/Teams/GetTeamsUser.cs index c83767bb4..fdc2b9640 100644 --- a/Commands/Teams/GetTeamsUser.cs +++ b/Commands/Teams/GetTeamsUser.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Get, "PnPTeamsUser")] [CmdletHelp("Returns owners, members or guests from a team.", diff --git a/Commands/Teams/NewTeamsApp.cs b/Commands/Teams/NewTeamsApp.cs index 47ecf5768..c059267b2 100644 --- a/Commands/Teams/NewTeamsApp.cs +++ b/Commands/Teams/NewTeamsApp.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.New, "PnPTeamsApp")] [CmdletHelp("Adds an app to the Teams App Catalog.", diff --git a/Commands/Teams/NewTeamsTeam.cs b/Commands/Teams/NewTeamsTeam.cs index a77be77b0..547e9e1fe 100644 --- a/Commands/Teams/NewTeamsTeam.cs +++ b/Commands/Teams/NewTeamsTeam.cs @@ -1,13 +1,13 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model.Teams; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.New, "PnPTeamsTeam")] [CmdletHelp("Creates a new Team in Microsoft Teams. The cmdlet will create a Microsoft 365 group and then add a team to the group.", diff --git a/Commands/Teams/RemoveTeamsApp.cs b/Commands/Teams/RemoveTeamsApp.cs index 32da564be..8be2d9d87 100644 --- a/Commands/Teams/RemoveTeamsApp.cs +++ b/Commands/Teams/RemoveTeamsApp.cs @@ -1,13 +1,13 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPTeamsApp")] [CmdletHelp("Removes an app from the Teams AppCatalog.", diff --git a/Commands/Teams/RemoveTeamsChannel.cs b/Commands/Teams/RemoveTeamsChannel.cs index 3cbee5ca7..76408dc35 100644 --- a/Commands/Teams/RemoveTeamsChannel.cs +++ b/Commands/Teams/RemoveTeamsChannel.cs @@ -1,14 +1,14 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Teams +namespace PnP.PowerShell.Commands.Teams { [Cmdlet(VerbsCommon.Remove, "PnPTeamsChannel")] [CmdletHelp("Removes a channel from a Microsoft Teams instance.", diff --git a/Commands/Teams/RemoveTeamsTab.cs b/Commands/Teams/RemoveTeamsTab.cs index 6356b6cfd..86b08914a 100644 --- a/Commands/Teams/RemoveTeamsTab.cs +++ b/Commands/Teams/RemoveTeamsTab.cs @@ -1,13 +1,13 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPTeamsTab")] [CmdletHelp("Removes a Microsoft Teams tab in a channel.", diff --git a/Commands/Teams/RemoveTeamsTeam.cs b/Commands/Teams/RemoveTeamsTeam.cs index eb618d6e8..7bc8ed1a9 100644 --- a/Commands/Teams/RemoveTeamsTeam.cs +++ b/Commands/Teams/RemoveTeamsTeam.cs @@ -1,14 +1,14 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPTeamsTeam")] [CmdletHelp("Removes a Microsoft Teams Team instance", diff --git a/Commands/Teams/RemoveTeamsUser.cs b/Commands/Teams/RemoveTeamsUser.cs index 187136e38..11a699244 100644 --- a/Commands/Teams/RemoveTeamsUser.cs +++ b/Commands/Teams/RemoveTeamsUser.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Remove, "PnPTeamsUser")] [CmdletHelp("Removes users from a team.", diff --git a/Commands/Teams/SetTeamsChannel .cs b/Commands/Teams/SetTeamsChannel .cs index 8b2d9011a..137899993 100644 --- a/Commands/Teams/SetTeamsChannel .cs +++ b/Commands/Teams/SetTeamsChannel .cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPTeamsChannel")] [CmdletHelp("Updates an existing Teams Channel", diff --git a/Commands/Teams/SetTeamsTab.cs b/Commands/Teams/SetTeamsTab.cs index f95219dc9..8fc4b9d5c 100644 --- a/Commands/Teams/SetTeamsTab.cs +++ b/Commands/Teams/SetTeamsTab.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.IO; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPTeamsTab")] [CmdletHelp("Updates Teams Tab settings", diff --git a/Commands/Teams/SetTeamsTeam.cs b/Commands/Teams/SetTeamsTeam.cs index af67bad12..fa22b9da3 100644 --- a/Commands/Teams/SetTeamsTeam.cs +++ b/Commands/Teams/SetTeamsTeam.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using OfficeDevPnP.Core.Framework.Provisioning.Model.Teams; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPTeamsTeam")] [CmdletHelp("Updates an existing Team.", diff --git a/Commands/Teams/SetTeamsTeamArchivedState.cs b/Commands/Teams/SetTeamsTeamArchivedState.cs index 8c23cb396..c1ce3c884 100644 --- a/Commands/Teams/SetTeamsTeamArchivedState.cs +++ b/Commands/Teams/SetTeamsTeamArchivedState.cs @@ -1,16 +1,16 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Utilities.REST; -using SharePointPnP.PowerShell.Core.Attributes; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.Core.Attributes; using System; using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPTeamsTeamArchivedState")] [CmdletHelp("Sets the archived state of a team.", diff --git a/Commands/Teams/SetTeamsTeamPicture.cs b/Commands/Teams/SetTeamsTeamPicture.cs index b31bc6b5a..c1b03a0f4 100644 --- a/Commands/Teams/SetTeamsTeamPicture.cs +++ b/Commands/Teams/SetTeamsTeamPicture.cs @@ -1,14 +1,14 @@ #if !ONPREMISES using Microsoft.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.IO; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Set, "PnPTeamsTeamPicture")] [CmdletHelp("Sets the picture of an existing team.", diff --git a/Commands/Teams/SubmitTeamsChannelMessage.cs b/Commands/Teams/SubmitTeamsChannelMessage.cs index 1480b3ca5..0fc40f0a7 100644 --- a/Commands/Teams/SubmitTeamsChannelMessage.cs +++ b/Commands/Teams/SubmitTeamsChannelMessage.cs @@ -1,12 +1,12 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsLifecycle.Submit, "PnPTeamsChannelMessage")] [CmdletHelp("Sends a message to a Microsoft Teams Channel.", diff --git a/Commands/Teams/UpdateTeamsApp.cs b/Commands/Teams/UpdateTeamsApp.cs index 8ca1b7512..e7ab8146a 100644 --- a/Commands/Teams/UpdateTeamsApp.cs +++ b/Commands/Teams/UpdateTeamsApp.cs @@ -1,13 +1,13 @@ #if !ONPREMISES -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Utilities; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsData.Update, "PnPTeamsApp")] [CmdletHelp("Updates an existing app in the Teams App Catalog.", diff --git a/Commands/UserProfiles/GetUPABulkImportStatus.cs b/Commands/UserProfiles/GetUPABulkImportStatus.cs index c06cb399d..df8186c21 100644 --- a/Commands/UserProfiles/GetUPABulkImportStatus.cs +++ b/Commands/UserProfiles/GetUPABulkImportStatus.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Get, "PnPUPABulkImportStatus")] [CmdletHelp(@"Get user profile bulk import status.", diff --git a/Commands/UserProfiles/GetUserOneDriveQuota.cs b/Commands/UserProfiles/GetUserOneDriveQuota.cs index e0e721158..164eec1cf 100644 --- a/Commands/UserProfiles/GetUserOneDriveQuota.cs +++ b/Commands/UserProfiles/GetUserOneDriveQuota.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Get, "PnPUserOneDriveQuota")] [CmdletHelp(@"Retrieves the current quota set on the OneDrive for Business site for a specific user", diff --git a/Commands/UserProfiles/GetUserProfileProperty.cs b/Commands/UserProfiles/GetUserProfileProperty.cs index efb669b89..675b07c12 100644 --- a/Commands/UserProfiles/GetUserProfileProperty.cs +++ b/Commands/UserProfiles/GetUserProfileProperty.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Get, "PnPUserProfileProperty")] #if !ONPREMISES diff --git a/Commands/UserProfiles/NewPersonalSite.cs b/Commands/UserProfiles/NewPersonalSite.cs index 8c45b0359..309def31a 100644 --- a/Commands/UserProfiles/NewPersonalSite.cs +++ b/Commands/UserProfiles/NewPersonalSite.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.New, "PnPPersonalSite")] diff --git a/Commands/UserProfiles/NewUPABulkImportJob.cs b/Commands/UserProfiles/NewUPABulkImportJob.cs index 0d5646b81..5f2541d98 100644 --- a/Commands/UserProfiles/NewUPABulkImportJob.cs +++ b/Commands/UserProfiles/NewUPABulkImportJob.cs @@ -6,11 +6,11 @@ using System.Management.Automation; using Microsoft.Online.SharePoint.TenantManagement; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.New, "PnPUPABulkImportJob")] [CmdletHelp(@"Submit up a new user profile bulk import job.", "See https://docs.microsoft.com/sharepoint/dev/solution-guidance/bulk-user-profile-update-api-for-sharepoint-online for information on the API and how the bulk import process works.", diff --git a/Commands/UserProfiles/ResetUserOneDriveQuotaToDefault.cs b/Commands/UserProfiles/ResetUserOneDriveQuotaToDefault.cs index f754ff5dc..39c0e93b9 100644 --- a/Commands/UserProfiles/ResetUserOneDriveQuotaToDefault.cs +++ b/Commands/UserProfiles/ResetUserOneDriveQuotaToDefault.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Reset, "PnPUserOneDriveQuotaToDefault")] [CmdletHelp(@"Resets the current quota set on the OneDrive for Business site for a specific user to the tenant default", diff --git a/Commands/UserProfiles/SetUserOneDriveQuota.cs b/Commands/UserProfiles/SetUserOneDriveQuota.cs index ce9de723b..b053fd0cf 100644 --- a/Commands/UserProfiles/SetUserOneDriveQuota.cs +++ b/Commands/UserProfiles/SetUserOneDriveQuota.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Set, "PnPUserOneDriveQuota")] [CmdletHelp(@"Sets the quota on the OneDrive for Business site for a specific user", diff --git a/Commands/UserProfiles/SetUserProfileProperty.cs b/Commands/UserProfiles/SetUserProfileProperty.cs index 121e84e8c..ed08a1473 100644 --- a/Commands/UserProfiles/SetUserProfileProperty.cs +++ b/Commands/UserProfiles/SetUserProfileProperty.cs @@ -2,11 +2,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.UserProfiles; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.UserProfiles +namespace PnP.PowerShell.Commands.UserProfiles { [Cmdlet(VerbsCommon.Set, "PnPUserProfileProperty")] [CmdletHelp(@"Office365 only: Uses the tenant API to retrieve site information. You must connect to the tenant admin website (https://:-admin.sharepoint.com) with Connect-PnPOnline in order to use this command.", diff --git a/Commands/Utilities/AzureAuthHelper.cs b/Commands/Utilities/AzureAuthHelper.cs index 0dfb793a3..6aa0f65dc 100644 --- a/Commands/Utilities/AzureAuthHelper.cs +++ b/Commands/Utilities/AzureAuthHelper.cs @@ -13,7 +13,7 @@ using System.Web; using System.Windows.Forms; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class AzureAuthHelper { diff --git a/Commands/Utilities/BrowserHelper.cs b/Commands/Utilities/BrowserHelper.cs index 0d3142b25..a53a8efcb 100644 --- a/Commands/Utilities/BrowserHelper.cs +++ b/Commands/Utilities/BrowserHelper.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using System.Windows.Forms; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal static class BrowserHelper { diff --git a/Commands/Utilities/CertificateCrypto.cs b/Commands/Utilities/CertificateCrypto.cs index 1dab23111..5ab03e389 100644 --- a/Commands/Utilities/CertificateCrypto.cs +++ b/Commands/Utilities/CertificateCrypto.cs @@ -2,7 +2,7 @@ using System.IO; using System.Security.Cryptography; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal class CertificateCrypto { diff --git a/Commands/Utilities/CertificateHelper.cs b/Commands/Utilities/CertificateHelper.cs index 2cec5f6a8..0d652fe82 100644 --- a/Commands/Utilities/CertificateHelper.cs +++ b/Commands/Utilities/CertificateHelper.cs @@ -8,7 +8,7 @@ using SecureString = System.Security.SecureString; using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal class CertificateHelper { diff --git a/Commands/Utilities/Clipboard.cs b/Commands/Utilities/Clipboard.cs index 8c67af7fa..99ee48537 100644 --- a/Commands/Utilities/Clipboard.cs +++ b/Commands/Utilities/Clipboard.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class Clipboard { diff --git a/Commands/Utilities/CredentialManager.cs b/Commands/Utilities/CredentialManager.cs index e5034c01f..0642409d2 100644 --- a/Commands/Utilities/CredentialManager.cs +++ b/Commands/Utilities/CredentialManager.cs @@ -6,7 +6,7 @@ using Microsoft.Win32.SafeHandles; using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal static class CredentialManager { diff --git a/Commands/Utilities/DynamicLinq.cs b/Commands/Utilities/DynamicLinq.cs index 15c443062..ff7b3482d 100644 --- a/Commands/Utilities/DynamicLinq.cs +++ b/Commands/Utilities/DynamicLinq.cs @@ -9,7 +9,7 @@ using System.Text; using System.Threading; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class DynamicQueryable { diff --git a/Commands/Utilities/FileUtilities.cs b/Commands/Utilities/FileUtilities.cs index ad9514401..32f09231d 100644 --- a/Commands/Utilities/FileUtilities.cs +++ b/Commands/Utilities/FileUtilities.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class FileUtilities { diff --git a/Commands/Utilities/IsolatedStorage.cs b/Commands/Utilities/IsolatedStorage.cs index a6380b193..97b62d969 100644 --- a/Commands/Utilities/IsolatedStorage.cs +++ b/Commands/Utilities/IsolatedStorage.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal static class IsolatedStorage { diff --git a/Commands/Utilities/JwtUtility.cs b/Commands/Utilities/JwtUtility.cs index abff23589..b8639ee1a 100644 --- a/Commands/Utilities/JwtUtility.cs +++ b/Commands/Utilities/JwtUtility.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal static class JwtUtility { diff --git a/Commands/Utilities/ListItemHelper.cs b/Commands/Utilities/ListItemHelper.cs index 230417967..826c09b04 100644 --- a/Commands/Utilities/ListItemHelper.cs +++ b/Commands/Utilities/ListItemHelper.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.Taxonomy; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; using System; using System.Collections; using System.Collections.Generic; @@ -8,7 +8,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class ListItemHelper { diff --git a/Commands/Utilities/OperatingSystem.cs b/Commands/Utilities/OperatingSystem.cs index 5a063323c..20d4c60d9 100644 --- a/Commands/Utilities/OperatingSystem.cs +++ b/Commands/Utilities/OperatingSystem.cs @@ -3,7 +3,7 @@ using System.Runtime.InteropServices; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class OperatingSystem { diff --git a/Commands/Utilities/ProvisioningHelper.cs b/Commands/Utilities/ProvisioningHelper.cs index 74ef8385d..abe322b9c 100644 --- a/Commands/Utilities/ProvisioningHelper.cs +++ b/Commands/Utilities/ProvisioningHelper.cs @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class ProvisioningHelper { diff --git a/Commands/Utilities/REST/GraphCollection.cs b/Commands/Utilities/REST/GraphCollection.cs index 819cd72de..ab73d4099 100644 --- a/Commands/Utilities/REST/GraphCollection.cs +++ b/Commands/Utilities/REST/GraphCollection.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities.REST +namespace PnP.PowerShell.Commands.Utilities.REST { public class GraphCollection diff --git a/Commands/Utilities/REST/GraphHelper.cs b/Commands/Utilities/REST/GraphHelper.cs index 9b1a81e23..f6794b200 100644 --- a/Commands/Utilities/REST/GraphHelper.cs +++ b/Commands/Utilities/REST/GraphHelper.cs @@ -2,7 +2,7 @@ using Microsoft.Identity.Client; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -using SharePointPnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Model.Teams; using System; using System.Collections.Generic; using System.Linq; @@ -12,7 +12,7 @@ using System.Threading; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Utilities.REST +namespace PnP.PowerShell.Commands.Utilities.REST { internal static class GraphHelper { diff --git a/Commands/Utilities/REST/MetadataType.cs b/Commands/Utilities/REST/MetadataType.cs index 58dbc550c..34ca858e0 100644 --- a/Commands/Utilities/REST/MetadataType.cs +++ b/Commands/Utilities/REST/MetadataType.cs @@ -1,6 +1,6 @@ using Newtonsoft.Json; -namespace SharePointPnP.PowerShell.Commands.Utilities.REST +namespace PnP.PowerShell.Commands.Utilities.REST { public class MetadataType { diff --git a/Commands/Utilities/REST/RestHelper.cs b/Commands/Utilities/REST/RestHelper.cs index 12f920407..7db092a9d 100644 --- a/Commands/Utilities/REST/RestHelper.cs +++ b/Commands/Utilities/REST/RestHelper.cs @@ -5,7 +5,7 @@ using Microsoft.SharePoint.Client; using Newtonsoft.Json; -namespace SharePointPnP.PowerShell.Commands.Utilities.REST +namespace PnP.PowerShell.Commands.Utilities.REST { internal static class RestHelper { diff --git a/Commands/Utilities/REST/RestRequest.cs b/Commands/Utilities/REST/RestRequest.cs index de9ae0547..b5fa05a1c 100644 --- a/Commands/Utilities/REST/RestRequest.cs +++ b/Commands/Utilities/REST/RestRequest.cs @@ -5,7 +5,7 @@ using Microsoft.SharePoint.Client; using Newtonsoft.Json; -namespace SharePointPnP.PowerShell.Commands.Utilities.REST +namespace PnP.PowerShell.Commands.Utilities.REST { public class RestRequest { diff --git a/Commands/Utilities/SendMail.cs b/Commands/Utilities/SendMail.cs index 99f610657..3651cd14b 100644 --- a/Commands/Utilities/SendMail.cs +++ b/Commands/Utilities/SendMail.cs @@ -1,8 +1,8 @@ using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { [Cmdlet(VerbsCommunications.Send, "PnPMail")] [CmdletHelp("Sends an email using the Office 365 SMTP Service or SharePoint, depending on the parameters specified. See detailed help for more information.", diff --git a/Commands/Utilities/Shell.cs b/Commands/Utilities/Shell.cs index 48359c809..23d90dc01 100644 --- a/Commands/Utilities/Shell.cs +++ b/Commands/Utilities/Shell.cs @@ -4,7 +4,7 @@ using System.Diagnostics; using System.Text; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class Shell { diff --git a/Commands/Utilities/StringExtensions.cs b/Commands/Utilities/StringExtensions.cs index 49817c70e..87ff37c03 100644 --- a/Commands/Utilities/StringExtensions.cs +++ b/Commands/Utilities/StringExtensions.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class StringExtensions { diff --git a/Commands/Utilities/TeamsUtility.cs b/Commands/Utilities/TeamsUtility.cs index 60426a934..b8e2b7ff6 100644 --- a/Commands/Utilities/TeamsUtility.cs +++ b/Commands/Utilities/TeamsUtility.cs @@ -1,8 +1,8 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; -using SharePointPnP.PowerShell.Commands.Model.Teams; -using SharePointPnP.PowerShell.Commands.Site; -using SharePointPnP.PowerShell.Commands.Utilities.REST; +using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Site; +using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Collections.Generic; using System.Linq; @@ -12,7 +12,7 @@ using System.Web; #endif -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { internal static class TeamsUtility { diff --git a/Commands/Utilities/UrlUtilities.cs b/Commands/Utilities/UrlUtilities.cs index 61692748f..a9a9c0004 100644 --- a/Commands/Utilities/UrlUtilities.cs +++ b/Commands/Utilities/UrlUtilities.cs @@ -1,7 +1,7 @@ using System; using System.Linq; -namespace SharePointPnP.PowerShell.Commands.Utilities +namespace PnP.PowerShell.Commands.Utilities { public static class UrlUtilities { diff --git a/Commands/Web/AddIndexedProperty.cs b/Commands/Web/AddIndexedProperty.cs index ad8064020..d9039c0cb 100644 --- a/Commands/Web/AddIndexedProperty.cs +++ b/Commands/Web/AddIndexedProperty.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Add, "PnPIndexedProperty")] [CmdletHelp("Marks the value of the propertybag key specified to be indexed by search.", diff --git a/Commands/Web/GetAvailableLanguage.cs b/Commands/Web/GetAvailableLanguage.cs index f82cee03c..b8c9bb655 100644 --- a/Commands/Web/GetAvailableLanguage.cs +++ b/Commands/Web/GetAvailableLanguage.cs @@ -1,13 +1,13 @@ #if !SP2013 && !SP2016 using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq.Expressions; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPAvailableLanguage")] [CmdletHelp("Returns the available languages on the current web", diff --git a/Commands/Web/GetIndexedPropertyKeys.cs b/Commands/Web/GetIndexedPropertyKeys.cs index 29e9e4e49..735bc63a3 100644 --- a/Commands/Web/GetIndexedPropertyKeys.cs +++ b/Commands/Web/GetIndexedPropertyKeys.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPIndexedPropertyKeys")] [CmdletHelp("Returns the keys of the property bag values that have been marked for indexing by search", diff --git a/Commands/Web/GetPropertyBag.cs b/Commands/Web/GetPropertyBag.cs index b6312dff9..7596832db 100644 --- a/Commands/Web/GetPropertyBag.cs +++ b/Commands/Web/GetPropertyBag.cs @@ -1,10 +1,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPPropertyBag")] [CmdletHelp("Returns the property bag values.", diff --git a/Commands/Web/GetRequestAccessEmails.cs b/Commands/Web/GetRequestAccessEmails.cs index ff75ff90e..625f4b206 100644 --- a/Commands/Web/GetRequestAccessEmails.cs +++ b/Commands/Web/GetRequestAccessEmails.cs @@ -2,9 +2,9 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPRequestAccessEmails")] [CmdletHelp("Returns the request access e-mail addresses", diff --git a/Commands/Web/GetSubwebs.cs b/Commands/Web/GetSubwebs.cs index b02d000fe..a8d8f2f26 100644 --- a/Commands/Web/GetSubwebs.cs +++ b/Commands/Web/GetSubwebs.cs @@ -1,13 +1,13 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Collections.Generic; using System.Linq.Expressions; using System; -using SharePointPnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.Commands.Extensions; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPSubWebs")] [CmdletHelp("Returns the subwebs of the current web", diff --git a/Commands/Web/GetWeb.cs b/Commands/Web/GetWeb.cs index 344ce7d1d..d0e2b4c91 100644 --- a/Commands/Web/GetWeb.cs +++ b/Commands/Web/GetWeb.cs @@ -1,12 +1,12 @@ using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Linq.Expressions; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Extensions; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Get, "PnPWeb")] [CmdletHelp("Returns the current web object", diff --git a/Commands/Web/InvokeWebAction.cs b/Commands/Web/InvokeWebAction.cs index 924ae6cca..5c20cb672 100644 --- a/Commands/Web/InvokeWebAction.cs +++ b/Commands/Web/InvokeWebAction.cs @@ -1,12 +1,12 @@ using Microsoft.SharePoint.Client; using web = Microsoft.SharePoint.Client.Web; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.InvokeAction; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.InvokeAction; using System; using System.Collections.Generic; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsLifecycle.Invoke, "PnPWebAction", SupportsShouldProcess = true)] [CmdletHelp("Executes operations on web, lists and list items.", diff --git a/Commands/Web/NewWeb.cs b/Commands/Web/NewWeb.cs index 2787a990e..3150ea2ee 100644 --- a/Commands/Web/NewWeb.cs +++ b/Commands/Web/NewWeb.cs @@ -1,8 +1,8 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.New, "PnPWeb")] [CmdletHelp("Creates a new subweb under the current web", diff --git a/Commands/Web/RemovePropertyBagValue.cs b/Commands/Web/RemovePropertyBagValue.cs index 10a14a491..37a402241 100644 --- a/Commands/Web/RemovePropertyBagValue.cs +++ b/Commands/Web/RemovePropertyBagValue.cs @@ -1,9 +1,9 @@ using Microsoft.SharePoint.Client; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPPropertyBagValue", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] [CmdletHelp("Removes a value from the property bag", diff --git a/Commands/Web/RemoveWeb.cs b/Commands/Web/RemoveWeb.cs index b7a107838..b77131d40 100644 --- a/Commands/Web/RemoveWeb.cs +++ b/Commands/Web/RemoveWeb.cs @@ -1,12 +1,12 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using web = Microsoft.SharePoint.Client.Web; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; -using SharePointPnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.Commands.Extensions; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPWeb")] [CmdletHelp("Removes a subweb in the current web", diff --git a/Commands/Web/RemovedIndexedProperty.cs b/Commands/Web/RemovedIndexedProperty.cs index e7a8c0de9..256866022 100644 --- a/Commands/Web/RemovedIndexedProperty.cs +++ b/Commands/Web/RemovedIndexedProperty.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Remove, "PnPIndexedProperty")] [CmdletHelp("Removes a key from propertybag to be indexed by search. The key and it's value remain in the propertybag, however it will not be indexed anymore.", diff --git a/Commands/Web/RequestReIndexWeb.cs b/Commands/Web/RequestReIndexWeb.cs index 17d4904cb..bc886491a 100644 --- a/Commands/Web/RequestReIndexWeb.cs +++ b/Commands/Web/RequestReIndexWeb.cs @@ -1,8 +1,8 @@ using Microsoft.SharePoint.Client; using System.Management.Automation; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsLifecycle.Request, "PnPReIndexWeb")] [CmdletHelp("Marks the web for full indexing during the next incremental crawl", diff --git a/Commands/Web/SetIndexedProperties.cs b/Commands/Web/SetIndexedProperties.cs index 6359d8cbe..65e14836c 100644 --- a/Commands/Web/SetIndexedProperties.cs +++ b/Commands/Web/SetIndexedProperties.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPIndexedProperties")] [CmdletHelp("Marks values of the propertybag to be indexed by search. Notice that this will overwrite the existing flags, i.e. only the properties you define with the cmdlet will be indexed.", diff --git a/Commands/Web/SetPropertyBagValue.cs b/Commands/Web/SetPropertyBagValue.cs index 086c382bf..acec4288f 100644 --- a/Commands/Web/SetPropertyBagValue.cs +++ b/Commands/Web/SetPropertyBagValue.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPPropertyBagValue")] [CmdletHelp("Sets a property bag value", diff --git a/Commands/Web/SetRequestAccessEmails.cs b/Commands/Web/SetRequestAccessEmails.cs index 2aaa106bb..0e3b482d7 100644 --- a/Commands/Web/SetRequestAccessEmails.cs +++ b/Commands/Web/SetRequestAccessEmails.cs @@ -2,10 +2,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPRequestAccessEmails")] [CmdletHelp("Sets Request Access Email on a web", diff --git a/Commands/Web/SetWeb.cs b/Commands/Web/SetWeb.cs index aa9dc7b06..abf5e7027 100644 --- a/Commands/Web/SetWeb.cs +++ b/Commands/Web/SetWeb.cs @@ -1,8 +1,8 @@ using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPWeb")] [CmdletHelp("Sets properties on a web", diff --git a/Commands/Web/SetWebPermission.cs b/Commands/Web/SetWebPermission.cs index cef2907ee..8f8eb0301 100644 --- a/Commands/Web/SetWebPermission.cs +++ b/Commands/Web/SetWebPermission.cs @@ -2,11 +2,11 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using SharePointPnP.PowerShell.Commands.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.Commands.Extensions; -namespace SharePointPnP.PowerShell.Commands +namespace PnP.PowerShell.Commands { [Cmdlet(VerbsCommon.Set, "PnPWebPermission", DefaultParameterSetName = "User")] [CmdletHelp("Set permissions", diff --git a/Commands/WebParts/AddClientSideWebPart.cs b/Commands/WebParts/AddClientSideWebPart.cs index 4178a04c6..bb2e2e8eb 100644 --- a/Commands/WebParts/AddClientSideWebPart.cs +++ b/Commands/WebParts/AddClientSideWebPart.cs @@ -1,11 +1,11 @@ #if !SP2013 && !SP2016 using OfficeDevPnP.Core.Pages; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Add, "PnPClientSideWebPart")] [CmdletHelp("Adds a Client-Side Web Part to a client-side page", diff --git a/Commands/WebParts/AddWebPartToWebPartPage.cs b/Commands/WebParts/AddWebPartToWebPartPage.cs index 9aea260fb..497873497 100644 --- a/Commands/WebParts/AddWebPartToWebPartPage.cs +++ b/Commands/WebParts/AddWebPartToWebPartPage.cs @@ -3,10 +3,10 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Add, "PnPWebPartToWebPartPage")] [CmdletHelp("Adds a web part to a web part page in a specified zone", diff --git a/Commands/WebParts/AddWebPartToWikiPage.cs b/Commands/WebParts/AddWebPartToWikiPage.cs index f948a5e9e..ad18395ee 100644 --- a/Commands/WebParts/AddWebPartToWikiPage.cs +++ b/Commands/WebParts/AddWebPartToWikiPage.cs @@ -3,10 +3,10 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using File = System.IO.File; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Add, "PnPWebPartToWikiPage")] [CmdletHelp("Adds a web part to a wiki page in a specified table row and column", diff --git a/Commands/WebParts/GetWebPart.cs b/Commands/WebParts/GetWebPart.cs index 362de46f3..f671d7493 100644 --- a/Commands/WebParts/GetWebPart.cs +++ b/Commands/WebParts/GetWebPart.cs @@ -5,10 +5,10 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.WebParts; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Get, "PnPWebPart")] [CmdletHelp("Returns a web part definition object", diff --git a/Commands/WebParts/GetWebPartProperty.cs b/Commands/WebParts/GetWebPartProperty.cs index 19e480ba8..3bac9b704 100644 --- a/Commands/WebParts/GetWebPartProperty.cs +++ b/Commands/WebParts/GetWebPartProperty.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Get, "PnPWebPartProperty")] [CmdletHelp("Returns a web part property", diff --git a/Commands/WebParts/GetWebPartXml.cs b/Commands/WebParts/GetWebPartXml.cs index cdbff73b3..ca63aebb1 100644 --- a/Commands/WebParts/GetWebPartXml.cs +++ b/Commands/WebParts/GetWebPartXml.cs @@ -6,11 +6,11 @@ using System.Text; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Get, "PnPWebPartXml")] [CmdletHelp("Returns the web part XML of a web part registered on a site", diff --git a/Commands/WebParts/RemoveWebPart.cs b/Commands/WebParts/RemoveWebPart.cs index a378c730a..d93d908c5 100644 --- a/Commands/WebParts/RemoveWebPart.cs +++ b/Commands/WebParts/RemoveWebPart.cs @@ -3,10 +3,10 @@ using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.WebParts; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Remove, "PnPWebPart")] [CmdletHelp("Removes a web part from a page", diff --git a/Commands/WebParts/SetWebPartProperty.cs b/Commands/WebParts/SetWebPartProperty.cs index 8b506ffee..45a1bd838 100644 --- a/Commands/WebParts/SetWebPartProperty.cs +++ b/Commands/WebParts/SetWebPartProperty.cs @@ -2,10 +2,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.WebParts +namespace PnP.PowerShell.Commands.WebParts { [Cmdlet(VerbsCommon.Set, "PnPWebPartProperty")] [CmdletHelp("Sets a web part property", diff --git a/Commands/Webhooks/AddWebhookSubscription.cs b/Commands/Webhooks/AddWebhookSubscription.cs index 882890d3a..9ae7cb3f6 100644 --- a/Commands/Webhooks/AddWebhookSubscription.cs +++ b/Commands/Webhooks/AddWebhookSubscription.cs @@ -2,12 +2,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Webhooks +namespace PnP.PowerShell.Commands.Webhooks { [Cmdlet(VerbsCommon.Add, "PnPWebhookSubscription")] [CmdletHelp("Adds a new Webhook subscription", diff --git a/Commands/Webhooks/GetWebhookSubscriptions.cs b/Commands/Webhooks/GetWebhookSubscriptions.cs index b291e0981..147361614 100644 --- a/Commands/Webhooks/GetWebhookSubscriptions.cs +++ b/Commands/Webhooks/GetWebhookSubscriptions.cs @@ -2,12 +2,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Webhooks +namespace PnP.PowerShell.Commands.Webhooks { [Cmdlet(VerbsCommon.Get, "PnPWebhookSubscriptions")] [CmdletHelp("Gets all the Webhook subscriptions of the resource", diff --git a/Commands/Webhooks/RemoveWebhookSubscription.cs b/Commands/Webhooks/RemoveWebhookSubscription.cs index be2e1c16d..90ed0a00a 100644 --- a/Commands/Webhooks/RemoveWebhookSubscription.cs +++ b/Commands/Webhooks/RemoveWebhookSubscription.cs @@ -2,12 +2,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Webhooks +namespace PnP.PowerShell.Commands.Webhooks { [Cmdlet(VerbsCommon.Remove, "PnPWebhookSubscription")] [CmdletHelp("Removes a Webhook subscription from the resource", diff --git a/Commands/Webhooks/SetWebhookSubscription.cs b/Commands/Webhooks/SetWebhookSubscription.cs index 285af81da..44dd017cf 100644 --- a/Commands/Webhooks/SetWebhookSubscription.cs +++ b/Commands/Webhooks/SetWebhookSubscription.cs @@ -2,12 +2,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Entities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Webhooks +namespace PnP.PowerShell.Commands.Webhooks { [Cmdlet(VerbsCommon.Set, "PnPWebhookSubscription")] [CmdletHelp("Updates a Webhook subscription", diff --git a/Commands/Workflows/AddWorkflowDefinition.cs b/Commands/Workflows/AddWorkflowDefinition.cs index 1b2891155..e553198f4 100644 --- a/Commands/Workflows/AddWorkflowDefinition.cs +++ b/Commands/Workflows/AddWorkflowDefinition.cs @@ -2,9 +2,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.WorkflowServices; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Add, "PnPWorkflowDefinition")] [CmdletHelp("Adds a workflow definition", diff --git a/Commands/Workflows/AddWorkflowSubscription.cs b/Commands/Workflows/AddWorkflowSubscription.cs index ade7fd394..80a123d19 100644 --- a/Commands/Workflows/AddWorkflowSubscription.cs +++ b/Commands/Workflows/AddWorkflowSubscription.cs @@ -1,10 +1,10 @@ using System.Collections.Generic; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Add, "PnPWorkflowSubscription")] [CmdletHelp("Adds a workflow subscription to a list", diff --git a/Commands/Workflows/GetWorkflowDefinition.cs b/Commands/Workflows/GetWorkflowDefinition.cs index 806f53efc..bf8340387 100644 --- a/Commands/Workflows/GetWorkflowDefinition.cs +++ b/Commands/Workflows/GetWorkflowDefinition.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.WorkflowServices; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Get, "PnPWorkflowDefinition")] [CmdletHelp("Returns a workflow definition", diff --git a/Commands/Workflows/GetWorkflowInstances.cs b/Commands/Workflows/GetWorkflowInstances.cs index 082c99eeb..ef8fb0a31 100644 --- a/Commands/Workflows/GetWorkflowInstances.cs +++ b/Commands/Workflows/GetWorkflowInstances.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Get, "PnPWorkflowInstance", DefaultParameterSetName = ParameterSet_BYLISTITEM)] [CmdletHelp("Gets SharePoint 2010/2013 workflow instances", diff --git a/Commands/Workflows/GetWorkflowSubscription.cs b/Commands/Workflows/GetWorkflowSubscription.cs index 95abe1211..4892f7ef1 100644 --- a/Commands/Workflows/GetWorkflowSubscription.cs +++ b/Commands/Workflows/GetWorkflowSubscription.cs @@ -1,10 +1,10 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; using Microsoft.SharePoint.Client.WorkflowServices; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Get, "PnPWorkflowSubscription")] [CmdletHelp("Return a workflow subscription", diff --git a/Commands/Workflows/RemoveWorkflowDefinition.cs b/Commands/Workflows/RemoveWorkflowDefinition.cs index 342d45072..9355b2843 100644 --- a/Commands/Workflows/RemoveWorkflowDefinition.cs +++ b/Commands/Workflows/RemoveWorkflowDefinition.cs @@ -1,10 +1,10 @@ using System; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Remove, "PnPWorkflowDefinition")] [CmdletHelp("Removes a workflow definition", diff --git a/Commands/Workflows/RemoveWorkflowSubscription.cs b/Commands/Workflows/RemoveWorkflowSubscription.cs index 570c37884..161ae99b6 100644 --- a/Commands/Workflows/RemoveWorkflowSubscription.cs +++ b/Commands/Workflows/RemoveWorkflowSubscription.cs @@ -1,9 +1,9 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsCommon.Remove, "PnPWorkflowSubscription")] [CmdletHelp("Removes a SharePoint 2010/2013 workflow subscription", diff --git a/Commands/Workflows/ResumeWorkflowInstance.cs b/Commands/Workflows/ResumeWorkflowInstance.cs index 9b037e22f..0c0234149 100644 --- a/Commands/Workflows/ResumeWorkflowInstance.cs +++ b/Commands/Workflows/ResumeWorkflowInstance.cs @@ -2,10 +2,10 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsLifecycle.Resume, "PnPWorkflowInstance")] [CmdletHelp("Resume a workflow", diff --git a/Commands/Workflows/StartWorkflowInstance.cs b/Commands/Workflows/StartWorkflowInstance.cs index b4cad94f1..5970e9916 100644 --- a/Commands/Workflows/StartWorkflowInstance.cs +++ b/Commands/Workflows/StartWorkflowInstance.cs @@ -1,11 +1,11 @@ using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using Microsoft.SharePoint.Client.WorkflowServices; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsLifecycle.Start, "PnPWorkflowInstance")] [CmdletHelp("Starts a SharePoint 2010/2013 workflow instance on a list item", diff --git a/Commands/Workflows/StopWorkflowInstance.cs b/Commands/Workflows/StopWorkflowInstance.cs index 2091870b7..11a561857 100644 --- a/Commands/Workflows/StopWorkflowInstance.cs +++ b/Commands/Workflows/StopWorkflowInstance.cs @@ -2,12 +2,12 @@ using System.Linq; using System.Management.Automation; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using Microsoft.SharePoint.Client.Workflow; using Microsoft.SharePoint.Client.WorkflowServices; -namespace SharePointPnP.PowerShell.Commands.Workflows +namespace PnP.PowerShell.Commands.Workflows { [Cmdlet(VerbsLifecycle.Stop, "PnPWorkflowInstance")] [CmdletHelp("Stops a workflow instance", diff --git a/HelpAttributes/CmdletAdditionalParameterAttribute.cs b/HelpAttributes/CmdletAdditionalParameterAttribute.cs index f281c1164..b0d7b1d24 100644 --- a/HelpAttributes/CmdletAdditionalParameterAttribute.cs +++ b/HelpAttributes/CmdletAdditionalParameterAttribute.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Specify this cmdlet on the cmdlet class in order to forcibly add parameters to the documentation. diff --git a/HelpAttributes/CmdletApiPermissionBase.cs b/HelpAttributes/CmdletApiPermissionBase.cs index e6d98410c..61eb8436c 100644 --- a/HelpAttributes/CmdletApiPermissionBase.cs +++ b/HelpAttributes/CmdletApiPermissionBase.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Base attribute on a cmdlet class in order to provide the Api permission needed to execute the cmdlet diff --git a/HelpAttributes/CmdletExampleAttribute.cs b/HelpAttributes/CmdletExampleAttribute.cs index 285a71ef9..ef8aea181 100644 --- a/HelpAttributes/CmdletExampleAttribute.cs +++ b/HelpAttributes/CmdletExampleAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Add this attribute to a cmdlet class in order to provide examples in the documentation diff --git a/HelpAttributes/CmdletHelpAttribute.cs b/HelpAttributes/CmdletHelpAttribute.cs index bb84fd2b8..d2cd5f06f 100644 --- a/HelpAttributes/CmdletHelpAttribute.cs +++ b/HelpAttributes/CmdletHelpAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Specify the attribute on a cmdlet class in order specify out in the help files and documentation diff --git a/HelpAttributes/CmdletHelpCategory.cs b/HelpAttributes/CmdletHelpCategory.cs index ea6b72a1c..f5acd01fd 100644 --- a/HelpAttributes/CmdletHelpCategory.cs +++ b/HelpAttributes/CmdletHelpCategory.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// The available categories for cmdlet help categorization diff --git a/HelpAttributes/CmdletMicrosoftGraphApiPermission.cs b/HelpAttributes/CmdletMicrosoftGraphApiPermission.cs index 304c7911c..d274db556 100644 --- a/HelpAttributes/CmdletMicrosoftGraphApiPermission.cs +++ b/HelpAttributes/CmdletMicrosoftGraphApiPermission.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Defines the supported API permissions for the Microsoft Graph Api configurable in Azure Active Directory diff --git a/HelpAttributes/CmdletOfficeManagementApiPermission.cs b/HelpAttributes/CmdletOfficeManagementApiPermission.cs index 61f62b072..e7c74ebfe 100644 --- a/HelpAttributes/CmdletOfficeManagementApiPermission.cs +++ b/HelpAttributes/CmdletOfficeManagementApiPermission.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Defines the supported API permissions for the Office Management Api configurable in Azure Active Directory diff --git a/HelpAttributes/CmdletPipeLineAttribute.cs b/HelpAttributes/CmdletPipeLineAttribute.cs index b8781a299..286aaab3c 100644 --- a/HelpAttributes/CmdletPipeLineAttribute.cs +++ b/HelpAttributes/CmdletPipeLineAttribute.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] diff --git a/HelpAttributes/CmdletRelatedLinkAttribute.cs b/HelpAttributes/CmdletRelatedLinkAttribute.cs index b32f5062d..00cfe1ab2 100644 --- a/HelpAttributes/CmdletRelatedLinkAttribute.cs +++ b/HelpAttributes/CmdletRelatedLinkAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Specify this attribute on a cmdlet class in order to provider additional 'read more' links on the cmdlet help. diff --git a/HelpAttributes/CmdletSupportedPlatform.cs b/HelpAttributes/CmdletSupportedPlatform.cs index 1d0c208cd..e866591c6 100644 --- a/HelpAttributes/CmdletSupportedPlatform.cs +++ b/HelpAttributes/CmdletSupportedPlatform.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// The list of supported platforms by these cmdlets. diff --git a/HelpAttributes/CmdletTokenTypeAttribute.cs b/HelpAttributes/CmdletTokenTypeAttribute.cs index d74b5d3e9..78e695709 100644 --- a/HelpAttributes/CmdletTokenTypeAttribute.cs +++ b/HelpAttributes/CmdletTokenTypeAttribute.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace SharePointPnP.PowerShell.Core.Attributes +namespace PnP.PowerShell.Core.Attributes { public enum TokenType : short { diff --git a/HelpAttributes/SharePointPnP.PowerShell.CmdletHelpAttributes.csproj b/HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj similarity index 100% rename from HelpAttributes/SharePointPnP.PowerShell.CmdletHelpAttributes.csproj rename to HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj diff --git a/HelpAttributes/PnPParameterAttribute.cs b/HelpAttributes/PnPParameterAttribute.cs index 599dcdcf5..4c227409c 100644 --- a/HelpAttributes/PnPParameterAttribute.cs +++ b/HelpAttributes/PnPParameterAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace SharePointPnP.PowerShell.CmdletHelpAttributes +namespace PnP.PowerShell.CmdletHelpAttributes { /// /// Specify this attribute on a cmdlet parameter to define its ordering in the documentation diff --git a/ModuleFilesGenerator/AdditionalParameterComparer.cs b/ModuleFilesGenerator/AdditionalParameterComparer.cs index 28ce8d521..731961671 100644 --- a/ModuleFilesGenerator/AdditionalParameterComparer.cs +++ b/ModuleFilesGenerator/AdditionalParameterComparer.cs @@ -1,8 +1,8 @@ using System.Collections.Generic; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.ModuleFilesGenerator.Model; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.ModuleFilesGenerator.Model; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator +namespace PnP.PowerShell.ModuleFilesGenerator { internal class AdditionalParameterComparer : IEqualityComparer { diff --git a/ModuleFilesGenerator/CmdletsAnalyzer.cs b/ModuleFilesGenerator/CmdletsAnalyzer.cs index b2f4ad6bf..de49b6487 100644 --- a/ModuleFilesGenerator/CmdletsAnalyzer.cs +++ b/ModuleFilesGenerator/CmdletsAnalyzer.cs @@ -4,12 +4,12 @@ using System.Management.Automation; using System.Reflection; using System.Runtime.Serialization; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.ModuleFilesGenerator.Model; -using CmdletInfo = SharePointPnP.PowerShell.ModuleFilesGenerator.Model.CmdletInfo; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.ModuleFilesGenerator.Model; +using CmdletInfo = PnP.PowerShell.ModuleFilesGenerator.Model.CmdletInfo; using System.ComponentModel; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator +namespace PnP.PowerShell.ModuleFilesGenerator { internal class CmdletsAnalyzer { diff --git a/ModuleFilesGenerator/GenerateModuleFiles.cs b/ModuleFilesGenerator/GenerateModuleFiles.cs index 554a56aee..f0e76f5be 100644 --- a/ModuleFilesGenerator/GenerateModuleFiles.cs +++ b/ModuleFilesGenerator/GenerateModuleFiles.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator +namespace PnP.PowerShell.ModuleFilesGenerator { public class GenerateModuleFiles { diff --git a/ModuleFilesGenerator/HelpFileGenerator.cs b/ModuleFilesGenerator/HelpFileGenerator.cs index 2542d6501..636cb27f2 100644 --- a/ModuleFilesGenerator/HelpFileGenerator.cs +++ b/ModuleFilesGenerator/HelpFileGenerator.cs @@ -4,9 +4,9 @@ using System.Reflection; using System.Runtime.Serialization; using System.Xml.Linq; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator +namespace PnP.PowerShell.ModuleFilesGenerator { internal class HelpFileGenerator { diff --git a/ModuleFilesGenerator/Model/CmdletInfo.cs b/ModuleFilesGenerator/Model/CmdletInfo.cs index df08b35e1..737cd5420 100644 --- a/ModuleFilesGenerator/Model/CmdletInfo.cs +++ b/ModuleFilesGenerator/Model/CmdletInfo.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator.Model +namespace PnP.PowerShell.ModuleFilesGenerator.Model { public class CmdletInfo { diff --git a/ModuleFilesGenerator/Model/CmdletParameterInfo.cs b/ModuleFilesGenerator/Model/CmdletParameterInfo.cs index 9d590c82f..25f98b3bc 100644 --- a/ModuleFilesGenerator/Model/CmdletParameterInfo.cs +++ b/ModuleFilesGenerator/Model/CmdletParameterInfo.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator.Model +namespace PnP.PowerShell.ModuleFilesGenerator.Model { public class CmdletParameterInfo { diff --git a/ModuleFilesGenerator/Model/CmdletSyntax.cs b/ModuleFilesGenerator/Model/CmdletSyntax.cs index 438a9abde..b79ce8ff9 100644 --- a/ModuleFilesGenerator/Model/CmdletSyntax.cs +++ b/ModuleFilesGenerator/Model/CmdletSyntax.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator.Model +namespace PnP.PowerShell.ModuleFilesGenerator.Model { public class CmdletSyntax { diff --git a/ModuleFilesGenerator/ModuleManifestGenerator.cs b/ModuleFilesGenerator/ModuleManifestGenerator.cs index f06865ddf..74c5d2188 100644 --- a/ModuleFilesGenerator/ModuleManifestGenerator.cs +++ b/ModuleFilesGenerator/ModuleManifestGenerator.cs @@ -6,7 +6,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator +namespace PnP.PowerShell.ModuleFilesGenerator { internal class ModuleManifestGenerator { @@ -69,7 +69,7 @@ internal void Generate() // Create Module Manifest #if !NETCOREAPP3_0 - var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\SharePointPnPPowerShell{spVersion}.psd1"; + var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\PnPPowerShell{spVersion}.psd1"; #else var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\PnPPowerShellCore.psd1"; #endif @@ -86,19 +86,19 @@ private void WriteModuleManifest(string path, string spVersion, string cmdletsTo { #if !NETCOREAPP3_0 var manifest = $@"@{{ - RootModule = 'SharePointPnP.PowerShell.{spVersion}.Commands.dll' + RootModule = 'PnP.PowerShell.{spVersion}.Commands.dll' ModuleVersion = '{_assemblyVersion}' - Description = 'SharePoint Patterns and Practices PowerShell Cmdlets for SharePoint {spVersion}' + Description = 'Microsoft 365 Patterns and Practices PowerShell Cmdlets for SharePoint {spVersion}' GUID = '8f1147be-a8e4-4bd2-a705-841d5334edc0' - Author = 'SharePoint Patterns and Practices' - CompanyName = 'SharePoint Patterns and Practices' + Author = 'Microsoft 365 Patterns and Practices' + CompanyName = 'Microsoft 365 Patterns and Practices' DotNetFrameworkVersion = '4.6.1' ProcessorArchitecture = 'None' FunctionsToExport = '*' CmdletsToExport = {cmdletsToExport} VariablesToExport = '*' AliasesToExport = '*' - FormatsToProcess = 'SharePointPnP.PowerShell.{spVersion}.Commands.Format.ps1xml' + FormatsToProcess = 'PnP.PowerShell.{spVersion}.Commands.Format.ps1xml' PrivateData = @{{ PSData = @{{ ProjectUri = 'https://aka.ms/sppnp' @@ -110,11 +110,11 @@ private void WriteModuleManifest(string path, string spVersion, string cmdletsTo var manifest = $@"@{{ RootModule = 'PnP.PowerShell.Core.dll' ModuleVersion = '{_assemblyVersion}' - Description = 'SharePoint Patterns and Practices PowerShell Cmdlets for SharePoint Online' + Description = 'Microsoft 365 Patterns and Practices PowerShell Cmdlets for SharePoint Online' GUID = '0b0430ce-d799-4f3b-a565-f0dca1f31e17' - Author = 'SharePoint Patterns and Practices' - CompanyName = 'SharePoint Patterns and Practices' - PowerShellVersion = '7.0' + Author = 'Microsoft 365 Patterns and Practices' + CompanyName = 'Microsoft 365 Patterns and Practices' + PowerShellVersion = '6.0' ProcessorArchitecture = 'None' FunctionsToExport = '*' CmdletsToExport = {cmdletsToExport} diff --git a/ModuleFilesGenerator/ParameterComparer.cs b/ModuleFilesGenerator/ParameterComparer.cs index 1a5d54011..bbf1e7efd 100644 --- a/ModuleFilesGenerator/ParameterComparer.cs +++ b/ModuleFilesGenerator/ParameterComparer.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; -using SharePointPnP.PowerShell.ModuleFilesGenerator.Model; +using PnP.PowerShell.ModuleFilesGenerator.Model; -namespace SharePointPnP.PowerShell.ModuleFilesGenerator +namespace PnP.PowerShell.ModuleFilesGenerator { internal class ParameterComparer : IEqualityComparer { diff --git a/ModuleFilesGenerator/SharePointPnP.PowerShell.ModuleFilesGenerator.csproj b/ModuleFilesGenerator/PnP.PowerShell.ModuleFilesGenerator.csproj similarity index 95% rename from ModuleFilesGenerator/SharePointPnP.PowerShell.ModuleFilesGenerator.csproj rename to ModuleFilesGenerator/PnP.PowerShell.ModuleFilesGenerator.csproj index bfd99c109..1aa019ed5 100644 --- a/ModuleFilesGenerator/SharePointPnP.PowerShell.ModuleFilesGenerator.csproj +++ b/ModuleFilesGenerator/PnP.PowerShell.ModuleFilesGenerator.csproj @@ -7,8 +7,8 @@ {DF6DEB88-12E0-48FA-A717-9404832E52CC} Exe Properties - SharePointPnP.PowerShell.ModuleFilesGenerator - SharePointPnP.PowerShell.ModuleFilesGenerator + PnP.PowerShell.ModuleFilesGenerator + PnP.PowerShell.ModuleFilesGenerator v4.6.1 512 @@ -138,9 +138,9 @@ - + {FDD50BBD-AE78-4B10-9549-0566686719AB} - SharePointPnP.PowerShell.CmdletHelpAttributes + PnP.PowerShell.CmdletHelpAttributes diff --git a/ModuleFilesGenerator/Properties/AssemblyInfo.cs b/ModuleFilesGenerator/Properties/AssemblyInfo.cs index e54110a70..8deffea37 100644 --- a/ModuleFilesGenerator/Properties/AssemblyInfo.cs +++ b/ModuleFilesGenerator/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("SharePointPnP.PowerShell.ModuleFilesGenerator")] +[assembly: AssemblyTitle("PnP.PowerShell.ModuleFilesGenerator")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SharePointPnP.PowerShell.ModuleFilesGenerator")] +[assembly: AssemblyProduct("PnP.PowerShell.ModuleFilesGenerator")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/PostBuild.ps1 b/PostBuild.ps1 index 5eab131b8..bf6c80314 100644 --- a/PostBuild.ps1 +++ b/PostBuild.ps1 @@ -9,15 +9,15 @@ if($ConfigurationName -like "Debug*") } else { if($ConfigurationName -like "Debug15") { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2013" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2013" } elseif($ConfigurationName -like "Debug16") { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2016" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2016" } elseif($ConfigurationName -like "Debug19") { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2019" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2019" } else { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShellOnline" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShellOnline" } } # Module folder there? @@ -42,36 +42,20 @@ if($ConfigurationName -like "Debug*") switch($ConfigurationName) { "Debug15" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.2013.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2013.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2013.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Debug16" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.2016.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2016.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2016.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Debug19" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.2019.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019Aliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019Aliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2019.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2019.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Debug" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnline.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShellOnline.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.Online.Commands.Format.ps1xml" -Destination "$DestinationFolder" } } } @@ -91,19 +75,19 @@ if($ConfigurationName -like "Debug*") { "Release15" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2013" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2013" } "Release16" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2016" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2016" } "Release19" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2019" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2019" } "Release" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShellOnline" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShellOnline" } } } @@ -132,36 +116,20 @@ if($ConfigurationName -like "Debug*") switch($ConfigurationName) { "Release15" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.2013.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013Aliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2013.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2013.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Release16" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.2016.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016Aliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2016.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2016.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Release19" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.2019.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019Aliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019Aliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2019.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2019.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Release" { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnline.psd1" -Destination "$DestinationFolder" - Copy-Item "$TargetDir\ModuleFiles\SharePointPnP.PowerShell.Online.Commands.Format.ps1xml" -Destination "$DestinationFolder" - if(Test-Path -Path "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1") - { - Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnlineAliases.psm1" -Destination "$DestinationFolder" - } + Copy-Item "$TargetDir\ModuleFiles\PnPPowerShellOnline.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.Online.Commands.Format.ps1xml" -Destination "$DestinationFolder" } } } diff --git a/README.md b/README.md index 08e4ddff7..b0bac5ef0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SharePointPnP.PowerShell Commands # +# PnP PowerShell # ### Summary ### This solution contains a library of PowerShell commands that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use a combination of CSOM and REST behind the scenes, and can work against both SharePoint Online as SharePoint On-Premises. diff --git a/SharePointPnP.PowerShell.sln b/SharePointPnP.PowerShell.sln index 984fe6adb..d91713bee 100644 --- a/SharePointPnP.PowerShell.sln +++ b/SharePointPnP.PowerShell.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.30128.74 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharePointPnP.PowerShell.Commands", "Commands\SharePointPnP.PowerShell.Commands.csproj", "{1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PnP.PowerShell.Commands", "Commands\PnP.PowerShell.Commands.csproj", "{1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0}" ProjectSection(ProjectDependencies) = postProject {DF6DEB88-12E0-48FA-A717-9404832E52CC} = {DF6DEB88-12E0-48FA-A717-9404832E52CC} EndProjectSection @@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{8F9F PostBuild.ps1 = PostBuild.ps1 EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharePointPnP.PowerShell.CmdletHelpAttributes", "HelpAttributes\SharePointPnP.PowerShell.CmdletHelpAttributes.csproj", "{FDD50BBD-AE78-4B10-9549-0566686719AB}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PnP.PowerShell.CmdletHelpAttributes", "HelpAttributes\PnP.PowerShell.CmdletHelpAttributes.csproj", "{FDD50BBD-AE78-4B10-9549-0566686719AB}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{AB70588E-5972-4D9B-9342-C8CA3275F80A}" ProjectSection(SolutionItems) = preProject @@ -25,9 +25,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentat version.txt = version.txt EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharePointPnP.PowerShell.Tests", "Tests\SharePointPnP.PowerShell.Tests.csproj", "{AD2E3CF9-65C7-40FD-9F52-CE8259031C6E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PnP.PowerShell.Tests", "Tests\PnP.PowerShell.Tests.csproj", "{AD2E3CF9-65C7-40FD-9F52-CE8259031C6E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharePointPnP.PowerShell.ModuleFilesGenerator", "ModuleFilesGenerator\SharePointPnP.PowerShell.ModuleFilesGenerator.csproj", "{DF6DEB88-12E0-48FA-A717-9404832E52CC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PnP.PowerShell.ModuleFilesGenerator", "ModuleFilesGenerator\PnP.PowerShell.ModuleFilesGenerator.csproj", "{DF6DEB88-12E0-48FA-A717-9404832E52CC}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Tests/Admin/AddPnPHubSiteAssociationTests.cs b/Tests/Admin/AddPnPHubSiteAssociationTests.cs index 28c338484..2a20c5676 100644 --- a/Tests/Admin/AddPnPHubSiteAssociationTests.cs +++ b/Tests/Admin/AddPnPHubSiteAssociationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddHubSiteAssociationTests diff --git a/Tests/Admin/AddPnPOffice365GroupToSiteTests.cs b/Tests/Admin/AddPnPOffice365GroupToSiteTests.cs index 293e1b13e..99e2e652e 100644 --- a/Tests/Admin/AddPnPOffice365GroupToSiteTests.cs +++ b/Tests/Admin/AddPnPOffice365GroupToSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddOffice365GroupToSiteTests diff --git a/Tests/Admin/AddPnPOrgAssetsLibraryTests.cs b/Tests/Admin/AddPnPOrgAssetsLibraryTests.cs index 25d7d3060..72db8bcfc 100644 --- a/Tests/Admin/AddPnPOrgAssetsLibraryTests.cs +++ b/Tests/Admin/AddPnPOrgAssetsLibraryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddOrgAssetsLibraryTests diff --git a/Tests/Admin/AddPnPOrgNewsSiteTests.cs b/Tests/Admin/AddPnPOrgNewsSiteTests.cs index 02b1fc340..e3801075a 100644 --- a/Tests/Admin/AddPnPOrgNewsSiteTests.cs +++ b/Tests/Admin/AddPnPOrgNewsSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddOrgNewsSiteTests diff --git a/Tests/Admin/AddPnPSiteCollectionAppCatalogTests.cs b/Tests/Admin/AddPnPSiteCollectionAppCatalogTests.cs index d6f9474fb..5f73c53a4 100644 --- a/Tests/Admin/AddPnPSiteCollectionAppCatalogTests.cs +++ b/Tests/Admin/AddPnPSiteCollectionAppCatalogTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddSiteCollectionAppCatalogTests diff --git a/Tests/Admin/AddPnPTenantCdnOriginTests.cs b/Tests/Admin/AddPnPTenantCdnOriginTests.cs index be278a1b7..74cee100e 100644 --- a/Tests/Admin/AddPnPTenantCdnOriginTests.cs +++ b/Tests/Admin/AddPnPTenantCdnOriginTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddTenantCdnOriginTests diff --git a/Tests/Admin/AddPnPTenantThemeTests.cs b/Tests/Admin/AddPnPTenantThemeTests.cs index 8a4af5c8d..54e926466 100644 --- a/Tests/Admin/AddPnPTenantThemeTests.cs +++ b/Tests/Admin/AddPnPTenantThemeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class AddTenantThemeTests diff --git a/Tests/Admin/ClearPnPTenantAppCatalogUrlTests.cs b/Tests/Admin/ClearPnPTenantAppCatalogUrlTests.cs index 233f6b5b7..580c821f5 100644 --- a/Tests/Admin/ClearPnPTenantAppCatalogUrlTests.cs +++ b/Tests/Admin/ClearPnPTenantAppCatalogUrlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class ClearTenantAppCatalogUrlTests diff --git a/Tests/Admin/GetPnPHideDefaultThemesTests.cs b/Tests/Admin/GetPnPHideDefaultThemesTests.cs index 41747104e..d17bb48d3 100644 --- a/Tests/Admin/GetPnPHideDefaultThemesTests.cs +++ b/Tests/Admin/GetPnPHideDefaultThemesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetHideDefaultThemesTests diff --git a/Tests/Admin/GetPnPHomeSiteTests.cs b/Tests/Admin/GetPnPHomeSiteTests.cs index 8a89b6832..24cae0848 100644 --- a/Tests/Admin/GetPnPHomeSiteTests.cs +++ b/Tests/Admin/GetPnPHomeSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetHomeSiteTests diff --git a/Tests/Admin/GetPnPHubSiteChildTests.cs b/Tests/Admin/GetPnPHubSiteChildTests.cs index 4fe765392..83c530bba 100644 --- a/Tests/Admin/GetPnPHubSiteChildTests.cs +++ b/Tests/Admin/GetPnPHubSiteChildTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetHubSiteChildTests diff --git a/Tests/Admin/GetPnPHubSiteTests.cs b/Tests/Admin/GetPnPHubSiteTests.cs index 84c21d66e..9fddcd7b9 100644 --- a/Tests/Admin/GetPnPHubSiteTests.cs +++ b/Tests/Admin/GetPnPHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetHubSiteTests diff --git a/Tests/Admin/GetPnPKnowledgeHubSiteTests.cs b/Tests/Admin/GetPnPKnowledgeHubSiteTests.cs index aa4311dd6..5c524da59 100644 --- a/Tests/Admin/GetPnPKnowledgeHubSiteTests.cs +++ b/Tests/Admin/GetPnPKnowledgeHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetKnowledgeHubSiteTests diff --git a/Tests/Admin/GetPnPOrgAssetsLibraryTests.cs b/Tests/Admin/GetPnPOrgAssetsLibraryTests.cs index 94e626ef4..fec4a39fd 100644 --- a/Tests/Admin/GetPnPOrgAssetsLibraryTests.cs +++ b/Tests/Admin/GetPnPOrgAssetsLibraryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetOrgAssetsLibraryTests diff --git a/Tests/Admin/GetPnPOrgNewsSiteTests.cs b/Tests/Admin/GetPnPOrgNewsSiteTests.cs index 02596d39a..dcac4ca80 100644 --- a/Tests/Admin/GetPnPOrgNewsSiteTests.cs +++ b/Tests/Admin/GetPnPOrgNewsSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetOrgNewsSiteTests diff --git a/Tests/Admin/GetPnPStorageEntityTests.cs b/Tests/Admin/GetPnPStorageEntityTests.cs index 26d04c580..5730ebf13 100644 --- a/Tests/Admin/GetPnPStorageEntityTests.cs +++ b/Tests/Admin/GetPnPStorageEntityTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetPnPStorageEntityTests diff --git a/Tests/Admin/GetPnPTenantAppCatalogUrlTests.cs b/Tests/Admin/GetPnPTenantAppCatalogUrlTests.cs index 6bd1fece8..58cc2c5ee 100644 --- a/Tests/Admin/GetPnPTenantAppCatalogUrlTests.cs +++ b/Tests/Admin/GetPnPTenantAppCatalogUrlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantAppCatalogUrlTests diff --git a/Tests/Admin/GetPnPTenantCdnEnabledTests.cs b/Tests/Admin/GetPnPTenantCdnEnabledTests.cs index cec67e04e..88d439363 100644 --- a/Tests/Admin/GetPnPTenantCdnEnabledTests.cs +++ b/Tests/Admin/GetPnPTenantCdnEnabledTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantCdnEnabledTests diff --git a/Tests/Admin/GetPnPTenantCdnOriginTests.cs b/Tests/Admin/GetPnPTenantCdnOriginTests.cs index 972cdb09e..64246c564 100644 --- a/Tests/Admin/GetPnPTenantCdnOriginTests.cs +++ b/Tests/Admin/GetPnPTenantCdnOriginTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantCdnOriginTests diff --git a/Tests/Admin/GetPnPTenantCdnPoliciesTests.cs b/Tests/Admin/GetPnPTenantCdnPoliciesTests.cs index d3a8d7796..5eebffc8b 100644 --- a/Tests/Admin/GetPnPTenantCdnPoliciesTests.cs +++ b/Tests/Admin/GetPnPTenantCdnPoliciesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantCdnPoliciesTests diff --git a/Tests/Admin/GetPnPTenantIdTests.cs b/Tests/Admin/GetPnPTenantIdTests.cs index ffe0b24ba..267540446 100644 --- a/Tests/Admin/GetPnPTenantIdTests.cs +++ b/Tests/Admin/GetPnPTenantIdTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantIdTests diff --git a/Tests/Admin/GetPnPTenantSiteTests.cs b/Tests/Admin/GetPnPTenantSiteTests.cs index 406794c7a..acc6dcd12 100644 --- a/Tests/Admin/GetPnPTenantSiteTests.cs +++ b/Tests/Admin/GetPnPTenantSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantSiteTests diff --git a/Tests/Admin/GetPnPTenantSyncClientRestrictionTests.cs b/Tests/Admin/GetPnPTenantSyncClientRestrictionTests.cs index 436e37ac0..7f980c826 100644 --- a/Tests/Admin/GetPnPTenantSyncClientRestrictionTests.cs +++ b/Tests/Admin/GetPnPTenantSyncClientRestrictionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetPnPTenantSyncClientRestrictionTests diff --git a/Tests/Admin/GetPnPTenantTests.cs b/Tests/Admin/GetPnPTenantTests.cs index 82a27b1c2..3b6b4ec57 100644 --- a/Tests/Admin/GetPnPTenantTests.cs +++ b/Tests/Admin/GetPnPTenantTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantTests diff --git a/Tests/Admin/GetPnPTenantThemeTests.cs b/Tests/Admin/GetPnPTenantThemeTests.cs index 2c6740a19..a449660ab 100644 --- a/Tests/Admin/GetPnPTenantThemeTests.cs +++ b/Tests/Admin/GetPnPTenantThemeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTenantThemeTests diff --git a/Tests/Admin/GetPnPTimeZoneIdTests.cs b/Tests/Admin/GetPnPTimeZoneIdTests.cs index 8416e1910..a62d66361 100644 --- a/Tests/Admin/GetPnPTimeZoneIdTests.cs +++ b/Tests/Admin/GetPnPTimeZoneIdTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GetTimeZoneIdTests diff --git a/Tests/Admin/GrantPnPHubSiteRightsTests.cs b/Tests/Admin/GrantPnPHubSiteRightsTests.cs index 743eaf24c..ef8d30ce9 100644 --- a/Tests/Admin/GrantPnPHubSiteRightsTests.cs +++ b/Tests/Admin/GrantPnPHubSiteRightsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class GrantHubSiteRightsTests diff --git a/Tests/Admin/InvokePnPSPRestMethodTests.cs b/Tests/Admin/InvokePnPSPRestMethodTests.cs index e809ad394..cea0e56d0 100644 --- a/Tests/Admin/InvokePnPSPRestMethodTests.cs +++ b/Tests/Admin/InvokePnPSPRestMethodTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class InvokeSPRestMethodTests diff --git a/Tests/Admin/NewPnPTenantSiteTests.cs b/Tests/Admin/NewPnPTenantSiteTests.cs index 7f77e7ccc..6059a5b81 100644 --- a/Tests/Admin/NewPnPTenantSiteTests.cs +++ b/Tests/Admin/NewPnPTenantSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class NewTenantSiteTests diff --git a/Tests/Admin/RegisterPnPHubSiteTests.cs b/Tests/Admin/RegisterPnPHubSiteTests.cs index cfc40ad45..d19e8995a 100644 --- a/Tests/Admin/RegisterPnPHubSiteTests.cs +++ b/Tests/Admin/RegisterPnPHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RegisterHubSiteTests diff --git a/Tests/Admin/RemovePnPHomeSiteTests.cs b/Tests/Admin/RemovePnPHomeSiteTests.cs index dc7a3720a..476491962 100644 --- a/Tests/Admin/RemovePnPHomeSiteTests.cs +++ b/Tests/Admin/RemovePnPHomeSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveHomeSiteTests diff --git a/Tests/Admin/RemovePnPHubSiteAssociationTests.cs b/Tests/Admin/RemovePnPHubSiteAssociationTests.cs index 259e236f7..0310aa04e 100644 --- a/Tests/Admin/RemovePnPHubSiteAssociationTests.cs +++ b/Tests/Admin/RemovePnPHubSiteAssociationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveHubSiteAssociationTests diff --git a/Tests/Admin/RemovePnPKnowledgeHubSiteTests.cs b/Tests/Admin/RemovePnPKnowledgeHubSiteTests.cs index b0b9c0325..d0ca45d80 100644 --- a/Tests/Admin/RemovePnPKnowledgeHubSiteTests.cs +++ b/Tests/Admin/RemovePnPKnowledgeHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveKnowledgeHubSiteTests diff --git a/Tests/Admin/RemovePnPOrgAssetsLibraryTests.cs b/Tests/Admin/RemovePnPOrgAssetsLibraryTests.cs index aee0b3589..aa60500ca 100644 --- a/Tests/Admin/RemovePnPOrgAssetsLibraryTests.cs +++ b/Tests/Admin/RemovePnPOrgAssetsLibraryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveOrgAssetsLibraryTests diff --git a/Tests/Admin/RemovePnPOrgNewsSiteTests.cs b/Tests/Admin/RemovePnPOrgNewsSiteTests.cs index cb949ae67..b2267fb27 100644 --- a/Tests/Admin/RemovePnPOrgNewsSiteTests.cs +++ b/Tests/Admin/RemovePnPOrgNewsSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveOrgNewsSiteTests diff --git a/Tests/Admin/RemovePnPSiteCollectionAppCatalogTests.cs b/Tests/Admin/RemovePnPSiteCollectionAppCatalogTests.cs index cf7f06dda..e987d2c11 100644 --- a/Tests/Admin/RemovePnPSiteCollectionAppCatalogTests.cs +++ b/Tests/Admin/RemovePnPSiteCollectionAppCatalogTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveSiteCollectionAppCatalogTests diff --git a/Tests/Admin/RemovePnPStorageEntityTests.cs b/Tests/Admin/RemovePnPStorageEntityTests.cs index d036188a2..954f57a2c 100644 --- a/Tests/Admin/RemovePnPStorageEntityTests.cs +++ b/Tests/Admin/RemovePnPStorageEntityTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemovePnPStorageEntityTests diff --git a/Tests/Admin/RemovePnPTenantCdnOriginTests.cs b/Tests/Admin/RemovePnPTenantCdnOriginTests.cs index be66409d5..4d2ea60d4 100644 --- a/Tests/Admin/RemovePnPTenantCdnOriginTests.cs +++ b/Tests/Admin/RemovePnPTenantCdnOriginTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveTenantCdnOriginTests diff --git a/Tests/Admin/RemovePnPTenantSiteTests.cs b/Tests/Admin/RemovePnPTenantSiteTests.cs index aadb5b695..dd884021c 100644 --- a/Tests/Admin/RemovePnPTenantSiteTests.cs +++ b/Tests/Admin/RemovePnPTenantSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveSiteTests diff --git a/Tests/Admin/RemovePnPTenantThemeTests.cs b/Tests/Admin/RemovePnPTenantThemeTests.cs index d507e5da9..b9de8424b 100644 --- a/Tests/Admin/RemovePnPTenantThemeTests.cs +++ b/Tests/Admin/RemovePnPTenantThemeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RemoveTenantThemeTests diff --git a/Tests/Admin/RevokePnPHubSiteRightsTests.cs b/Tests/Admin/RevokePnPHubSiteRightsTests.cs index aa7814c81..d93372184 100644 --- a/Tests/Admin/RevokePnPHubSiteRightsTests.cs +++ b/Tests/Admin/RevokePnPHubSiteRightsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class RevokeHubSiteRightsTests diff --git a/Tests/Admin/SetPnPHideDefaultThemesTests.cs b/Tests/Admin/SetPnPHideDefaultThemesTests.cs index 9e9083fda..bef8598be 100644 --- a/Tests/Admin/SetPnPHideDefaultThemesTests.cs +++ b/Tests/Admin/SetPnPHideDefaultThemesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetHideDefaultThemesTests diff --git a/Tests/Admin/SetPnPHomeSiteTests.cs b/Tests/Admin/SetPnPHomeSiteTests.cs index 0d4f9d7d0..cbf854ccc 100644 --- a/Tests/Admin/SetPnPHomeSiteTests.cs +++ b/Tests/Admin/SetPnPHomeSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetHomeSiteTests diff --git a/Tests/Admin/SetPnPHubSiteTests.cs b/Tests/Admin/SetPnPHubSiteTests.cs index ca1015d72..5360187f1 100644 --- a/Tests/Admin/SetPnPHubSiteTests.cs +++ b/Tests/Admin/SetPnPHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetHubSiteTests diff --git a/Tests/Admin/SetPnPKnowledgeHubSiteTests.cs b/Tests/Admin/SetPnPKnowledgeHubSiteTests.cs index 36ed5ecf3..92651c10b 100644 --- a/Tests/Admin/SetPnPKnowledgeHubSiteTests.cs +++ b/Tests/Admin/SetPnPKnowledgeHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetKnowledgeHubSiteTests diff --git a/Tests/Admin/SetPnPStorageEntityTests.cs b/Tests/Admin/SetPnPStorageEntityTests.cs index fcc7513f0..1eda61169 100644 --- a/Tests/Admin/SetPnPStorageEntityTests.cs +++ b/Tests/Admin/SetPnPStorageEntityTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetPnPStorageEntityTests diff --git a/Tests/Admin/SetPnPTenantAppCatalogUrlTests.cs b/Tests/Admin/SetPnPTenantAppCatalogUrlTests.cs index 3744280ab..4034c58ee 100644 --- a/Tests/Admin/SetPnPTenantAppCatalogUrlTests.cs +++ b/Tests/Admin/SetPnPTenantAppCatalogUrlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetTenantAppCatalogUrlTests diff --git a/Tests/Admin/SetPnPTenantCdnEnabledTests.cs b/Tests/Admin/SetPnPTenantCdnEnabledTests.cs index a94a523df..a1a227eef 100644 --- a/Tests/Admin/SetPnPTenantCdnEnabledTests.cs +++ b/Tests/Admin/SetPnPTenantCdnEnabledTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetTenantCdnEnabledTests diff --git a/Tests/Admin/SetPnPTenantCdnPolicyTests.cs b/Tests/Admin/SetPnPTenantCdnPolicyTests.cs index 2dd9349e1..d313bbcd9 100644 --- a/Tests/Admin/SetPnPTenantCdnPolicyTests.cs +++ b/Tests/Admin/SetPnPTenantCdnPolicyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetTenantCdnPolicyTests diff --git a/Tests/Admin/SetPnPTenantSiteTests.cs b/Tests/Admin/SetPnPTenantSiteTests.cs index f6fc35c80..1c6dab70c 100644 --- a/Tests/Admin/SetPnPTenantSiteTests.cs +++ b/Tests/Admin/SetPnPTenantSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetTenantSiteTests diff --git a/Tests/Admin/SetPnPTenantSyncClientRestrictionTests.cs b/Tests/Admin/SetPnPTenantSyncClientRestrictionTests.cs index 7a67ede2f..38868c6b2 100644 --- a/Tests/Admin/SetPnPTenantSyncClientRestrictionTests.cs +++ b/Tests/Admin/SetPnPTenantSyncClientRestrictionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetTenantSyncClientRestrictionTests diff --git a/Tests/Admin/SetPnPTenantTests.cs b/Tests/Admin/SetPnPTenantTests.cs index 8ad3dcaa1..737e7214b 100644 --- a/Tests/Admin/SetPnPTenantTests.cs +++ b/Tests/Admin/SetPnPTenantTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class SetTenantTests diff --git a/Tests/Admin/UnregisterPnPHubSiteTests.cs b/Tests/Admin/UnregisterPnPHubSiteTests.cs index 96e723b8e..b2155057e 100644 --- a/Tests/Admin/UnregisterPnPHubSiteTests.cs +++ b/Tests/Admin/UnregisterPnPHubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Admin +namespace PnP.PowerShell.Tests.Admin { [TestClass] public class UnregisterHubSiteTests diff --git a/Tests/Apps/AddPnPAppTests.cs b/Tests/Apps/AddPnPAppTests.cs index d16bc05f7..634d7b2a4 100644 --- a/Tests/Apps/AddPnPAppTests.cs +++ b/Tests/Apps/AddPnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class AddAppTests diff --git a/Tests/Apps/ApprovePnPTenantServicePrincipalPermissionRequestTests.cs b/Tests/Apps/ApprovePnPTenantServicePrincipalPermissionRequestTests.cs index bb6c95ba2..a233d1a86 100644 --- a/Tests/Apps/ApprovePnPTenantServicePrincipalPermissionRequestTests.cs +++ b/Tests/Apps/ApprovePnPTenantServicePrincipalPermissionRequestTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class ApproveTenantServicePrincipalPermissionRequestsTests diff --git a/Tests/Apps/DenyPnPTenantServicePrincipalPermissionRequestTests.cs b/Tests/Apps/DenyPnPTenantServicePrincipalPermissionRequestTests.cs index f166c03dc..d03543c2f 100644 --- a/Tests/Apps/DenyPnPTenantServicePrincipalPermissionRequestTests.cs +++ b/Tests/Apps/DenyPnPTenantServicePrincipalPermissionRequestTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class DenyTenantServicePrincipalPermissionRequestsTests diff --git a/Tests/Apps/DisablePnPTenantServicePrincipalTests.cs b/Tests/Apps/DisablePnPTenantServicePrincipalTests.cs index d4107919f..c7bf21ce1 100644 --- a/Tests/Apps/DisablePnPTenantServicePrincipalTests.cs +++ b/Tests/Apps/DisablePnPTenantServicePrincipalTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class DisableTenantServicePrincipalTests diff --git a/Tests/Apps/EnablePnPTenantServicePrincipalTests.cs b/Tests/Apps/EnablePnPTenantServicePrincipalTests.cs index e93ce6bc6..2901ff02f 100644 --- a/Tests/Apps/EnablePnPTenantServicePrincipalTests.cs +++ b/Tests/Apps/EnablePnPTenantServicePrincipalTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class EnableTenantServicePrincipalTests diff --git a/Tests/Apps/GetPnPAppInstanceTests.cs b/Tests/Apps/GetPnPAppInstanceTests.cs index a1c2db0d4..ce4c15526 100644 --- a/Tests/Apps/GetPnPAppInstanceTests.cs +++ b/Tests/Apps/GetPnPAppInstanceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class GetAppInstanceTests diff --git a/Tests/Apps/GetPnPAppTests.cs b/Tests/Apps/GetPnPAppTests.cs index 8e0dafb8d..a2353e1ea 100644 --- a/Tests/Apps/GetPnPAppTests.cs +++ b/Tests/Apps/GetPnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class GetAppTests diff --git a/Tests/Apps/GetPnPTenantServicePrincipalPermissionGrantsTests.cs b/Tests/Apps/GetPnPTenantServicePrincipalPermissionGrantsTests.cs index c953feeaa..fd0ece303 100644 --- a/Tests/Apps/GetPnPTenantServicePrincipalPermissionGrantsTests.cs +++ b/Tests/Apps/GetPnPTenantServicePrincipalPermissionGrantsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class GetTenantServicePrincipalPermissionGrantsTests diff --git a/Tests/Apps/GetPnPTenantServicePrincipalPermissionRequestsTests.cs b/Tests/Apps/GetPnPTenantServicePrincipalPermissionRequestsTests.cs index 41b8a9f0b..560ad945f 100644 --- a/Tests/Apps/GetPnPTenantServicePrincipalPermissionRequestsTests.cs +++ b/Tests/Apps/GetPnPTenantServicePrincipalPermissionRequestsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class GetTenantServicePrincipalPermissionRequestsTests diff --git a/Tests/Apps/GetPnPTenantServicePrincipalTests.cs b/Tests/Apps/GetPnPTenantServicePrincipalTests.cs index 8a4e53fe5..fb8237933 100644 --- a/Tests/Apps/GetPnPTenantServicePrincipalTests.cs +++ b/Tests/Apps/GetPnPTenantServicePrincipalTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class GetTenantServicePrincipalTests diff --git a/Tests/Apps/GrantPnPTenantServicePrincipalPermissionTests.cs b/Tests/Apps/GrantPnPTenantServicePrincipalPermissionTests.cs index 3bd6acf12..af0d4de95 100644 --- a/Tests/Apps/GrantPnPTenantServicePrincipalPermissionTests.cs +++ b/Tests/Apps/GrantPnPTenantServicePrincipalPermissionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class GrantTenantServicePrincipalPermissionTests diff --git a/Tests/Apps/ImportPnPAppPackageTests.cs b/Tests/Apps/ImportPnPAppPackageTests.cs index bc522dfae..afdc686cc 100644 --- a/Tests/Apps/ImportPnPAppPackageTests.cs +++ b/Tests/Apps/ImportPnPAppPackageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class ImportAppPackageTests diff --git a/Tests/Apps/InstallPnPAppTests.cs b/Tests/Apps/InstallPnPAppTests.cs index 5e7d5e0f3..e4245d24f 100644 --- a/Tests/Apps/InstallPnPAppTests.cs +++ b/Tests/Apps/InstallPnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class InstallAppTests diff --git a/Tests/Apps/PublishPnPAppTests.cs b/Tests/Apps/PublishPnPAppTests.cs index 90e9c20c1..f7d3c90ad 100644 --- a/Tests/Apps/PublishPnPAppTests.cs +++ b/Tests/Apps/PublishPnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class PublishAppTests diff --git a/Tests/Apps/RegisterPnPAppCatalogSiteTests.cs b/Tests/Apps/RegisterPnPAppCatalogSiteTests.cs index e02b31c61..5cccade9b 100644 --- a/Tests/Apps/RegisterPnPAppCatalogSiteTests.cs +++ b/Tests/Apps/RegisterPnPAppCatalogSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class RegisterAppCatalogSiteTests diff --git a/Tests/Apps/RemovePnPAppTests.cs b/Tests/Apps/RemovePnPAppTests.cs index 53bd7ae85..318fc9cf2 100644 --- a/Tests/Apps/RemovePnPAppTests.cs +++ b/Tests/Apps/RemovePnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class RemoveAppTests diff --git a/Tests/Apps/RevokePnPTenantServicePrincipalPermissionTests.cs b/Tests/Apps/RevokePnPTenantServicePrincipalPermissionTests.cs index a485f194a..e9e87c427 100644 --- a/Tests/Apps/RevokePnPTenantServicePrincipalPermissionTests.cs +++ b/Tests/Apps/RevokePnPTenantServicePrincipalPermissionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class RevokeTenantServicePrincipalTests diff --git a/Tests/Apps/SyncPnPAppToTeamsTests.cs b/Tests/Apps/SyncPnPAppToTeamsTests.cs index f8bb0397d..ab7c4b57a 100644 --- a/Tests/Apps/SyncPnPAppToTeamsTests.cs +++ b/Tests/Apps/SyncPnPAppToTeamsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class SyncAppToTeamsTests diff --git a/Tests/Apps/UninstallPnPAppInstanceTests.cs b/Tests/Apps/UninstallPnPAppInstanceTests.cs index 2e193de41..a95a857a6 100644 --- a/Tests/Apps/UninstallPnPAppInstanceTests.cs +++ b/Tests/Apps/UninstallPnPAppInstanceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class UninstallAppInstanceTests diff --git a/Tests/Apps/UninstallPnPAppTests.cs b/Tests/Apps/UninstallPnPAppTests.cs index d09b51d94..14b8fd6a2 100644 --- a/Tests/Apps/UninstallPnPAppTests.cs +++ b/Tests/Apps/UninstallPnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class UninstallAppTests diff --git a/Tests/Apps/UnpublishPnPAppTests.cs b/Tests/Apps/UnpublishPnPAppTests.cs index 762cf5dd6..2d6f953bc 100644 --- a/Tests/Apps/UnpublishPnPAppTests.cs +++ b/Tests/Apps/UnpublishPnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class UnpublishAppTests diff --git a/Tests/Apps/UpdatePnPAppTests.cs b/Tests/Apps/UpdatePnPAppTests.cs index aad5648a0..9f6d5dbe4 100644 --- a/Tests/Apps/UpdatePnPAppTests.cs +++ b/Tests/Apps/UpdatePnPAppTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Apps +namespace PnP.PowerShell.Tests.Apps { [TestClass] public class UpdateAppTests diff --git a/Tests/Base/AddPnPStoredCredentialTests.cs b/Tests/Base/AddPnPStoredCredentialTests.cs index 0de423be5..3be2bb59b 100644 --- a/Tests/Base/AddPnPStoredCredentialTests.cs +++ b/Tests/Base/AddPnPStoredCredentialTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class AddStoredCredentialTests diff --git a/Tests/Base/ConnectPnPOnlineTests.cs b/Tests/Base/ConnectPnPOnlineTests.cs index d52b0f2c6..cbde8b5f5 100644 --- a/Tests/Base/ConnectPnPOnlineTests.cs +++ b/Tests/Base/ConnectPnPOnlineTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class ConnectOnlineTests diff --git a/Tests/Base/DisablePnPPowerShellTelemetryTests.cs b/Tests/Base/DisablePnPPowerShellTelemetryTests.cs index 8c4f8be2b..f9d676f83 100644 --- a/Tests/Base/DisablePnPPowerShellTelemetryTests.cs +++ b/Tests/Base/DisablePnPPowerShellTelemetryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class DisablePowerShellTelemetryTests diff --git a/Tests/Base/DisconnectPnPOnlineTests.cs b/Tests/Base/DisconnectPnPOnlineTests.cs index 158a0fdf7..ab3ae08aa 100644 --- a/Tests/Base/DisconnectPnPOnlineTests.cs +++ b/Tests/Base/DisconnectPnPOnlineTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class DisconnectOnlineTests diff --git a/Tests/Base/EnablePnPPowerShellTelemetryTests.cs b/Tests/Base/EnablePnPPowerShellTelemetryTests.cs index 3e5f39a05..c10eb430a 100644 --- a/Tests/Base/EnablePnPPowerShellTelemetryTests.cs +++ b/Tests/Base/EnablePnPPowerShellTelemetryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class EnablePowerShellTelemetryTests diff --git a/Tests/Base/GetPnPAccessTokenTests.cs b/Tests/Base/GetPnPAccessTokenTests.cs index 01b6f0d07..db7ce4ec5 100644 --- a/Tests/Base/GetPnPAccessTokenTests.cs +++ b/Tests/Base/GetPnPAccessTokenTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetPnPAccessTokenTests diff --git a/Tests/Base/GetPnPAppAuthAccessTokenTests.cs b/Tests/Base/GetPnPAppAuthAccessTokenTests.cs index c10a481a7..fdaa69820 100644 --- a/Tests/Base/GetPnPAppAuthAccessTokenTests.cs +++ b/Tests/Base/GetPnPAppAuthAccessTokenTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetPnPAppAuthAccessTokenTests diff --git a/Tests/Base/GetPnPAuthenticationRealmTests.cs b/Tests/Base/GetPnPAuthenticationRealmTests.cs index 9a0f8da92..e8e649793 100644 --- a/Tests/Base/GetPnPAuthenticationRealmTests.cs +++ b/Tests/Base/GetPnPAuthenticationRealmTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetAuthenticationRealmTests diff --git a/Tests/Base/GetPnPAzureCertificateTests.cs b/Tests/Base/GetPnPAzureCertificateTests.cs index 8bc3f4f75..13d75558c 100644 --- a/Tests/Base/GetPnPAzureCertificateTests.cs +++ b/Tests/Base/GetPnPAzureCertificateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetPnPAdalCertificateTests diff --git a/Tests/Base/GetPnPConnectionTests.cs b/Tests/Base/GetPnPConnectionTests.cs index af1b01d20..3a7016605 100644 --- a/Tests/Base/GetPnPConnectionTests.cs +++ b/Tests/Base/GetPnPConnectionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetPnPConnectionTests diff --git a/Tests/Base/GetPnPContextTests.cs b/Tests/Base/GetPnPContextTests.cs index acf1e4821..93c052339 100644 --- a/Tests/Base/GetPnPContextTests.cs +++ b/Tests/Base/GetPnPContextTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetSPOContextTests diff --git a/Tests/Base/GetPnPExceptionTests.cs b/Tests/Base/GetPnPExceptionTests.cs index c7528f05a..8081d538c 100644 --- a/Tests/Base/GetPnPExceptionTests.cs +++ b/Tests/Base/GetPnPExceptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetExceptionTests diff --git a/Tests/Base/GetPnPGraphAccessTokenTests.cs b/Tests/Base/GetPnPGraphAccessTokenTests.cs index d86bbb2ad..f4e6bc8e5 100644 --- a/Tests/Base/GetPnPGraphAccessTokenTests.cs +++ b/Tests/Base/GetPnPGraphAccessTokenTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetGraphAccessTokenTests diff --git a/Tests/Base/GetPnPHealthScoreTests.cs b/Tests/Base/GetPnPHealthScoreTests.cs index 4131e8199..cd72c2575 100644 --- a/Tests/Base/GetPnPHealthScoreTests.cs +++ b/Tests/Base/GetPnPHealthScoreTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetHealthScoreTests diff --git a/Tests/Base/GetPnPPowerShellTelemetryEnabledTests.cs b/Tests/Base/GetPnPPowerShellTelemetryEnabledTests.cs index 0ce834b7b..4a9c32f76 100644 --- a/Tests/Base/GetPnPPowerShellTelemetryEnabledTests.cs +++ b/Tests/Base/GetPnPPowerShellTelemetryEnabledTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetPowerShellTelemetryEnabledTests diff --git a/Tests/Base/GetPnPPropertyTests.cs b/Tests/Base/GetPnPPropertyTests.cs index f88a62a47..a11c92bab 100644 --- a/Tests/Base/GetPnPPropertyTests.cs +++ b/Tests/Base/GetPnPPropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class EnsurePropertyTests diff --git a/Tests/Base/GetPnPStoredCredentialTests.cs b/Tests/Base/GetPnPStoredCredentialTests.cs index 7c2b18cc6..4ae859855 100644 --- a/Tests/Base/GetPnPStoredCredentialTests.cs +++ b/Tests/Base/GetPnPStoredCredentialTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class GetStoredCredentialTests diff --git a/Tests/Base/InitializePnPPowerShellAuthenticationTests.cs b/Tests/Base/InitializePnPPowerShellAuthenticationTests.cs index bd3098467..30ea8e810 100644 --- a/Tests/Base/InitializePnPPowerShellAuthenticationTests.cs +++ b/Tests/Base/InitializePnPPowerShellAuthenticationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class InitializePowerShellAuthenticationTests diff --git a/Tests/Base/InvokePnPQueryTests.cs b/Tests/Base/InvokePnPQueryTests.cs index 43a891fc1..45ddd89a5 100644 --- a/Tests/Base/InvokePnPQueryTests.cs +++ b/Tests/Base/InvokePnPQueryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class InvokeQueryTests diff --git a/Tests/Base/NewPnPAzureCertificateTests.cs b/Tests/Base/NewPnPAzureCertificateTests.cs index adc693379..a0b3739cc 100644 --- a/Tests/Base/NewPnPAzureCertificateTests.cs +++ b/Tests/Base/NewPnPAzureCertificateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class NewPnPAdalCertificateTests diff --git a/Tests/Base/RemovePnPStoredCredentialTests.cs b/Tests/Base/RemovePnPStoredCredentialTests.cs index 08c06a844..35be9a822 100644 --- a/Tests/Base/RemovePnPStoredCredentialTests.cs +++ b/Tests/Base/RemovePnPStoredCredentialTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class RemoveStoredCredentialTests diff --git a/Tests/Base/RequestPnPAccessTokenTests.cs b/Tests/Base/RequestPnPAccessTokenTests.cs index b6ea5ef89..faf1a2d55 100644 --- a/Tests/Base/RequestPnPAccessTokenTests.cs +++ b/Tests/Base/RequestPnPAccessTokenTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class RequestAccessTokenTests diff --git a/Tests/Base/SetPnPContextTests.cs b/Tests/Base/SetPnPContextTests.cs index 5c55cf714..1b0e2af8d 100644 --- a/Tests/Base/SetPnPContextTests.cs +++ b/Tests/Base/SetPnPContextTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class SetContextTests diff --git a/Tests/Base/SetPnPTraceLogTests.cs b/Tests/Base/SetPnPTraceLogTests.cs index b13f5c352..2f26f8e24 100644 --- a/Tests/Base/SetPnPTraceLogTests.cs +++ b/Tests/Base/SetPnPTraceLogTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Base +namespace PnP.PowerShell.Tests.Base { [TestClass] public class SetTraceLogTests diff --git a/Tests/Branding/AddPnPApplicationCustomizerTests.cs b/Tests/Branding/AddPnPApplicationCustomizerTests.cs index e71f924c1..369a5c3a0 100644 --- a/Tests/Branding/AddPnPApplicationCustomizerTests.cs +++ b/Tests/Branding/AddPnPApplicationCustomizerTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class AddApplicationCustomizerTests diff --git a/Tests/Branding/AddPnPCustomActionTests.cs b/Tests/Branding/AddPnPCustomActionTests.cs index e220c5530..e9dcdfdea 100644 --- a/Tests/Branding/AddPnPCustomActionTests.cs +++ b/Tests/Branding/AddPnPCustomActionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class AddCustomActionTests diff --git a/Tests/Branding/AddPnPJavaScriptBlockTests.cs b/Tests/Branding/AddPnPJavaScriptBlockTests.cs index fe7180a1b..4b814bbf8 100644 --- a/Tests/Branding/AddPnPJavaScriptBlockTests.cs +++ b/Tests/Branding/AddPnPJavaScriptBlockTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class AddJavaScriptBlockTests diff --git a/Tests/Branding/AddPnPJavaScriptLinkTests.cs b/Tests/Branding/AddPnPJavaScriptLinkTests.cs index b272c2aff..ac91fc0d9 100644 --- a/Tests/Branding/AddPnPJavaScriptLinkTests.cs +++ b/Tests/Branding/AddPnPJavaScriptLinkTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class AddJavaScriptLinkTests diff --git a/Tests/Branding/AddPnPNavigationNodeTests.cs b/Tests/Branding/AddPnPNavigationNodeTests.cs index f085c36a6..bc5d2bc45 100644 --- a/Tests/Branding/AddPnPNavigationNodeTests.cs +++ b/Tests/Branding/AddPnPNavigationNodeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class AddNavigationNodeTests diff --git a/Tests/Branding/DisablePnPResponsiveUITests.cs b/Tests/Branding/DisablePnPResponsiveUITests.cs index 69b9c4727..246a63d97 100644 --- a/Tests/Branding/DisablePnPResponsiveUITests.cs +++ b/Tests/Branding/DisablePnPResponsiveUITests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class DisableResponsiveUITests diff --git a/Tests/Branding/EnablePnPResponsiveUITests.cs b/Tests/Branding/EnablePnPResponsiveUITests.cs index c87f5cfa6..04b03fa22 100644 --- a/Tests/Branding/EnablePnPResponsiveUITests.cs +++ b/Tests/Branding/EnablePnPResponsiveUITests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class EnableResponsiveUITests diff --git a/Tests/Branding/GetPnPApplicationCustomizerTests.cs b/Tests/Branding/GetPnPApplicationCustomizerTests.cs index 598cf7c32..72e2c3e26 100644 --- a/Tests/Branding/GetPnPApplicationCustomizerTests.cs +++ b/Tests/Branding/GetPnPApplicationCustomizerTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetApplicationCustomizerTests diff --git a/Tests/Branding/GetPnPCustomActionTests.cs b/Tests/Branding/GetPnPCustomActionTests.cs index 9fe7f60eb..a5e82d17f 100644 --- a/Tests/Branding/GetPnPCustomActionTests.cs +++ b/Tests/Branding/GetPnPCustomActionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetCustomActionTests diff --git a/Tests/Branding/GetPnPFooterTests.cs b/Tests/Branding/GetPnPFooterTests.cs index f31088c6c..8f6b42077 100644 --- a/Tests/Branding/GetPnPFooterTests.cs +++ b/Tests/Branding/GetPnPFooterTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GettFooterTests diff --git a/Tests/Branding/GetPnPHomePageTests.cs b/Tests/Branding/GetPnPHomePageTests.cs index 0e0b3f67b..ff588ec39 100644 --- a/Tests/Branding/GetPnPHomePageTests.cs +++ b/Tests/Branding/GetPnPHomePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetHomePageTests diff --git a/Tests/Branding/GetPnPJavaScriptLinkTests.cs b/Tests/Branding/GetPnPJavaScriptLinkTests.cs index 38010f50c..8f0afdaf8 100644 --- a/Tests/Branding/GetPnPJavaScriptLinkTests.cs +++ b/Tests/Branding/GetPnPJavaScriptLinkTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetJavaScriptLinkTests diff --git a/Tests/Branding/GetPnPMasterPageTests.cs b/Tests/Branding/GetPnPMasterPageTests.cs index 9080edf96..69ba1665f 100644 --- a/Tests/Branding/GetPnPMasterPageTests.cs +++ b/Tests/Branding/GetPnPMasterPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetMasterPageTests diff --git a/Tests/Branding/GetPnPNavigationNodeTests.cs b/Tests/Branding/GetPnPNavigationNodeTests.cs index f41089831..f27082eb0 100644 --- a/Tests/Branding/GetPnPNavigationNodeTests.cs +++ b/Tests/Branding/GetPnPNavigationNodeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetNavigationNodeTests diff --git a/Tests/Branding/GetPnPThemeTests.cs b/Tests/Branding/GetPnPThemeTests.cs index fc13bcd23..c8b123c25 100644 --- a/Tests/Branding/GetPnPThemeTests.cs +++ b/Tests/Branding/GetPnPThemeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class GetThemeTests diff --git a/Tests/Branding/RemovePnPApplicationCustomizerTests.cs b/Tests/Branding/RemovePnPApplicationCustomizerTests.cs index 3fc8b1cff..e4649ffb0 100644 --- a/Tests/Branding/RemovePnPApplicationCustomizerTests.cs +++ b/Tests/Branding/RemovePnPApplicationCustomizerTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class RemoveApplicationCustomizerTests diff --git a/Tests/Branding/RemovePnPCustomActionTests.cs b/Tests/Branding/RemovePnPCustomActionTests.cs index e14f0afef..cb4f97457 100644 --- a/Tests/Branding/RemovePnPCustomActionTests.cs +++ b/Tests/Branding/RemovePnPCustomActionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class RemoveCustomActionTests diff --git a/Tests/Branding/RemovePnPJavaScriptLinkTests.cs b/Tests/Branding/RemovePnPJavaScriptLinkTests.cs index 15fe3259d..7b531773c 100644 --- a/Tests/Branding/RemovePnPJavaScriptLinkTests.cs +++ b/Tests/Branding/RemovePnPJavaScriptLinkTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class RemoveJavaScriptLinkTests diff --git a/Tests/Branding/RemovePnPNavigationNodeTests.cs b/Tests/Branding/RemovePnPNavigationNodeTests.cs index 1dff956f1..11903c29e 100644 --- a/Tests/Branding/RemovePnPNavigationNodeTests.cs +++ b/Tests/Branding/RemovePnPNavigationNodeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class RemoveNavigationNodeTests diff --git a/Tests/Branding/SetPnPApplicationCustomizerTests.cs b/Tests/Branding/SetPnPApplicationCustomizerTests.cs index 12eb85ca9..9fc614d1a 100644 --- a/Tests/Branding/SetPnPApplicationCustomizerTests.cs +++ b/Tests/Branding/SetPnPApplicationCustomizerTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetApplicationCustomizerTests diff --git a/Tests/Branding/SetPnPFooterTests.cs b/Tests/Branding/SetPnPFooterTests.cs index 2a1493a69..b7016fe7a 100644 --- a/Tests/Branding/SetPnPFooterTests.cs +++ b/Tests/Branding/SetPnPFooterTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetFooterTests diff --git a/Tests/Branding/SetPnPHomePageTests.cs b/Tests/Branding/SetPnPHomePageTests.cs index 898567059..a725cf245 100644 --- a/Tests/Branding/SetPnPHomePageTests.cs +++ b/Tests/Branding/SetPnPHomePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetHomePageTests diff --git a/Tests/Branding/SetPnPMasterPageTests.cs b/Tests/Branding/SetPnPMasterPageTests.cs index 6af0052ec..3e8c2fcda 100644 --- a/Tests/Branding/SetPnPMasterPageTests.cs +++ b/Tests/Branding/SetPnPMasterPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetMasterPageTests diff --git a/Tests/Branding/SetPnPMinimalDownloadStrategyTests.cs b/Tests/Branding/SetPnPMinimalDownloadStrategyTests.cs index 6aa0c8479..d4374f226 100644 --- a/Tests/Branding/SetPnPMinimalDownloadStrategyTests.cs +++ b/Tests/Branding/SetPnPMinimalDownloadStrategyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetMinimalDownloadStrategyTests diff --git a/Tests/Branding/SetPnPThemeTests.cs b/Tests/Branding/SetPnPThemeTests.cs index 91e8e68d3..093515393 100644 --- a/Tests/Branding/SetPnPThemeTests.cs +++ b/Tests/Branding/SetPnPThemeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetThemeTests diff --git a/Tests/Branding/SetPnPWebThemeTests.cs b/Tests/Branding/SetPnPWebThemeTests.cs index 17012bfca..46caadab2 100644 --- a/Tests/Branding/SetPnPWebThemeTests.cs +++ b/Tests/Branding/SetPnPWebThemeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Branding +namespace PnP.PowerShell.Tests.Branding { [TestClass] public class SetWebThemeTests diff --git a/Tests/ClientSidePages/AddPnPClientSidePageSectionTests.cs b/Tests/ClientSidePages/AddPnPClientSidePageSectionTests.cs index f1bbd3de8..9f429fd64 100644 --- a/Tests/ClientSidePages/AddPnPClientSidePageSectionTests.cs +++ b/Tests/ClientSidePages/AddPnPClientSidePageSectionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class AddClientSidePageSectionTests diff --git a/Tests/ClientSidePages/AddPnPClientSidePageTests.cs b/Tests/ClientSidePages/AddPnPClientSidePageTests.cs index 1c47f3a68..71a877c80 100644 --- a/Tests/ClientSidePages/AddPnPClientSidePageTests.cs +++ b/Tests/ClientSidePages/AddPnPClientSidePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class AddClientSidePageTests diff --git a/Tests/ClientSidePages/AddPnPClientSideTextTests.cs b/Tests/ClientSidePages/AddPnPClientSideTextTests.cs index a2c0fb79f..dea6cdb28 100644 --- a/Tests/ClientSidePages/AddPnPClientSideTextTests.cs +++ b/Tests/ClientSidePages/AddPnPClientSideTextTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class AddClientSideTextTests diff --git a/Tests/ClientSidePages/GetPnPAvailableClientSideComponentsTests.cs b/Tests/ClientSidePages/GetPnPAvailableClientSideComponentsTests.cs index 86b76c6d4..957e240f2 100644 --- a/Tests/ClientSidePages/GetPnPAvailableClientSideComponentsTests.cs +++ b/Tests/ClientSidePages/GetPnPAvailableClientSideComponentsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class GetAvailableClientSideComponentsTests diff --git a/Tests/ClientSidePages/GetPnPClientSideComponentTests.cs b/Tests/ClientSidePages/GetPnPClientSideComponentTests.cs index 7bf2903f7..a7d41f2e7 100644 --- a/Tests/ClientSidePages/GetPnPClientSideComponentTests.cs +++ b/Tests/ClientSidePages/GetPnPClientSideComponentTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class GetClientSideControlTests diff --git a/Tests/ClientSidePages/GetPnPClientSidePageTests.cs b/Tests/ClientSidePages/GetPnPClientSidePageTests.cs index acb6af13c..9920f31dd 100644 --- a/Tests/ClientSidePages/GetPnPClientSidePageTests.cs +++ b/Tests/ClientSidePages/GetPnPClientSidePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class GetClientSidePageTests diff --git a/Tests/ClientSidePages/MovePnPClientSideComponentTests.cs b/Tests/ClientSidePages/MovePnPClientSideComponentTests.cs index ce160e252..fd55eac0a 100644 --- a/Tests/ClientSidePages/MovePnPClientSideComponentTests.cs +++ b/Tests/ClientSidePages/MovePnPClientSideComponentTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class MoveClientSideWebPartTests diff --git a/Tests/ClientSidePages/RemovePnPClientSideComponentTests.cs b/Tests/ClientSidePages/RemovePnPClientSideComponentTests.cs index d18c6cfd8..f86ceb47b 100644 --- a/Tests/ClientSidePages/RemovePnPClientSideComponentTests.cs +++ b/Tests/ClientSidePages/RemovePnPClientSideComponentTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class RemoveClientSideComponentTests diff --git a/Tests/ClientSidePages/RemovePnPClientSidePageTests.cs b/Tests/ClientSidePages/RemovePnPClientSidePageTests.cs index 3785b8605..0af5ae06d 100644 --- a/Tests/ClientSidePages/RemovePnPClientSidePageTests.cs +++ b/Tests/ClientSidePages/RemovePnPClientSidePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class RemoveClientSidePageTests diff --git a/Tests/ClientSidePages/SetPnPClientSidePageTests.cs b/Tests/ClientSidePages/SetPnPClientSidePageTests.cs index 07007dc89..d68bd385b 100644 --- a/Tests/ClientSidePages/SetPnPClientSidePageTests.cs +++ b/Tests/ClientSidePages/SetPnPClientSidePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class SetClientSidePageTests diff --git a/Tests/ClientSidePages/SetPnPClientSideTextTests.cs b/Tests/ClientSidePages/SetPnPClientSideTextTests.cs index 4cf532f55..42232cfc7 100644 --- a/Tests/ClientSidePages/SetPnPClientSideTextTests.cs +++ b/Tests/ClientSidePages/SetPnPClientSideTextTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class SetClientSideTextTests diff --git a/Tests/ClientSidePages/SetPnPClientSideWebPartTests.cs b/Tests/ClientSidePages/SetPnPClientSideWebPartTests.cs index 5a49210d6..6672b03c3 100644 --- a/Tests/ClientSidePages/SetPnPClientSideWebPartTests.cs +++ b/Tests/ClientSidePages/SetPnPClientSideWebPartTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ClientSidePages +namespace PnP.PowerShell.Tests.ClientSidePages { [TestClass] public class SetClientSideWebPartTests diff --git a/Tests/ContentTypes/AddPnPContentTypeTests.cs b/Tests/ContentTypes/AddPnPContentTypeTests.cs index 744ccf8b9..11f4ade01 100644 --- a/Tests/ContentTypes/AddPnPContentTypeTests.cs +++ b/Tests/ContentTypes/AddPnPContentTypeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class AddContentTypeTests diff --git a/Tests/ContentTypes/AddPnPContentTypeToListTests.cs b/Tests/ContentTypes/AddPnPContentTypeToListTests.cs index 97c92ffc7..2f498e62c 100644 --- a/Tests/ContentTypes/AddPnPContentTypeToListTests.cs +++ b/Tests/ContentTypes/AddPnPContentTypeToListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class AddContentTypeToListTests diff --git a/Tests/ContentTypes/AddPnPFieldToContentTypeTests.cs b/Tests/ContentTypes/AddPnPFieldToContentTypeTests.cs index 47c94d0b3..7fc669afd 100644 --- a/Tests/ContentTypes/AddPnPFieldToContentTypeTests.cs +++ b/Tests/ContentTypes/AddPnPFieldToContentTypeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class AddFieldToContentTypeTests diff --git a/Tests/ContentTypes/GetPnPContentTypePublishingHubUrlTests.cs b/Tests/ContentTypes/GetPnPContentTypePublishingHubUrlTests.cs index 89b772299..8200956e6 100644 --- a/Tests/ContentTypes/GetPnPContentTypePublishingHubUrlTests.cs +++ b/Tests/ContentTypes/GetPnPContentTypePublishingHubUrlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class GetContentTypePublishingHubTests diff --git a/Tests/ContentTypes/GetPnPContentTypeTests.cs b/Tests/ContentTypes/GetPnPContentTypeTests.cs index 520d33b38..27b80ad42 100644 --- a/Tests/ContentTypes/GetPnPContentTypeTests.cs +++ b/Tests/ContentTypes/GetPnPContentTypeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class GetContentTypeTests diff --git a/Tests/ContentTypes/RemovePnPContentTypeFromListTests.cs b/Tests/ContentTypes/RemovePnPContentTypeFromListTests.cs index ab53945ce..c0f850699 100644 --- a/Tests/ContentTypes/RemovePnPContentTypeFromListTests.cs +++ b/Tests/ContentTypes/RemovePnPContentTypeFromListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class RemoveContentTypeFromListTests diff --git a/Tests/ContentTypes/RemovePnPContentTypeTests.cs b/Tests/ContentTypes/RemovePnPContentTypeTests.cs index 4f2605e35..a6d92681f 100644 --- a/Tests/ContentTypes/RemovePnPContentTypeTests.cs +++ b/Tests/ContentTypes/RemovePnPContentTypeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class RemoveContentTypeTests diff --git a/Tests/ContentTypes/RemovePnPFieldFromContentTypeTests.cs b/Tests/ContentTypes/RemovePnPFieldFromContentTypeTests.cs index 846ad967e..d36cf66c1 100644 --- a/Tests/ContentTypes/RemovePnPFieldFromContentTypeTests.cs +++ b/Tests/ContentTypes/RemovePnPFieldFromContentTypeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class RemoveFieldFromContentTypeTests diff --git a/Tests/ContentTypes/SetPnPDefaultContentTypeToListTests.cs b/Tests/ContentTypes/SetPnPDefaultContentTypeToListTests.cs index ac0bea809..58ce1c278 100644 --- a/Tests/ContentTypes/SetPnPDefaultContentTypeToListTests.cs +++ b/Tests/ContentTypes/SetPnPDefaultContentTypeToListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ContentTypes +namespace PnP.PowerShell.Tests.ContentTypes { [TestClass] public class SetDefaultContentTypeToListTests diff --git a/Tests/Diagnostic/MeasurePnPListTests.cs b/Tests/Diagnostic/MeasurePnPListTests.cs index 2560f75f4..b33ad85d0 100644 --- a/Tests/Diagnostic/MeasurePnPListTests.cs +++ b/Tests/Diagnostic/MeasurePnPListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Diagnostic +namespace PnP.PowerShell.Tests.Diagnostic { [TestClass] public class MeasurePnPListTests diff --git a/Tests/Diagnostic/MeasurePnPResponseTimeTests.cs b/Tests/Diagnostic/MeasurePnPResponseTimeTests.cs index 059a53df0..f8e2d84d3 100644 --- a/Tests/Diagnostic/MeasurePnPResponseTimeTests.cs +++ b/Tests/Diagnostic/MeasurePnPResponseTimeTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Diagnostic +namespace PnP.PowerShell.Tests.Diagnostic { [TestClass] public class MeasureResponseTimeTests diff --git a/Tests/Diagnostic/MeasurePnPWebTests.cs b/Tests/Diagnostic/MeasurePnPWebTests.cs index 8785a53f9..5c9c65922 100644 --- a/Tests/Diagnostic/MeasurePnPWebTests.cs +++ b/Tests/Diagnostic/MeasurePnPWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Diagnostic +namespace PnP.PowerShell.Tests.Diagnostic { [TestClass] public class MeasurePnPWebTests diff --git a/Tests/DocumentSets/AddPnPContentTypeToDocumentSetTests.cs b/Tests/DocumentSets/AddPnPContentTypeToDocumentSetTests.cs index 01aa134a4..548a991c4 100644 --- a/Tests/DocumentSets/AddPnPContentTypeToDocumentSetTests.cs +++ b/Tests/DocumentSets/AddPnPContentTypeToDocumentSetTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.DocumentSets +namespace PnP.PowerShell.Tests.DocumentSets { [TestClass] public class AddContentTypeToDocumentSetTests diff --git a/Tests/DocumentSets/AddPnPDocumentSetTests.cs b/Tests/DocumentSets/AddPnPDocumentSetTests.cs index 2d569a991..d19d0cf65 100644 --- a/Tests/DocumentSets/AddPnPDocumentSetTests.cs +++ b/Tests/DocumentSets/AddPnPDocumentSetTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.DocumentSets +namespace PnP.PowerShell.Tests.DocumentSets { [TestClass] public class AddDocumentSetTests diff --git a/Tests/DocumentSets/GetPnPDocumentSetTemplateTests.cs b/Tests/DocumentSets/GetPnPDocumentSetTemplateTests.cs index 087fc2b15..87a073e9e 100644 --- a/Tests/DocumentSets/GetPnPDocumentSetTemplateTests.cs +++ b/Tests/DocumentSets/GetPnPDocumentSetTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.DocumentSets +namespace PnP.PowerShell.Tests.DocumentSets { [TestClass] public class GetDocumentSetTemplateTests diff --git a/Tests/DocumentSets/RemovePnPContentTypeFromDocumentSetTests.cs b/Tests/DocumentSets/RemovePnPContentTypeFromDocumentSetTests.cs index 2f1e38f11..996b74289 100644 --- a/Tests/DocumentSets/RemovePnPContentTypeFromDocumentSetTests.cs +++ b/Tests/DocumentSets/RemovePnPContentTypeFromDocumentSetTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.DocumentSets +namespace PnP.PowerShell.Tests.DocumentSets { [TestClass] public class RemoveContentTypeFromDocumentSetTests diff --git a/Tests/DocumentSets/SetPnPDocumentSetFieldTests.cs b/Tests/DocumentSets/SetPnPDocumentSetFieldTests.cs index dd9dd473f..9988e8daa 100644 --- a/Tests/DocumentSets/SetPnPDocumentSetFieldTests.cs +++ b/Tests/DocumentSets/SetPnPDocumentSetFieldTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.DocumentSets +namespace PnP.PowerShell.Tests.DocumentSets { [TestClass] public class SetFieldInDocumentSetTests diff --git a/Tests/Events/AddPnPEventReceiverTests.cs b/Tests/Events/AddPnPEventReceiverTests.cs index b8f4dc7d3..7c152b82e 100644 --- a/Tests/Events/AddPnPEventReceiverTests.cs +++ b/Tests/Events/AddPnPEventReceiverTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Events +namespace PnP.PowerShell.Tests.Events { [TestClass] public class AddEventReceiverTests diff --git a/Tests/Events/GetPnPEventReceiverTests.cs b/Tests/Events/GetPnPEventReceiverTests.cs index 95978c25c..047fefe3a 100644 --- a/Tests/Events/GetPnPEventReceiverTests.cs +++ b/Tests/Events/GetPnPEventReceiverTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Events +namespace PnP.PowerShell.Tests.Events { [TestClass] public class GetEventReceiverTests diff --git a/Tests/Events/RemovePnPEventReceiverTests.cs b/Tests/Events/RemovePnPEventReceiverTests.cs index cfaf29dc0..91bf1eb86 100644 --- a/Tests/Events/RemovePnPEventReceiverTests.cs +++ b/Tests/Events/RemovePnPEventReceiverTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Events +namespace PnP.PowerShell.Tests.Events { [TestClass] public class RemoveEventReceiverTests diff --git a/Tests/Extensibility/NewPnPExtensibilityHandlerObjectTests.cs b/Tests/Extensibility/NewPnPExtensibilityHandlerObjectTests.cs index 2e89f1f79..31d320786 100644 --- a/Tests/Extensibility/NewPnPExtensibilityHandlerObjectTests.cs +++ b/Tests/Extensibility/NewPnPExtensibilityHandlerObjectTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Extensibility +namespace PnP.PowerShell.Tests.Extensibility { [TestClass] public class NewExtensibilityHandlerObjectTests diff --git a/Tests/Features/DisablePnPFeatureTests.cs b/Tests/Features/DisablePnPFeatureTests.cs index aa9a6ad3a..2e5248507 100644 --- a/Tests/Features/DisablePnPFeatureTests.cs +++ b/Tests/Features/DisablePnPFeatureTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Features +namespace PnP.PowerShell.Tests.Features { [TestClass] public class DisableFeatureTests diff --git a/Tests/Features/EnablePnPFeatureTests.cs b/Tests/Features/EnablePnPFeatureTests.cs index b22df9a54..e80247b14 100644 --- a/Tests/Features/EnablePnPFeatureTests.cs +++ b/Tests/Features/EnablePnPFeatureTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Features +namespace PnP.PowerShell.Tests.Features { [TestClass] public class EnableFeatureTests diff --git a/Tests/Features/GetPnPFeatureTests.cs b/Tests/Features/GetPnPFeatureTests.cs index 7d4613db9..5a1169764 100644 --- a/Tests/Features/GetPnPFeatureTests.cs +++ b/Tests/Features/GetPnPFeatureTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Features +namespace PnP.PowerShell.Tests.Features { [TestClass] public class GetFeatureTests diff --git a/Tests/Fields/AddPnPFieldFromXmlTests.cs b/Tests/Fields/AddPnPFieldFromXmlTests.cs index 969ab2577..04def478c 100644 --- a/Tests/Fields/AddPnPFieldFromXmlTests.cs +++ b/Tests/Fields/AddPnPFieldFromXmlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class AddFieldFromXmlTests diff --git a/Tests/Fields/AddPnPFieldTests.cs b/Tests/Fields/AddPnPFieldTests.cs index ebc9d7ea0..aa0cda21f 100644 --- a/Tests/Fields/AddPnPFieldTests.cs +++ b/Tests/Fields/AddPnPFieldTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class AddFieldTests diff --git a/Tests/Fields/AddPnPTaxonomyFieldTests.cs b/Tests/Fields/AddPnPTaxonomyFieldTests.cs index 10e3aa8cc..37c0f9571 100644 --- a/Tests/Fields/AddPnPTaxonomyFieldTests.cs +++ b/Tests/Fields/AddPnPTaxonomyFieldTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class AddTaxonomyFieldTests diff --git a/Tests/Fields/GetPnPFieldTests.cs b/Tests/Fields/GetPnPFieldTests.cs index 8d2875fd0..258a83cc5 100644 --- a/Tests/Fields/GetPnPFieldTests.cs +++ b/Tests/Fields/GetPnPFieldTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class GetFieldTests diff --git a/Tests/Fields/RemovePnPFieldTests.cs b/Tests/Fields/RemovePnPFieldTests.cs index 40fcc5dd8..9bd09db17 100644 --- a/Tests/Fields/RemovePnPFieldTests.cs +++ b/Tests/Fields/RemovePnPFieldTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class RemoveFieldTests diff --git a/Tests/Fields/SetPnPFieldTests.cs b/Tests/Fields/SetPnPFieldTests.cs index 0ce8f84fa..902c84935 100644 --- a/Tests/Fields/SetPnPFieldTests.cs +++ b/Tests/Fields/SetPnPFieldTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class SetFieldTests diff --git a/Tests/Fields/SetPnPViewTests.cs b/Tests/Fields/SetPnPViewTests.cs index 649921f33..751b97201 100644 --- a/Tests/Fields/SetPnPViewTests.cs +++ b/Tests/Fields/SetPnPViewTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Fields +namespace PnP.PowerShell.Tests.Fields { [TestClass] public class SetViewTests diff --git a/Tests/Files/AddPnPFileTests.cs b/Tests/Files/AddPnPFileTests.cs index 2074ea8a2..7bebc65c5 100644 --- a/Tests/Files/AddPnPFileTests.cs +++ b/Tests/Files/AddPnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class AddFileTests diff --git a/Tests/Files/AddPnPFolderTests.cs b/Tests/Files/AddPnPFolderTests.cs index 3a7ff2aaa..2320910a7 100644 --- a/Tests/Files/AddPnPFolderTests.cs +++ b/Tests/Files/AddPnPFolderTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class AddFolderTests diff --git a/Tests/Files/CopyPnPFileTests.cs b/Tests/Files/CopyPnPFileTests.cs index 04ced9266..8fe62b24b 100644 --- a/Tests/Files/CopyPnPFileTests.cs +++ b/Tests/Files/CopyPnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class CopyFileTests diff --git a/Tests/Files/FindPnPFileTests.cs b/Tests/Files/FindPnPFileTests.cs index cf0abc525..e0b0146b8 100644 --- a/Tests/Files/FindPnPFileTests.cs +++ b/Tests/Files/FindPnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class FindFileTests diff --git a/Tests/Files/GetPnPFileTests.cs b/Tests/Files/GetPnPFileTests.cs index 1f7c92731..ffb379627 100644 --- a/Tests/Files/GetPnPFileTests.cs +++ b/Tests/Files/GetPnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class GetFileTests diff --git a/Tests/Files/GetPnPFolderItemTests.cs b/Tests/Files/GetPnPFolderItemTests.cs index fdfb0e70d..23ba03a9a 100644 --- a/Tests/Files/GetPnPFolderItemTests.cs +++ b/Tests/Files/GetPnPFolderItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class GetFolderItemTests diff --git a/Tests/Files/GetPnPFolderTests.cs b/Tests/Files/GetPnPFolderTests.cs index c3db98937..df48a70dd 100644 --- a/Tests/Files/GetPnPFolderTests.cs +++ b/Tests/Files/GetPnPFolderTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class GetFolderTests diff --git a/Tests/Files/MovePnPFileTests.cs b/Tests/Files/MovePnPFileTests.cs index 8a91c7162..b5cbb9043 100644 --- a/Tests/Files/MovePnPFileTests.cs +++ b/Tests/Files/MovePnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class MoveFileTests diff --git a/Tests/Files/MovePnPFolderTests.cs b/Tests/Files/MovePnPFolderTests.cs index dd765d158..5dd7463c4 100644 --- a/Tests/Files/MovePnPFolderTests.cs +++ b/Tests/Files/MovePnPFolderTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class MoveFolderTests diff --git a/Tests/Files/RemovePnPFileTests.cs b/Tests/Files/RemovePnPFileTests.cs index 967e9c6d9..67f0ad747 100644 --- a/Tests/Files/RemovePnPFileTests.cs +++ b/Tests/Files/RemovePnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class RemoveFileTests diff --git a/Tests/Files/RemovePnPFolderTests.cs b/Tests/Files/RemovePnPFolderTests.cs index 756e2b646..84f7ef1ca 100644 --- a/Tests/Files/RemovePnPFolderTests.cs +++ b/Tests/Files/RemovePnPFolderTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class RemoveFolderTests diff --git a/Tests/Files/RenamePnPFileTests.cs b/Tests/Files/RenamePnPFileTests.cs index 8a86fdbb7..a15225852 100644 --- a/Tests/Files/RenamePnPFileTests.cs +++ b/Tests/Files/RenamePnPFileTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class RenameFileTests diff --git a/Tests/Files/RenamePnPFolderTests.cs b/Tests/Files/RenamePnPFolderTests.cs index 34da4abc1..7ec1a1627 100644 --- a/Tests/Files/RenamePnPFolderTests.cs +++ b/Tests/Files/RenamePnPFolderTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class RenameFolderTests diff --git a/Tests/Files/ResetPnPFileVersionTests.cs b/Tests/Files/ResetPnPFileVersionTests.cs index d9f28eea6..fa4109292 100644 --- a/Tests/Files/ResetPnPFileVersionTests.cs +++ b/Tests/Files/ResetPnPFileVersionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class ResetFileVersionTests diff --git a/Tests/Files/ResolvePnPFolderTests.cs b/Tests/Files/ResolvePnPFolderTests.cs index 80b2c2b9c..73c348183 100644 --- a/Tests/Files/ResolvePnPFolderTests.cs +++ b/Tests/Files/ResolvePnPFolderTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class ResolveFolderTests diff --git a/Tests/Files/SetPnPFileCheckedInTests.cs b/Tests/Files/SetPnPFileCheckedInTests.cs index dd98f5fcb..d30340e5e 100644 --- a/Tests/Files/SetPnPFileCheckedInTests.cs +++ b/Tests/Files/SetPnPFileCheckedInTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class SetFileCheckedInTests diff --git a/Tests/Files/SetPnPFileCheckedOutTests.cs b/Tests/Files/SetPnPFileCheckedOutTests.cs index 4d5ebf96c..58c3c836f 100644 --- a/Tests/Files/SetPnPFileCheckedOutTests.cs +++ b/Tests/Files/SetPnPFileCheckedOutTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class SetFileCheckedOutTests diff --git a/Tests/Files/SetPnPFolderPermissionTests.cs b/Tests/Files/SetPnPFolderPermissionTests.cs index 03995b05b..8719d336d 100644 --- a/Tests/Files/SetPnPFolderPermissionTests.cs +++ b/Tests/Files/SetPnPFolderPermissionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Files +namespace PnP.PowerShell.Tests.Files { [TestClass] public class SetFolderPermissionTests diff --git a/Tests/Graph/AddPnPSiteClassificationTests.cs b/Tests/Graph/AddPnPSiteClassificationTests.cs index 627fa2a6b..de49566db 100644 --- a/Tests/Graph/AddPnPSiteClassificationTests.cs +++ b/Tests/Graph/AddPnPSiteClassificationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class AddSiteClassificationTests diff --git a/Tests/Graph/DisablePnPSiteClassificationTests.cs b/Tests/Graph/DisablePnPSiteClassificationTests.cs index 46b799260..0194a70c7 100644 --- a/Tests/Graph/DisablePnPSiteClassificationTests.cs +++ b/Tests/Graph/DisablePnPSiteClassificationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class DisableSiteClassificationTests diff --git a/Tests/Graph/EnablePnPSiteClassificationTests.cs b/Tests/Graph/EnablePnPSiteClassificationTests.cs index 69b8e3ce2..e53eeef34 100644 --- a/Tests/Graph/EnablePnPSiteClassificationTests.cs +++ b/Tests/Graph/EnablePnPSiteClassificationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class EnableSiteClassificationTests diff --git a/Tests/Graph/GetPnPAADUserTests.cs b/Tests/Graph/GetPnPAADUserTests.cs index 1e66a919f..7112797f5 100644 --- a/Tests/Graph/GetPnPAADUserTests.cs +++ b/Tests/Graph/GetPnPAADUserTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetAADUserTests diff --git a/Tests/Graph/GetPnPDeletedUnifiedGroupTests.cs b/Tests/Graph/GetPnPDeletedUnifiedGroupTests.cs index 289be366f..0e67332ee 100644 --- a/Tests/Graph/GetPnPDeletedUnifiedGroupTests.cs +++ b/Tests/Graph/GetPnPDeletedUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetDeletedUnifiedGroupTests diff --git a/Tests/Graph/GetPnPGraphSubscriptionTests.cs b/Tests/Graph/GetPnPGraphSubscriptionTests.cs index 660baa330..494d263c5 100644 --- a/Tests/Graph/GetPnPGraphSubscriptionTests.cs +++ b/Tests/Graph/GetPnPGraphSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetGraphSubscriptionTests diff --git a/Tests/Graph/GetPnPSiteClassificationTests.cs b/Tests/Graph/GetPnPSiteClassificationTests.cs index 6aef7851f..f565e62ec 100644 --- a/Tests/Graph/GetPnPSiteClassificationTests.cs +++ b/Tests/Graph/GetPnPSiteClassificationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetSiteClassificationTests diff --git a/Tests/Graph/GetPnPUnifiedGroupMembersTests.cs b/Tests/Graph/GetPnPUnifiedGroupMembersTests.cs index 5e3bfde1a..9cc40c72a 100644 --- a/Tests/Graph/GetPnPUnifiedGroupMembersTests.cs +++ b/Tests/Graph/GetPnPUnifiedGroupMembersTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetUnifiedGroupMembersTests diff --git a/Tests/Graph/GetPnPUnifiedGroupOwnersTests.cs b/Tests/Graph/GetPnPUnifiedGroupOwnersTests.cs index f8a39c1c2..19deb2084 100644 --- a/Tests/Graph/GetPnPUnifiedGroupOwnersTests.cs +++ b/Tests/Graph/GetPnPUnifiedGroupOwnersTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetUnifiedGroupOwnersTests diff --git a/Tests/Graph/GetPnPUnifiedGroupTests.cs b/Tests/Graph/GetPnPUnifiedGroupTests.cs index 75323cc15..4f7a078a9 100644 --- a/Tests/Graph/GetPnPUnifiedGroupTests.cs +++ b/Tests/Graph/GetPnPUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class GetUnifiedGroupTests diff --git a/Tests/Graph/NewPnPGraphSubscriptionTests.cs b/Tests/Graph/NewPnPGraphSubscriptionTests.cs index 9029bf20e..4040dc6d4 100644 --- a/Tests/Graph/NewPnPGraphSubscriptionTests.cs +++ b/Tests/Graph/NewPnPGraphSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class NewGraphSubscriptionTests diff --git a/Tests/Graph/NewPnPUnifiedGroupTests.cs b/Tests/Graph/NewPnPUnifiedGroupTests.cs index 0312f647b..4348a33af 100644 --- a/Tests/Graph/NewPnPUnifiedGroupTests.cs +++ b/Tests/Graph/NewPnPUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class NewPnPUnifiedGroupTests diff --git a/Tests/Graph/RemovePnPDeletedUnifiedGroupTests.cs b/Tests/Graph/RemovePnPDeletedUnifiedGroupTests.cs index bb7aeeaa1..5357552f8 100644 --- a/Tests/Graph/RemovePnPDeletedUnifiedGroupTests.cs +++ b/Tests/Graph/RemovePnPDeletedUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class RemoveDeletedUnifiedGroupTests diff --git a/Tests/Graph/RemovePnPGraphSubscriptionTests.cs b/Tests/Graph/RemovePnPGraphSubscriptionTests.cs index e24a6d48e..50c47db3e 100644 --- a/Tests/Graph/RemovePnPGraphSubscriptionTests.cs +++ b/Tests/Graph/RemovePnPGraphSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class RemoveGraphSubscriptionTests diff --git a/Tests/Graph/RemovePnPSiteClassificationTests.cs b/Tests/Graph/RemovePnPSiteClassificationTests.cs index f57669ac1..df69732a5 100644 --- a/Tests/Graph/RemovePnPSiteClassificationTests.cs +++ b/Tests/Graph/RemovePnPSiteClassificationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class RemoveSiteClassificationTests diff --git a/Tests/Graph/RemovePnPUnifiedGroupTests.cs b/Tests/Graph/RemovePnPUnifiedGroupTests.cs index d472a1689..6d479da65 100644 --- a/Tests/Graph/RemovePnPUnifiedGroupTests.cs +++ b/Tests/Graph/RemovePnPUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class RemoveUnifiedGroupTests diff --git a/Tests/Graph/ResetPnPUnifiedGroupExpirationTests.cs b/Tests/Graph/ResetPnPUnifiedGroupExpirationTests.cs index 30fd3643c..494a6c3cb 100644 --- a/Tests/Graph/ResetPnPUnifiedGroupExpirationTests.cs +++ b/Tests/Graph/ResetPnPUnifiedGroupExpirationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class ResetUnifiedGroupExpirationTests diff --git a/Tests/Graph/RestorePnPDeletedUnifiedGroupTests.cs b/Tests/Graph/RestorePnPDeletedUnifiedGroupTests.cs index 8ec2ff5d0..08d8f18b2 100644 --- a/Tests/Graph/RestorePnPDeletedUnifiedGroupTests.cs +++ b/Tests/Graph/RestorePnPDeletedUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class RestoreDeletedUnifiedGroupTests diff --git a/Tests/Graph/SetPnPGraphSubscriptionTests.cs b/Tests/Graph/SetPnPGraphSubscriptionTests.cs index 98238a7ea..58538f06c 100644 --- a/Tests/Graph/SetPnPGraphSubscriptionTests.cs +++ b/Tests/Graph/SetPnPGraphSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class SetGraphSubscriptionTests diff --git a/Tests/Graph/SetPnPUnifiedGroupTests.cs b/Tests/Graph/SetPnPUnifiedGroupTests.cs index b363c938d..fcf8daef9 100644 --- a/Tests/Graph/SetPnPUnifiedGroupTests.cs +++ b/Tests/Graph/SetPnPUnifiedGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class SetUnifiedGroupTests diff --git a/Tests/Graph/UpdatePnPSiteClassificationTests.cs b/Tests/Graph/UpdatePnPSiteClassificationTests.cs index 2fe82cba3..92c592842 100644 --- a/Tests/Graph/UpdatePnPSiteClassificationTests.cs +++ b/Tests/Graph/UpdatePnPSiteClassificationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Graph +namespace PnP.PowerShell.Tests.Graph { [TestClass] public class UpdateSiteClassificationTests diff --git a/Tests/InformationManagement/GetPnPLabelTests.cs b/Tests/InformationManagement/GetPnPLabelTests.cs index e8d64ebe7..da231cc2b 100644 --- a/Tests/InformationManagement/GetPnPLabelTests.cs +++ b/Tests/InformationManagement/GetPnPLabelTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class GetLabelTests diff --git a/Tests/InformationManagement/GetPnPListInformationRightsManagementTests.cs b/Tests/InformationManagement/GetPnPListInformationRightsManagementTests.cs index edd8810de..1d2787e89 100644 --- a/Tests/InformationManagement/GetPnPListInformationRightsManagementTests.cs +++ b/Tests/InformationManagement/GetPnPListInformationRightsManagementTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class GetListInformationRightsManagementTests diff --git a/Tests/InformationManagement/GetPnPSiteClosureTests.cs b/Tests/InformationManagement/GetPnPSiteClosureTests.cs index 59c64b4a7..73fd51b75 100644 --- a/Tests/InformationManagement/GetPnPSiteClosureTests.cs +++ b/Tests/InformationManagement/GetPnPSiteClosureTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class GetSiteClosureTests diff --git a/Tests/InformationManagement/GetPnPSitePolicyTests.cs b/Tests/InformationManagement/GetPnPSitePolicyTests.cs index 83c814d33..974389124 100644 --- a/Tests/InformationManagement/GetPnPSitePolicyTests.cs +++ b/Tests/InformationManagement/GetPnPSitePolicyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class GetSitePolicyTests diff --git a/Tests/InformationManagement/ResetPnPLabelTests.cs b/Tests/InformationManagement/ResetPnPLabelTests.cs index 3999c9c02..f007a6f37 100644 --- a/Tests/InformationManagement/ResetPnPLabelTests.cs +++ b/Tests/InformationManagement/ResetPnPLabelTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class ResetLabelTests diff --git a/Tests/InformationManagement/SetPnPLabelTests.cs b/Tests/InformationManagement/SetPnPLabelTests.cs index 758d0a084..58cb48a91 100644 --- a/Tests/InformationManagement/SetPnPLabelTests.cs +++ b/Tests/InformationManagement/SetPnPLabelTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class SetLabelTests diff --git a/Tests/InformationManagement/SetPnPListInformationRightsManagementTests.cs b/Tests/InformationManagement/SetPnPListInformationRightsManagementTests.cs index d1385e5ce..c34efd29b 100644 --- a/Tests/InformationManagement/SetPnPListInformationRightsManagementTests.cs +++ b/Tests/InformationManagement/SetPnPListInformationRightsManagementTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class SetListInformationRightsManagementTests diff --git a/Tests/InformationManagement/SetPnPSiteClosureTests.cs b/Tests/InformationManagement/SetPnPSiteClosureTests.cs index 51f969134..43886d0b5 100644 --- a/Tests/InformationManagement/SetPnPSiteClosureTests.cs +++ b/Tests/InformationManagement/SetPnPSiteClosureTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class SetSiteClosureTests diff --git a/Tests/InformationManagement/SetPnPSitePolicyTests.cs b/Tests/InformationManagement/SetPnPSitePolicyTests.cs index c18b0f269..05ff785fa 100644 --- a/Tests/InformationManagement/SetPnPSitePolicyTests.cs +++ b/Tests/InformationManagement/SetPnPSitePolicyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.InformationManagement +namespace PnP.PowerShell.Tests.InformationManagement { [TestClass] public class ApplySitePolicyTests diff --git a/Tests/Lists/AddPnPListItemTests.cs b/Tests/Lists/AddPnPListItemTests.cs index 912ec40db..7b05e24f7 100644 --- a/Tests/Lists/AddPnPListItemTests.cs +++ b/Tests/Lists/AddPnPListItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class AddListItemTests diff --git a/Tests/Lists/AddPnPViewTests.cs b/Tests/Lists/AddPnPViewTests.cs index 1c3971d29..d14ee2333 100644 --- a/Tests/Lists/AddPnPViewTests.cs +++ b/Tests/Lists/AddPnPViewTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class AddViewTests diff --git a/Tests/Lists/ClearPnPDefaultColumnValuesTests.cs b/Tests/Lists/ClearPnPDefaultColumnValuesTests.cs index 729565d4e..709928374 100644 --- a/Tests/Lists/ClearPnPDefaultColumnValuesTests.cs +++ b/Tests/Lists/ClearPnPDefaultColumnValuesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class ClearDefaultColumnValuesTests diff --git a/Tests/Lists/GetPnPDefaultColumnValuesTests.cs b/Tests/Lists/GetPnPDefaultColumnValuesTests.cs index 061c1e753..f9562bfbe 100644 --- a/Tests/Lists/GetPnPDefaultColumnValuesTests.cs +++ b/Tests/Lists/GetPnPDefaultColumnValuesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class GetDefaultColumnValuesTests diff --git a/Tests/Lists/GetPnPListItemTests.cs b/Tests/Lists/GetPnPListItemTests.cs index 405a2b773..17a1ba500 100644 --- a/Tests/Lists/GetPnPListItemTests.cs +++ b/Tests/Lists/GetPnPListItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class GetListItemTests diff --git a/Tests/Lists/GetPnPListTests.cs b/Tests/Lists/GetPnPListTests.cs index 3c7461310..6ece35199 100644 --- a/Tests/Lists/GetPnPListTests.cs +++ b/Tests/Lists/GetPnPListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class GetListTests diff --git a/Tests/Lists/GetPnPViewTests.cs b/Tests/Lists/GetPnPViewTests.cs index 1e32b50bb..75119bea2 100644 --- a/Tests/Lists/GetPnPViewTests.cs +++ b/Tests/Lists/GetPnPViewTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class GetViewTests diff --git a/Tests/Lists/MovePnPListItemToRecycleBinTests.cs b/Tests/Lists/MovePnPListItemToRecycleBinTests.cs index d54d211e0..532e04e81 100644 --- a/Tests/Lists/MovePnPListItemToRecycleBinTests.cs +++ b/Tests/Lists/MovePnPListItemToRecycleBinTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class MoveListItemToRecycleBinTests diff --git a/Tests/Lists/NewPnPListTests.cs b/Tests/Lists/NewPnPListTests.cs index b5a7920cc..545609390 100644 --- a/Tests/Lists/NewPnPListTests.cs +++ b/Tests/Lists/NewPnPListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class NewListTests diff --git a/Tests/Lists/RemovePnPListItemTests.cs b/Tests/Lists/RemovePnPListItemTests.cs index 378c23201..4c176926d 100644 --- a/Tests/Lists/RemovePnPListItemTests.cs +++ b/Tests/Lists/RemovePnPListItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class RemoveListItemTests diff --git a/Tests/Lists/RemovePnPListTests.cs b/Tests/Lists/RemovePnPListTests.cs index eb51d6d48..ba2da1361 100644 --- a/Tests/Lists/RemovePnPListTests.cs +++ b/Tests/Lists/RemovePnPListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class RemoveListTests diff --git a/Tests/Lists/RemovePnPViewTests.cs b/Tests/Lists/RemovePnPViewTests.cs index bf72ea488..c51b2fb64 100644 --- a/Tests/Lists/RemovePnPViewTests.cs +++ b/Tests/Lists/RemovePnPViewTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class RemoveViewTests diff --git a/Tests/Lists/RequestPnPReIndexListTests.cs b/Tests/Lists/RequestPnPReIndexListTests.cs index 31620fdae..96d861801 100644 --- a/Tests/Lists/RequestPnPReIndexListTests.cs +++ b/Tests/Lists/RequestPnPReIndexListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class RequestReIndexListTests diff --git a/Tests/Lists/SetPnPDefaultColumnValuesTests.cs b/Tests/Lists/SetPnPDefaultColumnValuesTests.cs index 50887f675..126d6aa03 100644 --- a/Tests/Lists/SetPnPDefaultColumnValuesTests.cs +++ b/Tests/Lists/SetPnPDefaultColumnValuesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class SetDefaultColumnValuesTests diff --git a/Tests/Lists/SetPnPListItemPermissionTests.cs b/Tests/Lists/SetPnPListItemPermissionTests.cs index 085dcf52c..7607ea34e 100644 --- a/Tests/Lists/SetPnPListItemPermissionTests.cs +++ b/Tests/Lists/SetPnPListItemPermissionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class SetListItemPermissionTests diff --git a/Tests/Lists/SetPnPListItemTests.cs b/Tests/Lists/SetPnPListItemTests.cs index 9213ed169..9eb266935 100644 --- a/Tests/Lists/SetPnPListItemTests.cs +++ b/Tests/Lists/SetPnPListItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class SetListItemTests diff --git a/Tests/Lists/SetPnPListPermissionTests.cs b/Tests/Lists/SetPnPListPermissionTests.cs index 7c96ff1d1..130a34ac6 100644 --- a/Tests/Lists/SetPnPListPermissionTests.cs +++ b/Tests/Lists/SetPnPListPermissionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class SetListPermissionTests diff --git a/Tests/Lists/SetPnPListTests.cs b/Tests/Lists/SetPnPListTests.cs index 17a1bded0..ec7192072 100644 --- a/Tests/Lists/SetPnPListTests.cs +++ b/Tests/Lists/SetPnPListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Lists +namespace PnP.PowerShell.Tests.Lists { [TestClass] public class SetListTests diff --git a/Tests/ManagementApi/GetPnPManagementApiAccessTokenTests.cs b/Tests/ManagementApi/GetPnPManagementApiAccessTokenTests.cs index 54e6c6490..9415b14be 100644 --- a/Tests/ManagementApi/GetPnPManagementApiAccessTokenTests.cs +++ b/Tests/ManagementApi/GetPnPManagementApiAccessTokenTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetManagementApiAccessTokenTests diff --git a/Tests/ManagementApi/GetPnPOffice365CurrentServiceStatusTests.cs b/Tests/ManagementApi/GetPnPOffice365CurrentServiceStatusTests.cs index db998bf6b..d11cd0f23 100644 --- a/Tests/ManagementApi/GetPnPOffice365CurrentServiceStatusTests.cs +++ b/Tests/ManagementApi/GetPnPOffice365CurrentServiceStatusTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetOffice365CurrentServiceStatusTests diff --git a/Tests/ManagementApi/GetPnPOffice365HistoricalServiceStatusTests.cs b/Tests/ManagementApi/GetPnPOffice365HistoricalServiceStatusTests.cs index 8771152f5..c29d955af 100644 --- a/Tests/ManagementApi/GetPnPOffice365HistoricalServiceStatusTests.cs +++ b/Tests/ManagementApi/GetPnPOffice365HistoricalServiceStatusTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetOffice365HistoricalServiceStatusTests diff --git a/Tests/ManagementApi/GetPnPOffice365ServiceMessageTests.cs b/Tests/ManagementApi/GetPnPOffice365ServiceMessageTests.cs index 1ce98f798..594525727 100644 --- a/Tests/ManagementApi/GetPnPOffice365ServiceMessageTests.cs +++ b/Tests/ManagementApi/GetPnPOffice365ServiceMessageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetOffice365ServiceMessageTests diff --git a/Tests/ManagementApi/GetPnPOffice365ServicesTests.cs b/Tests/ManagementApi/GetPnPOffice365ServicesTests.cs index 977f1ff9a..0adbc2e48 100644 --- a/Tests/ManagementApi/GetPnPOffice365ServicesTests.cs +++ b/Tests/ManagementApi/GetPnPOffice365ServicesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetOffice365ServicesTests diff --git a/Tests/ManagementApi/GetPnPOfficeManagementApiAccessTokenTests.cs b/Tests/ManagementApi/GetPnPOfficeManagementApiAccessTokenTests.cs index 8b30bdb59..0bbeca6fd 100644 --- a/Tests/ManagementApi/GetPnPOfficeManagementApiAccessTokenTests.cs +++ b/Tests/ManagementApi/GetPnPOfficeManagementApiAccessTokenTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetOfficeManagementApiAccessTokenTests diff --git a/Tests/ManagementApi/GetPnPUnifiedAuditLogTests.cs b/Tests/ManagementApi/GetPnPUnifiedAuditLogTests.cs index d5ebaf952..e0d6fc91a 100644 --- a/Tests/ManagementApi/GetPnPUnifiedAuditLogTests.cs +++ b/Tests/ManagementApi/GetPnPUnifiedAuditLogTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.ManagementApi +namespace PnP.PowerShell.Tests.ManagementApi { [TestClass] public class GetUnifiedAuditLogTests diff --git a/Tests/OriginalTests/AdminTests.cs b/Tests/OriginalTests/AdminTests.cs index d8af0a2e9..c8d43d3df 100644 --- a/Tests/OriginalTests/AdminTests.cs +++ b/Tests/OriginalTests/AdminTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class GetTenantSiteTests diff --git a/Tests/OriginalTests/BaseTests.cs b/Tests/OriginalTests/BaseTests.cs index c0eb329ce..c6cf39f1a 100644 --- a/Tests/OriginalTests/BaseTests.cs +++ b/Tests/OriginalTests/BaseTests.cs @@ -5,10 +5,10 @@ using System.Configuration; using System.Linq.Expressions; using Microsoft.SharePoint.Client; -using SharePointPnP.PowerShell.Commands.Utilities; +using PnP.PowerShell.Commands.Utilities; using System.Linq; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class BaseTests @@ -137,7 +137,7 @@ public void IncludesTest() var type = typeof(List); - var exp2 = (Expression>)SharePointPnP.PowerShell.Commands.Utilities.DynamicExpression.ParseLambda(type, typeof(object), "RootFolder.ServerRelativeUrl", null); + var exp2 = (Expression>)PnP.PowerShell.Commands.Utilities.DynamicExpression.ParseLambda(type, typeof(object), "RootFolder.ServerRelativeUrl", null); //var exp = Expression.Lambda>(Expression.Convert(body, typeof(object)), exp2); diff --git a/Tests/OriginalTests/BrandingTests.cs b/Tests/OriginalTests/BrandingTests.cs index 9787d047a..156a6496a 100644 --- a/Tests/OriginalTests/BrandingTests.cs +++ b/Tests/OriginalTests/BrandingTests.cs @@ -5,7 +5,7 @@ using System.Linq; using OfficeDevPnP.Core.Enums; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class BrandingTests diff --git a/Tests/OriginalTests/ClientSidePagesTests.cs b/Tests/OriginalTests/ClientSidePagesTests.cs index 153cb1c87..6ba42dde7 100644 --- a/Tests/OriginalTests/ClientSidePagesTests.cs +++ b/Tests/OriginalTests/ClientSidePagesTests.cs @@ -7,7 +7,7 @@ using OfficeDevPnP.Core.Pages; using System.Collections; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class ClientSidePagesTests diff --git a/Tests/OriginalTests/ContentTypeTests.cs b/Tests/OriginalTests/ContentTypeTests.cs index ee472bec2..5ffa93978 100644 --- a/Tests/OriginalTests/ContentTypeTests.cs +++ b/Tests/OriginalTests/ContentTypeTests.cs @@ -4,7 +4,7 @@ using Microsoft.SharePoint.Client; using System.Linq; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class ContentTypeTests diff --git a/Tests/OriginalTests/DiagnosticTests.cs b/Tests/OriginalTests/DiagnosticTests.cs index 5ecc0eb00..63d6616c1 100644 --- a/Tests/OriginalTests/DiagnosticTests.cs +++ b/Tests/OriginalTests/DiagnosticTests.cs @@ -2,7 +2,7 @@ using System.Management.Automation.Runspaces; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class DiagnosticTests diff --git a/Tests/OriginalTests/EventReceiverTests.cs b/Tests/OriginalTests/EventReceiverTests.cs index 1d27cd78e..dfcd1128a 100644 --- a/Tests/OriginalTests/EventReceiverTests.cs +++ b/Tests/OriginalTests/EventReceiverTests.cs @@ -4,7 +4,7 @@ using Microsoft.SharePoint.Client; using System.Linq; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class EventReceiverTests diff --git a/Tests/OriginalTests/FeatureTests.cs b/Tests/OriginalTests/FeatureTests.cs index 9e654a891..426b82b33 100644 --- a/Tests/OriginalTests/FeatureTests.cs +++ b/Tests/OriginalTests/FeatureTests.cs @@ -5,7 +5,7 @@ using System.Linq; using Core = OfficeDevPnP.Core; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class FeatureTests diff --git a/Tests/OriginalTests/FieldsTests.cs b/Tests/OriginalTests/FieldsTests.cs index e3b1409a8..2a5fdd7d0 100644 --- a/Tests/OriginalTests/FieldsTests.cs +++ b/Tests/OriginalTests/FieldsTests.cs @@ -5,7 +5,7 @@ using System.Linq; using OfficeDevPnP.Core.Entities; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class FieldsTests diff --git a/Tests/OriginalTests/FilesTest.cs b/Tests/OriginalTests/FilesTest.cs index df3beee64..b909f0ace 100644 --- a/Tests/OriginalTests/FilesTest.cs +++ b/Tests/OriginalTests/FilesTest.cs @@ -7,7 +7,7 @@ using System.Linq; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class FilesTests diff --git a/Tests/OriginalTests/GraphTests.cs b/Tests/OriginalTests/GraphTests.cs index 3ccb6e23c..62d9111d6 100644 --- a/Tests/OriginalTests/GraphTests.cs +++ b/Tests/OriginalTests/GraphTests.cs @@ -2,7 +2,7 @@ using System.Management.Automation.Runspaces; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class GraphTests diff --git a/Tests/OriginalTests/InvokeWebActionTest.cs b/Tests/OriginalTests/InvokeWebActionTest.cs index 564e90a62..66b2194b6 100644 --- a/Tests/OriginalTests/InvokeWebActionTest.cs +++ b/Tests/OriginalTests/InvokeWebActionTest.cs @@ -4,12 +4,12 @@ using System.Management.Automation.Runspaces; using System.Collections; using System.Linq; -using SharePointPnP.PowerShell.Tests; +using PnP.PowerShell.Tests; using System.Collections.Generic; -using SharePointPnP.PowerShell.Commands.InvokeAction; +using PnP.PowerShell.Commands.InvokeAction; using System.Threading; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class InvokeWebActionTest diff --git a/Tests/OriginalTests/ListDataRowProvisioningTemplate.cs b/Tests/OriginalTests/ListDataRowProvisioningTemplate.cs index 500cc7351..a5bbb450f 100644 --- a/Tests/OriginalTests/ListDataRowProvisioningTemplate.cs +++ b/Tests/OriginalTests/ListDataRowProvisioningTemplate.cs @@ -7,7 +7,7 @@ using OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml; using System.Collections.Generic; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { /// /// Class used to test pulling datarows from a list into a template file diff --git a/Tests/OriginalTests/ListsTests.cs b/Tests/OriginalTests/ListsTests.cs index 9eb3a8465..3f88d1d14 100644 --- a/Tests/OriginalTests/ListsTests.cs +++ b/Tests/OriginalTests/ListsTests.cs @@ -6,7 +6,7 @@ using System.Linq; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class ListsTests diff --git a/Tests/OriginalTests/PrincipalsTests.cs b/Tests/OriginalTests/PrincipalsTests.cs index dffda2020..2fe3e66e5 100644 --- a/Tests/OriginalTests/PrincipalsTests.cs +++ b/Tests/OriginalTests/PrincipalsTests.cs @@ -3,9 +3,9 @@ using Microsoft.SharePoint.Client; using System.Management.Automation.Runspaces; using System.Linq; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class PrincipalsTests diff --git a/Tests/OriginalTests/ProvisioningTemplateFromFolderTest.cs b/Tests/OriginalTests/ProvisioningTemplateFromFolderTest.cs index bf14a5419..0420e1d23 100644 --- a/Tests/OriginalTests/ProvisioningTemplateFromFolderTest.cs +++ b/Tests/OriginalTests/ProvisioningTemplateFromFolderTest.cs @@ -5,7 +5,7 @@ using Microsoft.SharePoint.Client; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { /// /// Class used to test .pnp generation commandlets diff --git a/Tests/OriginalTests/ProvisioningTemplateTests.cs b/Tests/OriginalTests/ProvisioningTemplateTests.cs index 27148c88c..f160aafa6 100644 --- a/Tests/OriginalTests/ProvisioningTemplateTests.cs +++ b/Tests/OriginalTests/ProvisioningTemplateTests.cs @@ -4,7 +4,7 @@ using System.Management.Automation.Runspaces; using System.Xml; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class ProvisioningTemplateTests diff --git a/Tests/OriginalTests/WebPartsTests.cs b/Tests/OriginalTests/WebPartsTests.cs index e37de1f6b..feed03925 100644 --- a/Tests/OriginalTests/WebPartsTests.cs +++ b/Tests/OriginalTests/WebPartsTests.cs @@ -6,7 +6,7 @@ using System.Xml.Linq; using OfficeDevPnP.Core.Utilities; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class WebPartsTests diff --git a/Tests/OriginalTests/WebTests.cs b/Tests/OriginalTests/WebTests.cs index b86beab4e..4d1e01d38 100644 --- a/Tests/OriginalTests/WebTests.cs +++ b/Tests/OriginalTests/WebTests.cs @@ -3,10 +3,10 @@ using Microsoft.SharePoint.Client; using System.Management.Automation.Runspaces; using System.Linq; -using SharePointPnP.PowerShell.Commands.Principals; -using SharePointPnP.PowerShell.Commands.Enums; +using PnP.PowerShell.Commands.Principals; +using PnP.PowerShell.Commands.Enums; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class WebTests diff --git a/Tests/OriginalTests/WebhookSubscriptionsTests.cs b/Tests/OriginalTests/WebhookSubscriptionsTests.cs index 5ee6be36e..3820d8bc5 100644 --- a/Tests/OriginalTests/WebhookSubscriptionsTests.cs +++ b/Tests/OriginalTests/WebhookSubscriptionsTests.cs @@ -9,7 +9,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { [TestClass] public class WebhookSubscriptionsTests diff --git a/Tests/PSTestScope.cs b/Tests/PSTestScope.cs index 437e60d6c..79d889efc 100644 --- a/Tests/PSTestScope.cs +++ b/Tests/PSTestScope.cs @@ -1,12 +1,12 @@ using Microsoft.PowerShell.Commands; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; using System; using System.Collections.ObjectModel; using System.Configuration; using System.Management.Automation; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { public class PSTestScope : IDisposable { diff --git a/Tests/SharePointPnP.PowerShell.Tests.csproj b/Tests/PnP.PowerShell.Tests.csproj similarity index 99% rename from Tests/SharePointPnP.PowerShell.Tests.csproj rename to Tests/PnP.PowerShell.Tests.csproj index f99046207..1e810c586 100644 --- a/Tests/SharePointPnP.PowerShell.Tests.csproj +++ b/Tests/PnP.PowerShell.Tests.csproj @@ -6,8 +6,8 @@ {AD2E3CF9-65C7-40FD-9F52-CE8259031C6E} Library Properties - SharePointPnP.PowerShell.Tests - SharePointPnP.PowerShell.Tests + PnP.PowerShell.Tests + PnP.PowerShell.Tests v4.6.1 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} @@ -809,9 +809,9 @@ - + {1dde6f0a-ca49-419a-9ce8-a6ca02f43ce0} - SharePointPnP.PowerShell.Commands + PnP.PowerShell.Commands diff --git a/Tests/Principals/AddPnPAlertTests.cs b/Tests/Principals/AddPnPAlertTests.cs index abf5917f4..9e8f33f56 100644 --- a/Tests/Principals/AddPnPAlertTests.cs +++ b/Tests/Principals/AddPnPAlertTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class AddAlertTests diff --git a/Tests/Principals/AddPnPUserToGroupTests.cs b/Tests/Principals/AddPnPUserToGroupTests.cs index c279b1f7f..95776fd81 100644 --- a/Tests/Principals/AddPnPUserToGroupTests.cs +++ b/Tests/Principals/AddPnPUserToGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class AddUserToGroupTests diff --git a/Tests/Principals/GetPnPAlertTests.cs b/Tests/Principals/GetPnPAlertTests.cs index 7e6ccf825..b848c4d8a 100644 --- a/Tests/Principals/GetPnPAlertTests.cs +++ b/Tests/Principals/GetPnPAlertTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class GetAlertTests diff --git a/Tests/Principals/GetPnPGroupMembersTests.cs b/Tests/Principals/GetPnPGroupMembersTests.cs index 15ae17d41..56a747549 100644 --- a/Tests/Principals/GetPnPGroupMembersTests.cs +++ b/Tests/Principals/GetPnPGroupMembersTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class GetGroupMembersTests diff --git a/Tests/Principals/GetPnPGroupPermissionsTests.cs b/Tests/Principals/GetPnPGroupPermissionsTests.cs index 7525a995e..4dc26fd79 100644 --- a/Tests/Principals/GetPnPGroupPermissionsTests.cs +++ b/Tests/Principals/GetPnPGroupPermissionsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class GetGroupPermissionsTests diff --git a/Tests/Principals/GetPnPGroupTests.cs b/Tests/Principals/GetPnPGroupTests.cs index d5b0c2988..cab8f9ae3 100644 --- a/Tests/Principals/GetPnPGroupTests.cs +++ b/Tests/Principals/GetPnPGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class GetGroupTests diff --git a/Tests/Principals/GetPnPUserTests.cs b/Tests/Principals/GetPnPUserTests.cs index e4cf05e80..2d1ae17b1 100644 --- a/Tests/Principals/GetPnPUserTests.cs +++ b/Tests/Principals/GetPnPUserTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class GetUserTests diff --git a/Tests/Principals/NewPnPGroupTests.cs b/Tests/Principals/NewPnPGroupTests.cs index 90ad8852f..00dc9204d 100644 --- a/Tests/Principals/NewPnPGroupTests.cs +++ b/Tests/Principals/NewPnPGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class NewGroupTests diff --git a/Tests/Principals/NewPnPUserTests.cs b/Tests/Principals/NewPnPUserTests.cs index f5fe7406f..6a3517a6b 100644 --- a/Tests/Principals/NewPnPUserTests.cs +++ b/Tests/Principals/NewPnPUserTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class NewUserTests diff --git a/Tests/Principals/RemovePnPAlertTests.cs b/Tests/Principals/RemovePnPAlertTests.cs index 6d63a2811..171039031 100644 --- a/Tests/Principals/RemovePnPAlertTests.cs +++ b/Tests/Principals/RemovePnPAlertTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class RemoveAlertTests diff --git a/Tests/Principals/RemovePnPGroupTests.cs b/Tests/Principals/RemovePnPGroupTests.cs index cf0a9f539..39001a769 100644 --- a/Tests/Principals/RemovePnPGroupTests.cs +++ b/Tests/Principals/RemovePnPGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class RemoveGroupTests diff --git a/Tests/Principals/RemovePnPUserFromGroupTests.cs b/Tests/Principals/RemovePnPUserFromGroupTests.cs index 2ffd2a762..18e740ab5 100644 --- a/Tests/Principals/RemovePnPUserFromGroupTests.cs +++ b/Tests/Principals/RemovePnPUserFromGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class RemoveUserFromGroupTests diff --git a/Tests/Principals/RemovePnPUserTests.cs b/Tests/Principals/RemovePnPUserTests.cs index 9109166fc..fe3a05043 100644 --- a/Tests/Principals/RemovePnPUserTests.cs +++ b/Tests/Principals/RemovePnPUserTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class RemoveUserTests diff --git a/Tests/Principals/SetPnPGroupPermissionsTests.cs b/Tests/Principals/SetPnPGroupPermissionsTests.cs index 89737119c..7c3a3c5e3 100644 --- a/Tests/Principals/SetPnPGroupPermissionsTests.cs +++ b/Tests/Principals/SetPnPGroupPermissionsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class SetGroupPermissionsTests diff --git a/Tests/Principals/SetPnPGroupTests.cs b/Tests/Principals/SetPnPGroupTests.cs index e0183c61a..65e26a02f 100644 --- a/Tests/Principals/SetPnPGroupTests.cs +++ b/Tests/Principals/SetPnPGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Principals +namespace PnP.PowerShell.Tests.Principals { [TestClass] public class SetGroupTests diff --git a/Tests/Provisioning.Site/AddPnPDataRowsToProvisioningTemplateTests.cs b/Tests/Provisioning.Site/AddPnPDataRowsToProvisioningTemplateTests.cs index faf0f716c..015b990e2 100644 --- a/Tests/Provisioning.Site/AddPnPDataRowsToProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/AddPnPDataRowsToProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class AddDataRowsToProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/AddPnPFileToProvisioningTemplateTests.cs b/Tests/Provisioning.Site/AddPnPFileToProvisioningTemplateTests.cs index 8f23a2570..6f2c3e5a9 100644 --- a/Tests/Provisioning.Site/AddPnPFileToProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/AddPnPFileToProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class AddFileToProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/AddPnPListFoldersToProvisioningTemplateTests.cs b/Tests/Provisioning.Site/AddPnPListFoldersToProvisioningTemplateTests.cs index ea1a2d20e..dd3f884b3 100644 --- a/Tests/Provisioning.Site/AddPnPListFoldersToProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/AddPnPListFoldersToProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class AddListFoldersToProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/ApplyPnPProvisioningTemplateTests.cs b/Tests/Provisioning.Site/ApplyPnPProvisioningTemplateTests.cs index 37aed0a5e..93a591e1f 100644 --- a/Tests/Provisioning.Site/ApplyPnPProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/ApplyPnPProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class ApplyProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/ExportPnPListToProvisioningTemplateTests.cs b/Tests/Provisioning.Site/ExportPnPListToProvisioningTemplateTests.cs index 70dec9037..899c2111a 100644 --- a/Tests/Provisioning.Site/ExportPnPListToProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/ExportPnPListToProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class ExportListToProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/GetPnPProvisioningTemplateTests.cs b/Tests/Provisioning.Site/GetPnPProvisioningTemplateTests.cs index 91c068a9f..e71cb1cbf 100644 --- a/Tests/Provisioning.Site/GetPnPProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/GetPnPProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class GetProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/GetPnPTenantTemplateTests.cs b/Tests/Provisioning.Site/GetPnPTenantTemplateTests.cs index e8ed92c71..b556921fc 100644 --- a/Tests/Provisioning.Site/GetPnPTenantTemplateTests.cs +++ b/Tests/Provisioning.Site/GetPnPTenantTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class GetTenantTemplateTests diff --git a/Tests/Provisioning.Site/RemovePnPFileFromProvisioningTemplateTests.cs b/Tests/Provisioning.Site/RemovePnPFileFromProvisioningTemplateTests.cs index f923a754b..d69baeea4 100644 --- a/Tests/Provisioning.Site/RemovePnPFileFromProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Site/RemovePnPFileFromProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class RemoveFileFromProvisioningTemplateTests diff --git a/Tests/Provisioning.Site/SetPnPProvisioningTemplateMetadataTests.cs b/Tests/Provisioning.Site/SetPnPProvisioningTemplateMetadataTests.cs index 8f7c5ec1f..660d2d91b 100644 --- a/Tests/Provisioning.Site/SetPnPProvisioningTemplateMetadataTests.cs +++ b/Tests/Provisioning.Site/SetPnPProvisioningTemplateMetadataTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Site +namespace PnP.PowerShell.Tests.Provisioning.Site { [TestClass] public class SetProvisioningTemplateMetadataTests diff --git a/Tests/Provisioning.Tenant/AddPnPProvisioningTemplateTests.cs b/Tests/Provisioning.Tenant/AddPnPProvisioningTemplateTests.cs index dbb49a7e5..657398343 100644 --- a/Tests/Provisioning.Tenant/AddPnPProvisioningTemplateTests.cs +++ b/Tests/Provisioning.Tenant/AddPnPProvisioningTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class AddProvisioningTemplateTests diff --git a/Tests/Provisioning.Tenant/AddPnPTenantSequenceSiteTests.cs b/Tests/Provisioning.Tenant/AddPnPTenantSequenceSiteTests.cs index 882b521a3..453751432 100644 --- a/Tests/Provisioning.Tenant/AddPnPTenantSequenceSiteTests.cs +++ b/Tests/Provisioning.Tenant/AddPnPTenantSequenceSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class AddTenantSequenceSiteTests diff --git a/Tests/Provisioning.Tenant/AddPnPTenantSequenceSubSiteTests.cs b/Tests/Provisioning.Tenant/AddPnPTenantSequenceSubSiteTests.cs index 085646385..9eed5928b 100644 --- a/Tests/Provisioning.Tenant/AddPnPTenantSequenceSubSiteTests.cs +++ b/Tests/Provisioning.Tenant/AddPnPTenantSequenceSubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class AddTenantSequenceSubSiteTests diff --git a/Tests/Provisioning.Tenant/AddPnPTenantSequenceTests.cs b/Tests/Provisioning.Tenant/AddPnPTenantSequenceTests.cs index 003d17ef7..aa2147747 100644 --- a/Tests/Provisioning.Tenant/AddPnPTenantSequenceTests.cs +++ b/Tests/Provisioning.Tenant/AddPnPTenantSequenceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class AddTenantSequenceTests diff --git a/Tests/Provisioning.Tenant/ApplyPnPTenantTemplateTests.cs b/Tests/Provisioning.Tenant/ApplyPnPTenantTemplateTests.cs index 812a1b42a..8be204275 100644 --- a/Tests/Provisioning.Tenant/ApplyPnPTenantTemplateTests.cs +++ b/Tests/Provisioning.Tenant/ApplyPnPTenantTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class ApplyTenantTemplateTests diff --git a/Tests/Provisioning.Tenant/ExportPnPClientSidePageTests.cs b/Tests/Provisioning.Tenant/ExportPnPClientSidePageTests.cs index 5dacd48ae..0afee1865 100644 --- a/Tests/Provisioning.Tenant/ExportPnPClientSidePageTests.cs +++ b/Tests/Provisioning.Tenant/ExportPnPClientSidePageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class ExportClientSidePageTests diff --git a/Tests/Provisioning.Tenant/GetPnPTenantSequenceSiteTests.cs b/Tests/Provisioning.Tenant/GetPnPTenantSequenceSiteTests.cs index f8df3b170..d781bb8c0 100644 --- a/Tests/Provisioning.Tenant/GetPnPTenantSequenceSiteTests.cs +++ b/Tests/Provisioning.Tenant/GetPnPTenantSequenceSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class GetTenantSequenceSiteTests diff --git a/Tests/Provisioning.Tenant/GetPnPTenantSequenceTests.cs b/Tests/Provisioning.Tenant/GetPnPTenantSequenceTests.cs index c17256bfd..6a3abd429 100644 --- a/Tests/Provisioning.Tenant/GetPnPTenantSequenceTests.cs +++ b/Tests/Provisioning.Tenant/GetPnPTenantSequenceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class GetTenantSequenceTests diff --git a/Tests/Provisioning.Tenant/NewPnPTenantSequenceCommunicationSiteTests.cs b/Tests/Provisioning.Tenant/NewPnPTenantSequenceCommunicationSiteTests.cs index 996ac4356..4aaacf4e3 100644 --- a/Tests/Provisioning.Tenant/NewPnPTenantSequenceCommunicationSiteTests.cs +++ b/Tests/Provisioning.Tenant/NewPnPTenantSequenceCommunicationSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class NewTenantSequenceCommunicationSiteTests diff --git a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSiteTests.cs b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSiteTests.cs index 89d4b738f..c24adf626 100644 --- a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSiteTests.cs +++ b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class NewTenantSequenceTeamNoGroupSiteTests diff --git a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSubSiteTests.cs b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSubSiteTests.cs index c056b4cb3..936b71c12 100644 --- a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSubSiteTests.cs +++ b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamNoGroupSubSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class NewTenantSequenceTeamNoGroupSubSiteTests diff --git a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamSiteTests.cs b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamSiteTests.cs index 5499ed7eb..7817b7133 100644 --- a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamSiteTests.cs +++ b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTeamSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class NewTenantSequenceTeamSiteTests diff --git a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTests.cs b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTests.cs index b1c2f8eb0..a6b625040 100644 --- a/Tests/Provisioning.Tenant/NewPnPTenantSequenceTests.cs +++ b/Tests/Provisioning.Tenant/NewPnPTenantSequenceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class NewTenantSequenceTests diff --git a/Tests/Provisioning.Tenant/NewPnPTenantTemplateTests.cs b/Tests/Provisioning.Tenant/NewPnPTenantTemplateTests.cs index 7d3b34a16..b8dd90919 100644 --- a/Tests/Provisioning.Tenant/NewPnPTenantTemplateTests.cs +++ b/Tests/Provisioning.Tenant/NewPnPTenantTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class NewTenantTemplateTests diff --git a/Tests/Provisioning.Tenant/ReadPnPTenantTemplateTests.cs b/Tests/Provisioning.Tenant/ReadPnPTenantTemplateTests.cs index 6f810a3e9..32d82cee8 100644 --- a/Tests/Provisioning.Tenant/ReadPnPTenantTemplateTests.cs +++ b/Tests/Provisioning.Tenant/ReadPnPTenantTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class ReadTenantTemplateTests diff --git a/Tests/Provisioning.Tenant/SavePnPTenantTemplateTests.cs b/Tests/Provisioning.Tenant/SavePnPTenantTemplateTests.cs index 9e918e2eb..e41025614 100644 --- a/Tests/Provisioning.Tenant/SavePnPTenantTemplateTests.cs +++ b/Tests/Provisioning.Tenant/SavePnPTenantTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class SaveTenantTemplateTests diff --git a/Tests/Provisioning.Tenant/TestPnPTenantTemplateTests.cs b/Tests/Provisioning.Tenant/TestPnPTenantTemplateTests.cs index 5508eadc3..bb99f5d0f 100644 --- a/Tests/Provisioning.Tenant/TestPnPTenantTemplateTests.cs +++ b/Tests/Provisioning.Tenant/TestPnPTenantTemplateTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Provisioning.Tenant +namespace PnP.PowerShell.Tests.Provisioning.Tenant { [TestClass] public class TestTenantTemplateTests diff --git a/Tests/Publishing/AddPnPHtmlPublishingPageLayoutTests.cs b/Tests/Publishing/AddPnPHtmlPublishingPageLayoutTests.cs index 5ed11885b..500b9d00d 100644 --- a/Tests/Publishing/AddPnPHtmlPublishingPageLayoutTests.cs +++ b/Tests/Publishing/AddPnPHtmlPublishingPageLayoutTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class AddHtmlPublishingPageLayoutTests diff --git a/Tests/Publishing/AddPnPMasterPageTests.cs b/Tests/Publishing/AddPnPMasterPageTests.cs index 75473a56d..4511d3383 100644 --- a/Tests/Publishing/AddPnPMasterPageTests.cs +++ b/Tests/Publishing/AddPnPMasterPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class AddMasterPageTests diff --git a/Tests/Publishing/AddPnPPublishingImageRenditionTests.cs b/Tests/Publishing/AddPnPPublishingImageRenditionTests.cs index dea31846a..61c3bdf40 100644 --- a/Tests/Publishing/AddPnPPublishingImageRenditionTests.cs +++ b/Tests/Publishing/AddPnPPublishingImageRenditionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class AddPublishingImageRenditionTests diff --git a/Tests/Publishing/AddPnPPublishingPageLayoutTests.cs b/Tests/Publishing/AddPnPPublishingPageLayoutTests.cs index 47d9066e4..78969582d 100644 --- a/Tests/Publishing/AddPnPPublishingPageLayoutTests.cs +++ b/Tests/Publishing/AddPnPPublishingPageLayoutTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class AddPublishingPageLayoutTests diff --git a/Tests/Publishing/AddPnPPublishingPageTests.cs b/Tests/Publishing/AddPnPPublishingPageTests.cs index 495c34565..a00489138 100644 --- a/Tests/Publishing/AddPnPPublishingPageTests.cs +++ b/Tests/Publishing/AddPnPPublishingPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class AddPublishingPageTests diff --git a/Tests/Publishing/AddPnPWikiPageTests.cs b/Tests/Publishing/AddPnPWikiPageTests.cs index 1227d2ec8..08755b697 100644 --- a/Tests/Publishing/AddPnPWikiPageTests.cs +++ b/Tests/Publishing/AddPnPWikiPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class AddWikiPageTests diff --git a/Tests/Publishing/GetPnPPublishingImageRenditionTests.cs b/Tests/Publishing/GetPnPPublishingImageRenditionTests.cs index 4e90380aa..83faa0769 100644 --- a/Tests/Publishing/GetPnPPublishingImageRenditionTests.cs +++ b/Tests/Publishing/GetPnPPublishingImageRenditionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class GetPublishingImageRenditionTests diff --git a/Tests/Publishing/GetPnPWikiPageContentTests.cs b/Tests/Publishing/GetPnPWikiPageContentTests.cs index 534af35f3..df45e4d53 100644 --- a/Tests/Publishing/GetPnPWikiPageContentTests.cs +++ b/Tests/Publishing/GetPnPWikiPageContentTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class GetWikiPageContentTests diff --git a/Tests/Publishing/RemovePnPPublishingImageRenditionTests.cs b/Tests/Publishing/RemovePnPPublishingImageRenditionTests.cs index 6403434a1..83f27c2f7 100644 --- a/Tests/Publishing/RemovePnPPublishingImageRenditionTests.cs +++ b/Tests/Publishing/RemovePnPPublishingImageRenditionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class RemovePublishingImageRenditionTests diff --git a/Tests/Publishing/RemovePnPWikiPageTests.cs b/Tests/Publishing/RemovePnPWikiPageTests.cs index 8f9649248..a004bd176 100644 --- a/Tests/Publishing/RemovePnPWikiPageTests.cs +++ b/Tests/Publishing/RemovePnPWikiPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class RemoveWikiPageTests diff --git a/Tests/Publishing/SetPnPAvailablePageLayoutsTests.cs b/Tests/Publishing/SetPnPAvailablePageLayoutsTests.cs index 25a0391b0..3e1e69e93 100644 --- a/Tests/Publishing/SetPnPAvailablePageLayoutsTests.cs +++ b/Tests/Publishing/SetPnPAvailablePageLayoutsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class SetAvailablePageLayoutsTests diff --git a/Tests/Publishing/SetPnPDefaultPageLayoutTests.cs b/Tests/Publishing/SetPnPDefaultPageLayoutTests.cs index 5c10de9d5..63a9afb8a 100644 --- a/Tests/Publishing/SetPnPDefaultPageLayoutTests.cs +++ b/Tests/Publishing/SetPnPDefaultPageLayoutTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class SetDefaultPageLayoutTests diff --git a/Tests/Publishing/SetPnPWikiPageContentTests.cs b/Tests/Publishing/SetPnPWikiPageContentTests.cs index d54f8d10c..446dad812 100644 --- a/Tests/Publishing/SetPnPWikiPageContentTests.cs +++ b/Tests/Publishing/SetPnPWikiPageContentTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Publishing +namespace PnP.PowerShell.Tests.Publishing { [TestClass] public class SetWikiPageContentTests diff --git a/Tests/RecordsManagement/ClearPnPListItemAsRecordTests.cs b/Tests/RecordsManagement/ClearPnPListItemAsRecordTests.cs index 13b2cf5bf..75df1f504 100644 --- a/Tests/RecordsManagement/ClearPnPListItemAsRecordTests.cs +++ b/Tests/RecordsManagement/ClearPnPListItemAsRecordTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class ClearListItemAsRecordTests diff --git a/Tests/RecordsManagement/DisablePnPInPlaceRecordsManagementForSiteTests.cs b/Tests/RecordsManagement/DisablePnPInPlaceRecordsManagementForSiteTests.cs index 4843bd63d..dcd2f226e 100644 --- a/Tests/RecordsManagement/DisablePnPInPlaceRecordsManagementForSiteTests.cs +++ b/Tests/RecordsManagement/DisablePnPInPlaceRecordsManagementForSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class DisableInPlaceRecordsManagementForSiteTests diff --git a/Tests/RecordsManagement/EnablePnPInPlaceRecordsManagementForSiteTests.cs b/Tests/RecordsManagement/EnablePnPInPlaceRecordsManagementForSiteTests.cs index 0e124e8da..b1a920c4b 100644 --- a/Tests/RecordsManagement/EnablePnPInPlaceRecordsManagementForSiteTests.cs +++ b/Tests/RecordsManagement/EnablePnPInPlaceRecordsManagementForSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class EnableInPlaceRecordsManagementForSiteTests diff --git a/Tests/RecordsManagement/GetPnPInPlaceRecordsManagementTests.cs b/Tests/RecordsManagement/GetPnPInPlaceRecordsManagementTests.cs index 1b5aff160..7c096e936 100644 --- a/Tests/RecordsManagement/GetPnPInPlaceRecordsManagementTests.cs +++ b/Tests/RecordsManagement/GetPnPInPlaceRecordsManagementTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class GetInPlaceRecordsManagementTests diff --git a/Tests/RecordsManagement/GetPnPListRecordDeclarationTests.cs b/Tests/RecordsManagement/GetPnPListRecordDeclarationTests.cs index 6442fc5df..fe9d1a7ca 100644 --- a/Tests/RecordsManagement/GetPnPListRecordDeclarationTests.cs +++ b/Tests/RecordsManagement/GetPnPListRecordDeclarationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class GetListRecordDeclarationTests diff --git a/Tests/RecordsManagement/SetPnPInPlaceRecordsManagementTests.cs b/Tests/RecordsManagement/SetPnPInPlaceRecordsManagementTests.cs index 62aebfa17..469c46c85 100644 --- a/Tests/RecordsManagement/SetPnPInPlaceRecordsManagementTests.cs +++ b/Tests/RecordsManagement/SetPnPInPlaceRecordsManagementTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class SetInPlaceRecordsManagementTests diff --git a/Tests/RecordsManagement/SetPnPListItemAsRecordTests.cs b/Tests/RecordsManagement/SetPnPListItemAsRecordTests.cs index 2534e6ec6..2e5f11cde 100644 --- a/Tests/RecordsManagement/SetPnPListItemAsRecordTests.cs +++ b/Tests/RecordsManagement/SetPnPListItemAsRecordTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class SetListItemAsRecordTests diff --git a/Tests/RecordsManagement/SetPnPListRecordDeclarationTests.cs b/Tests/RecordsManagement/SetPnPListRecordDeclarationTests.cs index 7b344ddcf..b1fac95b1 100644 --- a/Tests/RecordsManagement/SetPnPListRecordDeclarationTests.cs +++ b/Tests/RecordsManagement/SetPnPListRecordDeclarationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class SetListRecordDeclarationTests diff --git a/Tests/RecordsManagement/TestPnPListItemIsRecordTests.cs b/Tests/RecordsManagement/TestPnPListItemIsRecordTests.cs index fa466ae5d..0882fac81 100644 --- a/Tests/RecordsManagement/TestPnPListItemIsRecordTests.cs +++ b/Tests/RecordsManagement/TestPnPListItemIsRecordTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecordsManagement +namespace PnP.PowerShell.Tests.RecordsManagement { [TestClass] public class TestListItemIsRecordTests diff --git a/Tests/RecycleBin/ClearPnPRecycleBinItemTests.cs b/Tests/RecycleBin/ClearPnPRecycleBinItemTests.cs index f795ebfcd..664b66c41 100644 --- a/Tests/RecycleBin/ClearPnPRecycleBinItemTests.cs +++ b/Tests/RecycleBin/ClearPnPRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class ClearRecycleBinItemTests diff --git a/Tests/RecycleBin/ClearPnPTenantRecycleBinItemTests.cs b/Tests/RecycleBin/ClearPnPTenantRecycleBinItemTests.cs index 76ba6c248..874292e20 100644 --- a/Tests/RecycleBin/ClearPnPTenantRecycleBinItemTests.cs +++ b/Tests/RecycleBin/ClearPnPTenantRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class ClearTenantRecycleBinItemTests diff --git a/Tests/RecycleBin/GetPnPRecycleBinItemTests.cs b/Tests/RecycleBin/GetPnPRecycleBinItemTests.cs index 1753a64a1..1032cf526 100644 --- a/Tests/RecycleBin/GetPnPRecycleBinItemTests.cs +++ b/Tests/RecycleBin/GetPnPRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class GetRecycleBinItemsTests diff --git a/Tests/RecycleBin/GetPnPTenantRecycleBinItemTests.cs b/Tests/RecycleBin/GetPnPTenantRecycleBinItemTests.cs index 20092ff61..8079763ca 100644 --- a/Tests/RecycleBin/GetPnPTenantRecycleBinItemTests.cs +++ b/Tests/RecycleBin/GetPnPTenantRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class GetTenantRecycleBinItemsTests diff --git a/Tests/RecycleBin/MovePnPRecycleBinItemTests.cs b/Tests/RecycleBin/MovePnPRecycleBinItemTests.cs index 43adf281d..356341e46 100644 --- a/Tests/RecycleBin/MovePnPRecycleBinItemTests.cs +++ b/Tests/RecycleBin/MovePnPRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class MoveRecycleBinItemsTests diff --git a/Tests/RecycleBin/RestorePnPRecycleBinItemTests.cs b/Tests/RecycleBin/RestorePnPRecycleBinItemTests.cs index 7f21dc438..d02cb9c7e 100644 --- a/Tests/RecycleBin/RestorePnPRecycleBinItemTests.cs +++ b/Tests/RecycleBin/RestorePnPRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class RestoreRecycleBinItemTests diff --git a/Tests/RecycleBin/RestorePnPTenantRecycleBinItemTests.cs b/Tests/RecycleBin/RestorePnPTenantRecycleBinItemTests.cs index 77067c681..fca3fbfb2 100644 --- a/Tests/RecycleBin/RestorePnPTenantRecycleBinItemTests.cs +++ b/Tests/RecycleBin/RestorePnPTenantRecycleBinItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.RecycleBin +namespace PnP.PowerShell.Tests.RecycleBin { [TestClass] public class RestoreTenantRecycleBinItemTests diff --git a/Tests/Search/GetPnPSearchConfigurationTests.cs b/Tests/Search/GetPnPSearchConfigurationTests.cs index 6bd7df2d2..cc13be1df 100644 --- a/Tests/Search/GetPnPSearchConfigurationTests.cs +++ b/Tests/Search/GetPnPSearchConfigurationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class GetSearchConfigurationTests diff --git a/Tests/Search/GetPnPSearchCrawlLogTests.cs b/Tests/Search/GetPnPSearchCrawlLogTests.cs index 5e6ed921b..9e1262d2f 100644 --- a/Tests/Search/GetPnPSearchCrawlLogTests.cs +++ b/Tests/Search/GetPnPSearchCrawlLogTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class GetSearchCrawlLogTests diff --git a/Tests/Search/GetPnPSearchSettingsTests.cs b/Tests/Search/GetPnPSearchSettingsTests.cs index da8bc5185..c422d3a19 100644 --- a/Tests/Search/GetPnPSearchSettingsTests.cs +++ b/Tests/Search/GetPnPSearchSettingsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class GetSearchSettingsTests diff --git a/Tests/Search/GetPnPSiteSearchQueryResultsTests.cs b/Tests/Search/GetPnPSiteSearchQueryResultsTests.cs index cc45c80e9..a4e775178 100644 --- a/Tests/Search/GetPnPSiteSearchQueryResultsTests.cs +++ b/Tests/Search/GetPnPSiteSearchQueryResultsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class GetSiteSearchQueryResultsTests diff --git a/Tests/Search/RemovePnPSearchConfigurationTests.cs b/Tests/Search/RemovePnPSearchConfigurationTests.cs index 616403ad0..0b6d95208 100644 --- a/Tests/Search/RemovePnPSearchConfigurationTests.cs +++ b/Tests/Search/RemovePnPSearchConfigurationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class RemoveSearchConfigurationTests diff --git a/Tests/Search/SetPnPSearchConfigurationTests.cs b/Tests/Search/SetPnPSearchConfigurationTests.cs index 825df151d..35b3b6e93 100644 --- a/Tests/Search/SetPnPSearchConfigurationTests.cs +++ b/Tests/Search/SetPnPSearchConfigurationTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class SetSearchConfigurationTests diff --git a/Tests/Search/SetPnPSearchSettingsTests.cs b/Tests/Search/SetPnPSearchSettingsTests.cs index 76017e7c9..a81c40ff6 100644 --- a/Tests/Search/SetPnPSearchSettingsTests.cs +++ b/Tests/Search/SetPnPSearchSettingsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class SetSearchSettingsTests diff --git a/Tests/Search/SubmitPnPSearchQueryTests.cs b/Tests/Search/SubmitPnPSearchQueryTests.cs index ef168f906..63c013c85 100644 --- a/Tests/Search/SubmitPnPSearchQueryTests.cs +++ b/Tests/Search/SubmitPnPSearchQueryTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Search +namespace PnP.PowerShell.Tests.Search { [TestClass] public class SubmitSearchQueryTests diff --git a/Tests/Site/AddPnPRoleDefinitionTests.cs b/Tests/Site/AddPnPRoleDefinitionTests.cs index 63576f05b..1156a66c8 100644 --- a/Tests/Site/AddPnPRoleDefinitionTests.cs +++ b/Tests/Site/AddPnPRoleDefinitionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class AddRoleDefinitionTests diff --git a/Tests/Site/AddPnPSiteCollectionAdminTests.cs b/Tests/Site/AddPnPSiteCollectionAdminTests.cs index ea6a6717b..718c86785 100644 --- a/Tests/Site/AddPnPSiteCollectionAdminTests.cs +++ b/Tests/Site/AddPnPSiteCollectionAdminTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class AddSiteCollectionAdminTests diff --git a/Tests/Site/AddPnPTeamsTeamTests.cs b/Tests/Site/AddPnPTeamsTeamTests.cs index 4a709e78a..241d99b90 100644 --- a/Tests/Site/AddPnPTeamsTeamTests.cs +++ b/Tests/Site/AddPnPTeamsTeamTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class AddTeamsTeamTests diff --git a/Tests/Site/DisablePnPSharingForNonOwnersOfSiteTests.cs b/Tests/Site/DisablePnPSharingForNonOwnersOfSiteTests.cs index 5af28a9f5..714cb0a73 100644 --- a/Tests/Site/DisablePnPSharingForNonOwnersOfSiteTests.cs +++ b/Tests/Site/DisablePnPSharingForNonOwnersOfSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class DisableSharingForNonOwnersOfSiteTests diff --git a/Tests/Site/EnablePnPCommSiteTests.cs b/Tests/Site/EnablePnPCommSiteTests.cs index 152b44f64..b1f30d2d0 100644 --- a/Tests/Site/EnablePnPCommSiteTests.cs +++ b/Tests/Site/EnablePnPCommSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class EnableCommSiteTests diff --git a/Tests/Site/GetPnPAuditingTests.cs b/Tests/Site/GetPnPAuditingTests.cs index 20470d8a3..c3f42f580 100644 --- a/Tests/Site/GetPnPAuditingTests.cs +++ b/Tests/Site/GetPnPAuditingTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class GetAuditingTests diff --git a/Tests/Site/GetPnPIsSiteAliasAvailableTests.cs b/Tests/Site/GetPnPIsSiteAliasAvailableTests.cs index de7bd743b..cc25f7233 100644 --- a/Tests/Site/GetPnPIsSiteAliasAvailableTests.cs +++ b/Tests/Site/GetPnPIsSiteAliasAvailableTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class GetIsSiteAliasAvailableTests diff --git a/Tests/Site/GetPnPRoleDefinitionTests.cs b/Tests/Site/GetPnPRoleDefinitionTests.cs index 982282e40..7dca0863f 100644 --- a/Tests/Site/GetPnPRoleDefinitionTests.cs +++ b/Tests/Site/GetPnPRoleDefinitionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class GetRoleDefinitionTests diff --git a/Tests/Site/GetPnPSharingForNonOwnersOfSiteTests.cs b/Tests/Site/GetPnPSharingForNonOwnersOfSiteTests.cs index cef0d0204..5827b0578 100644 --- a/Tests/Site/GetPnPSharingForNonOwnersOfSiteTests.cs +++ b/Tests/Site/GetPnPSharingForNonOwnersOfSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class GetSharingForNonOwnersOfSiteTests diff --git a/Tests/Site/GetPnPSiteCollectionAdminTests.cs b/Tests/Site/GetPnPSiteCollectionAdminTests.cs index a2895baf2..56cf5a8de 100644 --- a/Tests/Site/GetPnPSiteCollectionAdminTests.cs +++ b/Tests/Site/GetPnPSiteCollectionAdminTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class GetSiteCollectionAdminTests diff --git a/Tests/Site/GetPnPSiteTests.cs b/Tests/Site/GetPnPSiteTests.cs index e74fb3ffa..1382b4a62 100644 --- a/Tests/Site/GetPnPSiteTests.cs +++ b/Tests/Site/GetPnPSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class GetSiteTests diff --git a/Tests/Site/InstallPnPSolutionTests.cs b/Tests/Site/InstallPnPSolutionTests.cs index 2b47f4d4e..33859d1e9 100644 --- a/Tests/Site/InstallPnPSolutionTests.cs +++ b/Tests/Site/InstallPnPSolutionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class InstallSolutionTests diff --git a/Tests/Site/NewPnPSiteTests.cs b/Tests/Site/NewPnPSiteTests.cs index 197e6b0a3..2f2026c24 100644 --- a/Tests/Site/NewPnPSiteTests.cs +++ b/Tests/Site/NewPnPSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class NewSiteTests diff --git a/Tests/Site/RemovePnPRoleDefinitionTests.cs b/Tests/Site/RemovePnPRoleDefinitionTests.cs index 0bc0680bd..10e0e5608 100644 --- a/Tests/Site/RemovePnPRoleDefinitionTests.cs +++ b/Tests/Site/RemovePnPRoleDefinitionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class RemoveRoleDefinitionTests diff --git a/Tests/Site/RemovePnPSiteCollectionAdminTests.cs b/Tests/Site/RemovePnPSiteCollectionAdminTests.cs index ca220cd3a..d6e1a913c 100644 --- a/Tests/Site/RemovePnPSiteCollectionAdminTests.cs +++ b/Tests/Site/RemovePnPSiteCollectionAdminTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class RemoveSiteCollectionAdminTests diff --git a/Tests/Site/SetPnPAppSideLoadingTests.cs b/Tests/Site/SetPnPAppSideLoadingTests.cs index 92c81727d..91936a3f9 100644 --- a/Tests/Site/SetPnPAppSideLoadingTests.cs +++ b/Tests/Site/SetPnPAppSideLoadingTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class SetAppSideLoadingTests diff --git a/Tests/Site/SetPnPAuditingTests.cs b/Tests/Site/SetPnPAuditingTests.cs index 2f59af239..e3c772d51 100644 --- a/Tests/Site/SetPnPAuditingTests.cs +++ b/Tests/Site/SetPnPAuditingTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class SetAuditingTests diff --git a/Tests/Site/SetPnPSiteTests.cs b/Tests/Site/SetPnPSiteTests.cs index 5df308810..57a6d3b9a 100644 --- a/Tests/Site/SetPnPSiteTests.cs +++ b/Tests/Site/SetPnPSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class SetSiteTests diff --git a/Tests/Site/TestPnPOffice365GroupAliasIsUsedTests.cs b/Tests/Site/TestPnPOffice365GroupAliasIsUsedTests.cs index 84609536f..23c3b65e7 100644 --- a/Tests/Site/TestPnPOffice365GroupAliasIsUsedTests.cs +++ b/Tests/Site/TestPnPOffice365GroupAliasIsUsedTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class AddOffice365GroupAliasIsUsedTests diff --git a/Tests/Site/UninstallPnPSolutionTests.cs b/Tests/Site/UninstallPnPSolutionTests.cs index 0249df147..bbc0aa48e 100644 --- a/Tests/Site/UninstallPnPSolutionTests.cs +++ b/Tests/Site/UninstallPnPSolutionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Site +namespace PnP.PowerShell.Tests.Site { [TestClass] public class UninstallSolutionTests diff --git a/Tests/SiteDesigns/AddPnPSiteDesignTaskTests.cs b/Tests/SiteDesigns/AddPnPSiteDesignTaskTests.cs index 9f89db071..358bb8a71 100644 --- a/Tests/SiteDesigns/AddPnPSiteDesignTaskTests.cs +++ b/Tests/SiteDesigns/AddPnPSiteDesignTaskTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class AddSiteDesignTaskTests diff --git a/Tests/SiteDesigns/AddPnPSiteDesignTests.cs b/Tests/SiteDesigns/AddPnPSiteDesignTests.cs index d4f04e420..d45fd7e1a 100644 --- a/Tests/SiteDesigns/AddPnPSiteDesignTests.cs +++ b/Tests/SiteDesigns/AddPnPSiteDesignTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class AddSiteDesignTests diff --git a/Tests/SiteDesigns/AddPnPSiteScriptTests.cs b/Tests/SiteDesigns/AddPnPSiteScriptTests.cs index 8c187684d..fcee283fd 100644 --- a/Tests/SiteDesigns/AddPnPSiteScriptTests.cs +++ b/Tests/SiteDesigns/AddPnPSiteScriptTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class AddSiteScriptTests diff --git a/Tests/SiteDesigns/GetPnPSiteDesignRightsTests.cs b/Tests/SiteDesigns/GetPnPSiteDesignRightsTests.cs index 1edd5bd1e..ed3e8bc18 100644 --- a/Tests/SiteDesigns/GetPnPSiteDesignRightsTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteDesignRightsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteDesignRightsTests diff --git a/Tests/SiteDesigns/GetPnPSiteDesignRunStatusTests.cs b/Tests/SiteDesigns/GetPnPSiteDesignRunStatusTests.cs index a0e802670..5515bb604 100644 --- a/Tests/SiteDesigns/GetPnPSiteDesignRunStatusTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteDesignRunStatusTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteDesignRunStatusTests diff --git a/Tests/SiteDesigns/GetPnPSiteDesignRunTests.cs b/Tests/SiteDesigns/GetPnPSiteDesignRunTests.cs index f6dff257a..0e4f560ef 100644 --- a/Tests/SiteDesigns/GetPnPSiteDesignRunTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteDesignRunTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteDesignRunTests diff --git a/Tests/SiteDesigns/GetPnPSiteDesignTaskTests.cs b/Tests/SiteDesigns/GetPnPSiteDesignTaskTests.cs index 6b55e89d2..c3b3cf67b 100644 --- a/Tests/SiteDesigns/GetPnPSiteDesignTaskTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteDesignTaskTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteDesignTaskTests diff --git a/Tests/SiteDesigns/GetPnPSiteDesignTests.cs b/Tests/SiteDesigns/GetPnPSiteDesignTests.cs index 3fddf4b82..22ca2b6c7 100644 --- a/Tests/SiteDesigns/GetPnPSiteDesignTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteDesignTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteDesignTests diff --git a/Tests/SiteDesigns/GetPnPSiteScriptFromListTests.cs b/Tests/SiteDesigns/GetPnPSiteScriptFromListTests.cs index c7b722b87..981876e97 100644 --- a/Tests/SiteDesigns/GetPnPSiteScriptFromListTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteScriptFromListTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteScriptFromListTests diff --git a/Tests/SiteDesigns/GetPnPSiteScriptFromWebTests.cs b/Tests/SiteDesigns/GetPnPSiteScriptFromWebTests.cs index 403e4ef07..dde448767 100644 --- a/Tests/SiteDesigns/GetPnPSiteScriptFromWebTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteScriptFromWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteScriptFromWebTests diff --git a/Tests/SiteDesigns/GetPnPSiteScriptTests.cs b/Tests/SiteDesigns/GetPnPSiteScriptTests.cs index 46d923bfd..9f3fc2bc4 100644 --- a/Tests/SiteDesigns/GetPnPSiteScriptTests.cs +++ b/Tests/SiteDesigns/GetPnPSiteScriptTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GetSiteScriptTests diff --git a/Tests/SiteDesigns/GrantPnPSiteDesignRightsTests.cs b/Tests/SiteDesigns/GrantPnPSiteDesignRightsTests.cs index ee164194b..1eefbfe50 100644 --- a/Tests/SiteDesigns/GrantPnPSiteDesignRightsTests.cs +++ b/Tests/SiteDesigns/GrantPnPSiteDesignRightsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class GrantSiteDesignRightsTests diff --git a/Tests/SiteDesigns/InvokePnPSiteDesignTests.cs b/Tests/SiteDesigns/InvokePnPSiteDesignTests.cs index 374cabdfe..6c5e945a7 100644 --- a/Tests/SiteDesigns/InvokePnPSiteDesignTests.cs +++ b/Tests/SiteDesigns/InvokePnPSiteDesignTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class InvokeSiteDesignTests diff --git a/Tests/SiteDesigns/RemovePnPSiteDesignTaskTests.cs b/Tests/SiteDesigns/RemovePnPSiteDesignTaskTests.cs index ccb55e313..3b14f0c20 100644 --- a/Tests/SiteDesigns/RemovePnPSiteDesignTaskTests.cs +++ b/Tests/SiteDesigns/RemovePnPSiteDesignTaskTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class RemoveSiteDesignTaskTests diff --git a/Tests/SiteDesigns/RemovePnPSiteDesignTests.cs b/Tests/SiteDesigns/RemovePnPSiteDesignTests.cs index 3d43f8f43..edc55aa2a 100644 --- a/Tests/SiteDesigns/RemovePnPSiteDesignTests.cs +++ b/Tests/SiteDesigns/RemovePnPSiteDesignTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class RemoveSiteDesignTests diff --git a/Tests/SiteDesigns/RemovePnPSiteScriptTests.cs b/Tests/SiteDesigns/RemovePnPSiteScriptTests.cs index 04fd63354..f86a51ee6 100644 --- a/Tests/SiteDesigns/RemovePnPSiteScriptTests.cs +++ b/Tests/SiteDesigns/RemovePnPSiteScriptTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class RemoveSiteScriptTests diff --git a/Tests/SiteDesigns/RevokePnPSiteDesignRightsTests.cs b/Tests/SiteDesigns/RevokePnPSiteDesignRightsTests.cs index 91cad74ef..e2b8d9377 100644 --- a/Tests/SiteDesigns/RevokePnPSiteDesignRightsTests.cs +++ b/Tests/SiteDesigns/RevokePnPSiteDesignRightsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class RevokeSiteDesignRightsTests diff --git a/Tests/SiteDesigns/SetPnPSiteDesignTests.cs b/Tests/SiteDesigns/SetPnPSiteDesignTests.cs index 360743de2..dc3a7e545 100644 --- a/Tests/SiteDesigns/SetPnPSiteDesignTests.cs +++ b/Tests/SiteDesigns/SetPnPSiteDesignTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class SetSiteDesignTests diff --git a/Tests/SiteDesigns/SetPnPSiteScriptTests.cs b/Tests/SiteDesigns/SetPnPSiteScriptTests.cs index 1f63df268..e7af17062 100644 --- a/Tests/SiteDesigns/SetPnPSiteScriptTests.cs +++ b/Tests/SiteDesigns/SetPnPSiteScriptTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.SiteDesigns +namespace PnP.PowerShell.Tests.SiteDesigns { [TestClass] public class SetSiteScriptTests diff --git a/Tests/Taxonomy/ExportPnPTaxonomyTests.cs b/Tests/Taxonomy/ExportPnPTaxonomyTests.cs index 3addbe7c4..e9b3e6a63 100644 --- a/Tests/Taxonomy/ExportPnPTaxonomyTests.cs +++ b/Tests/Taxonomy/ExportPnPTaxonomyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class ExportTaxonomyTests diff --git a/Tests/Taxonomy/ExportPnPTermGroupToXmlTests.cs b/Tests/Taxonomy/ExportPnPTermGroupToXmlTests.cs index 5adb42e0f..770977e31 100644 --- a/Tests/Taxonomy/ExportPnPTermGroupToXmlTests.cs +++ b/Tests/Taxonomy/ExportPnPTermGroupToXmlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class ExportTermGroupTests diff --git a/Tests/Taxonomy/GetPnPSiteCollectionTermStoreTests.cs b/Tests/Taxonomy/GetPnPSiteCollectionTermStoreTests.cs index f4b0b90b5..dca0e229d 100644 --- a/Tests/Taxonomy/GetPnPSiteCollectionTermStoreTests.cs +++ b/Tests/Taxonomy/GetPnPSiteCollectionTermStoreTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class GetPnPSiteCollectionTermStoreTests diff --git a/Tests/Taxonomy/GetPnPTaxonomyItemTests.cs b/Tests/Taxonomy/GetPnPTaxonomyItemTests.cs index 3a910cc3f..89a78ae54 100644 --- a/Tests/Taxonomy/GetPnPTaxonomyItemTests.cs +++ b/Tests/Taxonomy/GetPnPTaxonomyItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class GetTaxonomyItemTests diff --git a/Tests/Taxonomy/GetPnPTaxonomySessionTests.cs b/Tests/Taxonomy/GetPnPTaxonomySessionTests.cs index 627f1060c..d543cab0b 100644 --- a/Tests/Taxonomy/GetPnPTaxonomySessionTests.cs +++ b/Tests/Taxonomy/GetPnPTaxonomySessionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class GetTaxonomySessionTests diff --git a/Tests/Taxonomy/GetPnPTermGroupTests.cs b/Tests/Taxonomy/GetPnPTermGroupTests.cs index e11a39192..11b204481 100644 --- a/Tests/Taxonomy/GetPnPTermGroupTests.cs +++ b/Tests/Taxonomy/GetPnPTermGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class GetTermGroupTests diff --git a/Tests/Taxonomy/GetPnPTermSetTests.cs b/Tests/Taxonomy/GetPnPTermSetTests.cs index e2fcfbbe7..c46364b0e 100644 --- a/Tests/Taxonomy/GetPnPTermSetTests.cs +++ b/Tests/Taxonomy/GetPnPTermSetTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class GetTermSetTests diff --git a/Tests/Taxonomy/GetPnPTermTests.cs b/Tests/Taxonomy/GetPnPTermTests.cs index c635a08b6..246097d84 100644 --- a/Tests/Taxonomy/GetPnPTermTests.cs +++ b/Tests/Taxonomy/GetPnPTermTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class GetTermTests diff --git a/Tests/Taxonomy/ImportPnPTaxonomyTests.cs b/Tests/Taxonomy/ImportPnPTaxonomyTests.cs index dcf51f090..f8b445237 100644 --- a/Tests/Taxonomy/ImportPnPTaxonomyTests.cs +++ b/Tests/Taxonomy/ImportPnPTaxonomyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class ImportTaxonomyTests diff --git a/Tests/Taxonomy/ImportPnPTermGroupFromXmlTests.cs b/Tests/Taxonomy/ImportPnPTermGroupFromXmlTests.cs index 66df22e5d..ae697e48d 100644 --- a/Tests/Taxonomy/ImportPnPTermGroupFromXmlTests.cs +++ b/Tests/Taxonomy/ImportPnPTermGroupFromXmlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class ImportTermGroupFromXmlTests diff --git a/Tests/Taxonomy/ImportPnPTermSetTests.cs b/Tests/Taxonomy/ImportPnPTermSetTests.cs index cbbdc3801..b6aedbf2f 100644 --- a/Tests/Taxonomy/ImportPnPTermSetTests.cs +++ b/Tests/Taxonomy/ImportPnPTermSetTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class ImportTermSetTests diff --git a/Tests/Taxonomy/NewPnPTermGroupTests.cs b/Tests/Taxonomy/NewPnPTermGroupTests.cs index 46600ee93..b7bdfc153 100644 --- a/Tests/Taxonomy/NewPnPTermGroupTests.cs +++ b/Tests/Taxonomy/NewPnPTermGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class NewTermGroupTests diff --git a/Tests/Taxonomy/NewPnPTermLabelTests.cs b/Tests/Taxonomy/NewPnPTermLabelTests.cs index ed54a861e..94dfca680 100644 --- a/Tests/Taxonomy/NewPnPTermLabelTests.cs +++ b/Tests/Taxonomy/NewPnPTermLabelTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class NewTermLabelTests diff --git a/Tests/Taxonomy/NewPnPTermSetTests.cs b/Tests/Taxonomy/NewPnPTermSetTests.cs index 8a7ed4a67..0e58e74c9 100644 --- a/Tests/Taxonomy/NewPnPTermSetTests.cs +++ b/Tests/Taxonomy/NewPnPTermSetTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class NewTermSetTests diff --git a/Tests/Taxonomy/NewPnPTermTests.cs b/Tests/Taxonomy/NewPnPTermTests.cs index 4dcf88f2e..736f098ce 100644 --- a/Tests/Taxonomy/NewPnPTermTests.cs +++ b/Tests/Taxonomy/NewPnPTermTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class NewTermTests diff --git a/Tests/Taxonomy/RemovePnPTaxonomyItemTests.cs b/Tests/Taxonomy/RemovePnPTaxonomyItemTests.cs index de5d3c2c1..f3cbae7f7 100644 --- a/Tests/Taxonomy/RemovePnPTaxonomyItemTests.cs +++ b/Tests/Taxonomy/RemovePnPTaxonomyItemTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class RemoveTaxonomyItemTests diff --git a/Tests/Taxonomy/RemovePnPTermGroupTests.cs b/Tests/Taxonomy/RemovePnPTermGroupTests.cs index 13ab48415..eb004a8c5 100644 --- a/Tests/Taxonomy/RemovePnPTermGroupTests.cs +++ b/Tests/Taxonomy/RemovePnPTermGroupTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class RemoveTermGroupTests diff --git a/Tests/Taxonomy/SetPnPTaxonomyFieldValueTests.cs b/Tests/Taxonomy/SetPnPTaxonomyFieldValueTests.cs index ec46a9ff7..9396e0ea1 100644 --- a/Tests/Taxonomy/SetPnPTaxonomyFieldValueTests.cs +++ b/Tests/Taxonomy/SetPnPTaxonomyFieldValueTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Taxonomy +namespace PnP.PowerShell.Tests.Taxonomy { [TestClass] public class SetTaxonomyFieldValueTests diff --git a/Tests/TestCommon.cs b/Tests/TestCommon.cs index 6270e7b73..60b0db7e4 100644 --- a/Tests/TestCommon.cs +++ b/Tests/TestCommon.cs @@ -5,9 +5,9 @@ using System.Net; using Core = OfficeDevPnP.Core; using System.Threading; -using SharePointPnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base; -namespace SharePointPnP.PowerShell.Tests +namespace PnP.PowerShell.Tests { static class TestCommon { diff --git a/Tests/UserProfiles/GetPnPUPABulkImportStatusTests.cs b/Tests/UserProfiles/GetPnPUPABulkImportStatusTests.cs index 555b93116..cec66d5e8 100644 --- a/Tests/UserProfiles/GetPnPUPABulkImportStatusTests.cs +++ b/Tests/UserProfiles/GetPnPUPABulkImportStatusTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class GetUPABulkImportStatusTests diff --git a/Tests/UserProfiles/GetPnPUserOneDriveQuotaTests.cs b/Tests/UserProfiles/GetPnPUserOneDriveQuotaTests.cs index 17008df0d..6f9009101 100644 --- a/Tests/UserProfiles/GetPnPUserOneDriveQuotaTests.cs +++ b/Tests/UserProfiles/GetPnPUserOneDriveQuotaTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class GetUserOneDriveQuotaTests diff --git a/Tests/UserProfiles/GetPnPUserProfilePropertyTests.cs b/Tests/UserProfiles/GetPnPUserProfilePropertyTests.cs index 274158277..c4fd28a0e 100644 --- a/Tests/UserProfiles/GetPnPUserProfilePropertyTests.cs +++ b/Tests/UserProfiles/GetPnPUserProfilePropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class GetUserProfilePropertyTests diff --git a/Tests/UserProfiles/NewPnPPersonalSiteTests.cs b/Tests/UserProfiles/NewPnPPersonalSiteTests.cs index 1457ab1b7..940111d60 100644 --- a/Tests/UserProfiles/NewPnPPersonalSiteTests.cs +++ b/Tests/UserProfiles/NewPnPPersonalSiteTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class NewPersonalSiteTests diff --git a/Tests/UserProfiles/NewPnPUPABulkImportJobTests.cs b/Tests/UserProfiles/NewPnPUPABulkImportJobTests.cs index 3844860e5..88ff37e5e 100644 --- a/Tests/UserProfiles/NewPnPUPABulkImportJobTests.cs +++ b/Tests/UserProfiles/NewPnPUPABulkImportJobTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class NewUPABulkImportJobTests diff --git a/Tests/UserProfiles/ResetPnPUserOneDriveQuotaToDefaultTests.cs b/Tests/UserProfiles/ResetPnPUserOneDriveQuotaToDefaultTests.cs index 32302533d..f3961bd65 100644 --- a/Tests/UserProfiles/ResetPnPUserOneDriveQuotaToDefaultTests.cs +++ b/Tests/UserProfiles/ResetPnPUserOneDriveQuotaToDefaultTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class ResetUserOneDriveQuotaMaxTests diff --git a/Tests/UserProfiles/SetPnPUserOneDriveQuotaTests.cs b/Tests/UserProfiles/SetPnPUserOneDriveQuotaTests.cs index ab3267f4d..a76f80f47 100644 --- a/Tests/UserProfiles/SetPnPUserOneDriveQuotaTests.cs +++ b/Tests/UserProfiles/SetPnPUserOneDriveQuotaTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class SetUserOneDriveQuotaTests diff --git a/Tests/UserProfiles/SetPnPUserProfilePropertyTests.cs b/Tests/UserProfiles/SetPnPUserProfilePropertyTests.cs index ac40a3c88..6e6b54c32 100644 --- a/Tests/UserProfiles/SetPnPUserProfilePropertyTests.cs +++ b/Tests/UserProfiles/SetPnPUserProfilePropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.UserProfiles +namespace PnP.PowerShell.Tests.UserProfiles { [TestClass] public class SetUserProfilePropertyTests diff --git a/Tests/Utilities/SendPnPMailTests.cs b/Tests/Utilities/SendPnPMailTests.cs index 22d6f8748..b13df4613 100644 --- a/Tests/Utilities/SendPnPMailTests.cs +++ b/Tests/Utilities/SendPnPMailTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Utilities +namespace PnP.PowerShell.Tests.Utilities { [TestClass] public class SendMailTests diff --git a/Tests/WebParts/AddPnPClientSideWebPartTests.cs b/Tests/WebParts/AddPnPClientSideWebPartTests.cs index 756d4e0ac..6be683113 100644 --- a/Tests/WebParts/AddPnPClientSideWebPartTests.cs +++ b/Tests/WebParts/AddPnPClientSideWebPartTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class AddClientSideWebPartTests diff --git a/Tests/WebParts/AddPnPWebPartToWebPartPageTests.cs b/Tests/WebParts/AddPnPWebPartToWebPartPageTests.cs index 26d760892..d6b95490a 100644 --- a/Tests/WebParts/AddPnPWebPartToWebPartPageTests.cs +++ b/Tests/WebParts/AddPnPWebPartToWebPartPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class AddWebPartToWebPartPageTests diff --git a/Tests/WebParts/AddPnPWebPartToWikiPageTests.cs b/Tests/WebParts/AddPnPWebPartToWikiPageTests.cs index 083f5254f..871999aa7 100644 --- a/Tests/WebParts/AddPnPWebPartToWikiPageTests.cs +++ b/Tests/WebParts/AddPnPWebPartToWikiPageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class AddWebPartToWikiPageTests diff --git a/Tests/WebParts/GetPnPWebPartPropertyTests.cs b/Tests/WebParts/GetPnPWebPartPropertyTests.cs index 06efef470..2ac1248d2 100644 --- a/Tests/WebParts/GetPnPWebPartPropertyTests.cs +++ b/Tests/WebParts/GetPnPWebPartPropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class GetWebPartPropertyTests diff --git a/Tests/WebParts/GetPnPWebPartTests.cs b/Tests/WebParts/GetPnPWebPartTests.cs index 00df13831..068472725 100644 --- a/Tests/WebParts/GetPnPWebPartTests.cs +++ b/Tests/WebParts/GetPnPWebPartTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class GetWebPartTests diff --git a/Tests/WebParts/GetPnPWebPartXmlTests.cs b/Tests/WebParts/GetPnPWebPartXmlTests.cs index eb4b94914..8a21da463 100644 --- a/Tests/WebParts/GetPnPWebPartXmlTests.cs +++ b/Tests/WebParts/GetPnPWebPartXmlTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class GetWebPartXmlTests diff --git a/Tests/WebParts/RemovePnPWebPartTests.cs b/Tests/WebParts/RemovePnPWebPartTests.cs index d60fdde97..f103a88ae 100644 --- a/Tests/WebParts/RemovePnPWebPartTests.cs +++ b/Tests/WebParts/RemovePnPWebPartTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class RemoveWebPartTests diff --git a/Tests/WebParts/SetPnPWebPartPropertyTests.cs b/Tests/WebParts/SetPnPWebPartPropertyTests.cs index a49716b38..b2ceea013 100644 --- a/Tests/WebParts/SetPnPWebPartPropertyTests.cs +++ b/Tests/WebParts/SetPnPWebPartPropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.WebParts +namespace PnP.PowerShell.Tests.WebParts { [TestClass] public class SetWebPartPropertyTests diff --git a/Tests/Webhooks/AddPnPWebhookSubscriptionTests.cs b/Tests/Webhooks/AddPnPWebhookSubscriptionTests.cs index 6fe8d9528..0c9f738c9 100644 --- a/Tests/Webhooks/AddPnPWebhookSubscriptionTests.cs +++ b/Tests/Webhooks/AddPnPWebhookSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webhooks +namespace PnP.PowerShell.Tests.Webhooks { [TestClass] public class AddWebhookSubscriptionTests diff --git a/Tests/Webhooks/GetPnPWebhookSubscriptionsTests.cs b/Tests/Webhooks/GetPnPWebhookSubscriptionsTests.cs index b022291c5..b212ed536 100644 --- a/Tests/Webhooks/GetPnPWebhookSubscriptionsTests.cs +++ b/Tests/Webhooks/GetPnPWebhookSubscriptionsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webhooks +namespace PnP.PowerShell.Tests.Webhooks { [TestClass] public class GetWebhookSubscriptionsTests diff --git a/Tests/Webhooks/RemovePnPWebhookSubscriptionTests.cs b/Tests/Webhooks/RemovePnPWebhookSubscriptionTests.cs index c7ecbbb30..f5cee98a6 100644 --- a/Tests/Webhooks/RemovePnPWebhookSubscriptionTests.cs +++ b/Tests/Webhooks/RemovePnPWebhookSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webhooks +namespace PnP.PowerShell.Tests.Webhooks { [TestClass] public class RemoveWebhookSubscriptionTests diff --git a/Tests/Webhooks/SetPnPWebhookSubscriptionTests.cs b/Tests/Webhooks/SetPnPWebhookSubscriptionTests.cs index 433e4dfc1..4fc7ae659 100644 --- a/Tests/Webhooks/SetPnPWebhookSubscriptionTests.cs +++ b/Tests/Webhooks/SetPnPWebhookSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webhooks +namespace PnP.PowerShell.Tests.Webhooks { [TestClass] public class SetWebhookSubscriptionTests diff --git a/Tests/Webs/AddPnPIndexedPropertyTests.cs b/Tests/Webs/AddPnPIndexedPropertyTests.cs index b5afa0bfb..a6d7bb4f1 100644 --- a/Tests/Webs/AddPnPIndexedPropertyTests.cs +++ b/Tests/Webs/AddPnPIndexedPropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class AddIndexedPropertyTests diff --git a/Tests/Webs/GetPnPAvailableLanguageTests.cs b/Tests/Webs/GetPnPAvailableLanguageTests.cs index 0ca67a2ec..d124f1849 100644 --- a/Tests/Webs/GetPnPAvailableLanguageTests.cs +++ b/Tests/Webs/GetPnPAvailableLanguageTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetAvailableLanguageTests diff --git a/Tests/Webs/GetPnPIndexedPropertyKeysTests.cs b/Tests/Webs/GetPnPIndexedPropertyKeysTests.cs index e932a7681..75c6b7787 100644 --- a/Tests/Webs/GetPnPIndexedPropertyKeysTests.cs +++ b/Tests/Webs/GetPnPIndexedPropertyKeysTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetIndexedPropertiesTests diff --git a/Tests/Webs/GetPnPPropertyBagTests.cs b/Tests/Webs/GetPnPPropertyBagTests.cs index 0eeca4d90..6b582e8e1 100644 --- a/Tests/Webs/GetPnPPropertyBagTests.cs +++ b/Tests/Webs/GetPnPPropertyBagTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetPropertyBagTests diff --git a/Tests/Webs/GetPnPRequestAccessEmailsTests.cs b/Tests/Webs/GetPnPRequestAccessEmailsTests.cs index e20c0d3c4..3a5996cf1 100644 --- a/Tests/Webs/GetPnPRequestAccessEmailsTests.cs +++ b/Tests/Webs/GetPnPRequestAccessEmailsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetRequestAccessEmailsTests diff --git a/Tests/Webs/GetPnPSubWebsTests.cs b/Tests/Webs/GetPnPSubWebsTests.cs index 886943ec5..974cd1731 100644 --- a/Tests/Webs/GetPnPSubWebsTests.cs +++ b/Tests/Webs/GetPnPSubWebsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetSubWebsTests diff --git a/Tests/Webs/GetPnPWebTemplatesTests.cs b/Tests/Webs/GetPnPWebTemplatesTests.cs index a61cc0852..42f84bf73 100644 --- a/Tests/Webs/GetPnPWebTemplatesTests.cs +++ b/Tests/Webs/GetPnPWebTemplatesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetWebTemplatesTests diff --git a/Tests/Webs/GetPnPWebTests.cs b/Tests/Webs/GetPnPWebTests.cs index 5c2c2ee99..26e4db3cb 100644 --- a/Tests/Webs/GetPnPWebTests.cs +++ b/Tests/Webs/GetPnPWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class GetWebTests diff --git a/Tests/Webs/InvokePnPWebActionTests.cs b/Tests/Webs/InvokePnPWebActionTests.cs index e190e0c97..b636cc09d 100644 --- a/Tests/Webs/InvokePnPWebActionTests.cs +++ b/Tests/Webs/InvokePnPWebActionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class InvokeWebActionTests diff --git a/Tests/Webs/NewPnPWebTests.cs b/Tests/Webs/NewPnPWebTests.cs index 8fe0b8b61..4b06caf17 100644 --- a/Tests/Webs/NewPnPWebTests.cs +++ b/Tests/Webs/NewPnPWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class NewWebTests diff --git a/Tests/Webs/RemovePnPIndexedPropertyTests.cs b/Tests/Webs/RemovePnPIndexedPropertyTests.cs index 904e41df3..4e8588984 100644 --- a/Tests/Webs/RemovePnPIndexedPropertyTests.cs +++ b/Tests/Webs/RemovePnPIndexedPropertyTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class RemovedIndexedPropertyTests diff --git a/Tests/Webs/RemovePnPPropertyBagValueTests.cs b/Tests/Webs/RemovePnPPropertyBagValueTests.cs index 2fc4eba46..6475d4f34 100644 --- a/Tests/Webs/RemovePnPPropertyBagValueTests.cs +++ b/Tests/Webs/RemovePnPPropertyBagValueTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class RemovePropertyBagValueTests diff --git a/Tests/Webs/RemovePnPWebTests.cs b/Tests/Webs/RemovePnPWebTests.cs index 84939c4a4..2be8ec67c 100644 --- a/Tests/Webs/RemovePnPWebTests.cs +++ b/Tests/Webs/RemovePnPWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class RemoveWebTests diff --git a/Tests/Webs/RequestPnPReIndexWebTests.cs b/Tests/Webs/RequestPnPReIndexWebTests.cs index 4beb4a5e5..9b173910e 100644 --- a/Tests/Webs/RequestPnPReIndexWebTests.cs +++ b/Tests/Webs/RequestPnPReIndexWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class RequestReIndexWebTests diff --git a/Tests/Webs/SetPnPIndexedPropertiesTests.cs b/Tests/Webs/SetPnPIndexedPropertiesTests.cs index 9ebeac366..fcec36bd2 100644 --- a/Tests/Webs/SetPnPIndexedPropertiesTests.cs +++ b/Tests/Webs/SetPnPIndexedPropertiesTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class SetIndexedPropertiesTests diff --git a/Tests/Webs/SetPnPPropertyBagValueTests.cs b/Tests/Webs/SetPnPPropertyBagValueTests.cs index 0922ba7cb..ff9ce187d 100644 --- a/Tests/Webs/SetPnPPropertyBagValueTests.cs +++ b/Tests/Webs/SetPnPPropertyBagValueTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class SetPropertyBagValueTests diff --git a/Tests/Webs/SetPnPRequestAccessEmailsTests.cs b/Tests/Webs/SetPnPRequestAccessEmailsTests.cs index 5efc8ed70..5b05e1ee3 100644 --- a/Tests/Webs/SetPnPRequestAccessEmailsTests.cs +++ b/Tests/Webs/SetPnPRequestAccessEmailsTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class SetRequestAccessEmailsTests diff --git a/Tests/Webs/SetPnPWebPermissionTests.cs b/Tests/Webs/SetPnPWebPermissionTests.cs index 7cd177260..b018a41b9 100644 --- a/Tests/Webs/SetPnPWebPermissionTests.cs +++ b/Tests/Webs/SetPnPWebPermissionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class SetWebPermissionTests diff --git a/Tests/Webs/SetPnPWebTests.cs b/Tests/Webs/SetPnPWebTests.cs index e8e717a95..235d74354 100644 --- a/Tests/Webs/SetPnPWebTests.cs +++ b/Tests/Webs/SetPnPWebTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Webs +namespace PnP.PowerShell.Tests.Webs { [TestClass] public class SetWebTests diff --git a/Tests/Workflows/AddPnPWorkflowDefinitionTests.cs b/Tests/Workflows/AddPnPWorkflowDefinitionTests.cs index b2d10d23a..fa66810b2 100644 --- a/Tests/Workflows/AddPnPWorkflowDefinitionTests.cs +++ b/Tests/Workflows/AddPnPWorkflowDefinitionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class AddWorkflowDefinitionTests diff --git a/Tests/Workflows/AddPnPWorkflowSubscriptionTests.cs b/Tests/Workflows/AddPnPWorkflowSubscriptionTests.cs index 32a61eda9..54067f781 100644 --- a/Tests/Workflows/AddPnPWorkflowSubscriptionTests.cs +++ b/Tests/Workflows/AddPnPWorkflowSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class AddWorkflowSubscriptionTests diff --git a/Tests/Workflows/GetPnPWorkflowDefinitionTests.cs b/Tests/Workflows/GetPnPWorkflowDefinitionTests.cs index da3a69cd5..9373142b9 100644 --- a/Tests/Workflows/GetPnPWorkflowDefinitionTests.cs +++ b/Tests/Workflows/GetPnPWorkflowDefinitionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class GetWorkflowDefinitionTests diff --git a/Tests/Workflows/GetPnPWorkflowInstanceTests.cs b/Tests/Workflows/GetPnPWorkflowInstanceTests.cs index f1856afd4..cbfe3ce48 100644 --- a/Tests/Workflows/GetPnPWorkflowInstanceTests.cs +++ b/Tests/Workflows/GetPnPWorkflowInstanceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class GetWorkflowInstanceTests diff --git a/Tests/Workflows/GetPnPWorkflowSubscriptionTests.cs b/Tests/Workflows/GetPnPWorkflowSubscriptionTests.cs index 7db930d80..fae3dc9ac 100644 --- a/Tests/Workflows/GetPnPWorkflowSubscriptionTests.cs +++ b/Tests/Workflows/GetPnPWorkflowSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class GetWorkflowSubscriptionTests diff --git a/Tests/Workflows/RemovePnPWorkflowDefinitionTests.cs b/Tests/Workflows/RemovePnPWorkflowDefinitionTests.cs index 9fc3a641e..eee4d24b1 100644 --- a/Tests/Workflows/RemovePnPWorkflowDefinitionTests.cs +++ b/Tests/Workflows/RemovePnPWorkflowDefinitionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class RemoveWorkflowDefinitionTests diff --git a/Tests/Workflows/RemovePnPWorkflowSubscriptionTests.cs b/Tests/Workflows/RemovePnPWorkflowSubscriptionTests.cs index 99e19cbc3..f16a6d6c2 100644 --- a/Tests/Workflows/RemovePnPWorkflowSubscriptionTests.cs +++ b/Tests/Workflows/RemovePnPWorkflowSubscriptionTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class RemoveWorkflowSubscriptionTests diff --git a/Tests/Workflows/ResumePnPWorkflowInstanceTests.cs b/Tests/Workflows/ResumePnPWorkflowInstanceTests.cs index 35f97afdb..1a0dc19ec 100644 --- a/Tests/Workflows/ResumePnPWorkflowInstanceTests.cs +++ b/Tests/Workflows/ResumePnPWorkflowInstanceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class ResumeWorkflowInstanceTests diff --git a/Tests/Workflows/StartPnPWorkflowInstanceTests.cs b/Tests/Workflows/StartPnPWorkflowInstanceTests.cs index c0b159ec4..8d7685749 100644 --- a/Tests/Workflows/StartPnPWorkflowInstanceTests.cs +++ b/Tests/Workflows/StartPnPWorkflowInstanceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class StartWorkflowInstanceTests diff --git a/Tests/Workflows/StopPnPWorkflowInstanceTests.cs b/Tests/Workflows/StopPnPWorkflowInstanceTests.cs index 5f81300ac..218524681 100644 --- a/Tests/Workflows/StopPnPWorkflowInstanceTests.cs +++ b/Tests/Workflows/StopPnPWorkflowInstanceTests.cs @@ -2,7 +2,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Management.Automation.Runspaces; -namespace SharePointPnP.PowerShell.Tests.Workflows +namespace PnP.PowerShell.Tests.Workflows { [TestClass] public class StopWorkflowInstanceTests From 2762a011703711a9ee4190292b09758226fcebd0 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 11:00:17 +0200 Subject: [PATCH 02/35] Cleanup and x-plat changes --- Commands/Base/PnPConnection.cs | 47 +---------- Commands/PnPPowerShell.csproj | 3 +- .../SharePointPnP.PowerShell.Commands.csproj | 13 +++- Commands/Utilities/BrowserHelper.cs | 77 +++++-------------- Commands/Utilities/Clipboard.cs | 54 ------------- Commands/app.config | 2 +- Commands/packages.config | 4 +- 7 files changed, 41 insertions(+), 159 deletions(-) delete mode 100644 Commands/Utilities/Clipboard.cs diff --git a/Commands/Base/PnPConnection.cs b/Commands/Base/PnPConnection.cs index 650f2fc79..1c1541f69 100644 --- a/Commands/Base/PnPConnection.cs +++ b/Commands/Base/PnPConnection.cs @@ -16,6 +16,7 @@ using System.Reflection; using System.Security.Cryptography.X509Certificates; using System.Web; +using TextCopy; namespace SharePointPnP.PowerShell.Commands.Base { @@ -144,30 +145,12 @@ internal static Action DeviceLoginCallback(PSHost host, bool l { return deviceCodeResult => { + if (launchBrowser) { - Utilities.Clipboard.CopyNew(deviceCodeResult.UserCode); + ClipboardService.SetText(deviceCodeResult.UserCode); host?.UI.WriteLine($"Code {deviceCodeResult.UserCode} has been copied to clipboard"); -#if !NETSTANDARD2_1 - BrowserHelper.LaunchBrowser(deviceCodeResult.VerificationUrl, (success) => - { - }); -#else - OpenBrowser(returnData["verification_url"]); - messageCallback(returnData["message"]); - - var tokenResult = GetTokenResult(connectionUri, returnData, messageCallback, progressCallback, cancelRequest); - - if (tokenResult != null) - { - progressCallback("Token received"); - spoConnection = new PnPConnection(tokenResult, ConnectionMethod.GraphDeviceLogin, ConnectionType.O365, minimalHealthScore, retryCount, retryWait, PnPPSVersionTag, host, disableTelemetry, InitializationType.GraphDeviceLogin); - } - else - { - progressCallback("No token received."); - } -#endif + BrowserHelper.LaunchBrowser(deviceCodeResult.VerificationUrl); } else { @@ -185,26 +168,6 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles { GenericToken token = null; - //Validate if we have a token already - //if (AccessTokens.ContainsKey(tokenAudience)) - //{ - // // We have a token already, ensure it is still valid - // token = AccessTokens[tokenAudience]; - - // if (token.ExpiresOn > DateTime.Now) - // { - // var validationResults = ValidateTokenForPermissions(token, tokenAudience, orRoles, andRoles, tokenType); - // if (validationResults.valid) - // { - // return token; - // } - // throw new PSSecurityException($"Access to {tokenAudience} failed because the app registration {ClientId} in tenant {Tenant} is not granted {validationResults.message}"); - // } - - // // Token was no longer valid, proceed with trying to create a new token - //} - - // We do not have a token for the requested audience yet or it was no longer valid, try to create (a new) one switch (tokenAudience) { case TokenAudience.MicrosoftGraph: @@ -258,8 +221,6 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles { throw new PSSecurityException($"Access to {tokenAudience} failed because the app registration {ClientId} in tenant {Tenant} is not granted {validationResults.message}"); } - // Managed to create a token for the requested audience, add it to our collection with tokens - //AccessTokens[tokenAudience] = token; return token; } diff --git a/Commands/PnPPowerShell.csproj b/Commands/PnPPowerShell.csproj index 3099189c9..854203473 100644 --- a/Commands/PnPPowerShell.csproj +++ b/Commands/PnPPowerShell.csproj @@ -39,12 +39,13 @@ - + + diff --git a/Commands/SharePointPnP.PowerShell.Commands.csproj b/Commands/SharePointPnP.PowerShell.Commands.csproj index 058a9a470..eea55564e 100644 --- a/Commands/SharePointPnP.PowerShell.Commands.csproj +++ b/Commands/SharePointPnP.PowerShell.Commands.csproj @@ -434,8 +434,8 @@ ..\packages\Microsoft.Extensions.Caching.Memory.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll - - ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll + + ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.3.1.4\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll ..\packages\Microsoft.Extensions.Options.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Options.dll @@ -529,6 +529,11 @@ ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll + + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + True + True + @@ -551,6 +556,9 @@ + + ..\packages\TextCopy.4.2.0\lib\net461\TextCopy.dll + @@ -962,7 +970,6 @@ - diff --git a/Commands/Utilities/BrowserHelper.cs b/Commands/Utilities/BrowserHelper.cs index f2174054f..b001a627e 100644 --- a/Commands/Utilities/BrowserHelper.cs +++ b/Commands/Utilities/BrowserHelper.cs @@ -1,25 +1,24 @@ -#if !NETSTANDARD2_1 -using System; +using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; +#if !NETSTANDARD2_1 using System.Windows.Forms; +#endif namespace SharePointPnP.PowerShell.Commands.Utilities { internal static class BrowserHelper { - public static void OpenBrowser(string url, Action success, System.Drawing.Icon icon = null) +#if !NETSTANDARD2_1 + public static void LaunchBrowser(string url) { var thread = new Thread(() => { var form = new System.Windows.Forms.Form(); - if (icon != null) - { - form.Icon = icon; - } var browser = new System.Windows.Forms.WebBrowser { ScriptErrorsSuppressed = true, @@ -32,16 +31,11 @@ public static void OpenBrowser(string url, Action success, System.Drawing. form.Text = $"Authenticate"; form.Controls.Add(browser); form.ResumeLayout(false); - form.FormClosed += (sender, args) => - { - success(false); - }; browser.Navigated += (sender, args) => { - if(browser.Url.AbsoluteUri.Equals("https://login.microsoftonline.com/common/login", StringComparison.InvariantCultureIgnoreCase) || browser.Url.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/reprocess", StringComparison.InvariantCultureIgnoreCase)) + if (browser.Url.AbsoluteUri.Equals("https://login.microsoftonline.com/common/login", StringComparison.InvariantCultureIgnoreCase) || browser.Url.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/reprocess", StringComparison.InvariantCultureIgnoreCase)) { form.Close(); - success(true); } }; browser.Navigate(url); @@ -55,51 +49,22 @@ public static void OpenBrowser(string url, Action success, System.Drawing. thread.Start(); thread.Join(); } - - public static void LaunchBrowser(string url, Action success, System.Drawing.Icon icon = null) +#else + public static void LaunchBrowser(string url) { - var thread = new Thread(() => + if (OperatingSystem.IsWindows()) { - var form = new System.Windows.Forms.Form(); - if (icon != null) - { - form.Icon = icon; - } - var browser = new System.Windows.Forms.WebBrowser - { - ScriptErrorsSuppressed = true, - Dock = DockStyle.Fill - }; - - form.SuspendLayout(); - form.Width = 568; - form.Height = 1012; - form.Text = $"Authenticate"; - form.Controls.Add(browser); - form.ResumeLayout(false); - form.FormClosed += (sender, args) => - { - success(false); - }; - browser.Navigated += (sender, args) => - { - if (browser.Url.AbsoluteUri.Equals("https://login.microsoftonline.com/common/login", StringComparison.InvariantCultureIgnoreCase) || browser.Url.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/reprocess", StringComparison.InvariantCultureIgnoreCase)) - { - form.Close(); - success(true); - } - }; - browser.Navigate(url); - - form.Focus(); - form.ShowDialog(); - browser.Dispose(); - }); - - thread.SetApartmentState(ApartmentState.STA); - thread.Start(); - thread.Join(); + Process.Start(new ProcessStartInfo(url) { UseShellExecute = true }); // Works ok on windows + } + else if (OperatingSystem.IsLinux()) + { + Process.Start("xdg-open", url); // Works ok on linux + } + else if (OperatingSystem.IsMacOS()) + { + Process.Start("open", url); // Not tested + } } +#endif } } -#endif \ No newline at end of file diff --git a/Commands/Utilities/Clipboard.cs b/Commands/Utilities/Clipboard.cs deleted file mode 100644 index 0612b02e5..000000000 --- a/Commands/Utilities/Clipboard.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Threading; - -namespace SharePointPnP.PowerShell.Commands.Utilities -{ - public static class Clipboard - { - public static void Copy(string val) - { -#if !NETSTANDARD2_1 - System.Windows.Forms.Clipboard.SetText(val); -#else - var tempfile = System.IO.Path.GetTempFileName(); - System.IO.File.WriteAllText(tempfile, val); - if (OperatingSystem.IsWindows()) - { - var cmd = $"clip < {tempfile}"; - Shell.Bat(cmd); - } - - if (OperatingSystem.IsMacOS()) - { - var cmd = $"pbcopy < {tempfile}"; - Shell.Bash(cmd); - } - System.IO.File.Delete(tempfile); -#endif - } - - public static void CopyNew(string value) - { - Exception threadEx = null; - Thread staThread = new Thread( - - delegate () - { - try - { - System.Windows.Forms.Clipboard.SetText(value); - } - - catch (Exception ex) - { - threadEx = ex; - } - }); - staThread.SetApartmentState(ApartmentState.STA); - staThread.Start(); - staThread.Join(); - } - } -} diff --git a/Commands/app.config b/Commands/app.config index f8c096203..bcfc73bdb 100644 --- a/Commands/app.config +++ b/Commands/app.config @@ -71,7 +71,7 @@ - + diff --git a/Commands/packages.config b/Commands/packages.config index 45cceac5b..86454dcc7 100644 --- a/Commands/packages.config +++ b/Commands/packages.config @@ -11,7 +11,7 @@ - + @@ -44,8 +44,10 @@ + + \ No newline at end of file From 8d7fbce2cd01a1b507fbe7b43ee5199f01b7d6d8 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:03:21 +0200 Subject: [PATCH 03/35] updated assembly name --- HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj b/HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj index 6b49f4543..e033bef1f 100644 --- a/HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj +++ b/HelpAttributes/PnP.PowerShell.CmdletHelpAttributes.csproj @@ -7,8 +7,8 @@ {FDD50BBD-AE78-4B10-9549-0566686719AB} Library Properties - SharePointPnP.PowerShell.CmdletHelpAttributes - SharePointPnP.PowerShell.CmdletHelpAttributes + PnP.PowerShell.CmdletHelpAttributes + PnP.PowerShell.CmdletHelpAttributes v4.6.1 512 From 036380cc9b2e5d60785d356fb5cd1b910124228f Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:03:55 +0200 Subject: [PATCH 04/35] Updated namespace --- Commands/Base/PipeBinds/FileVersionPipeBind.cs | 2 +- Commands/Files/GetFileVersion.cs | 4 ++-- Commands/Files/RemoveFileVersion.cs | 8 ++++---- Commands/Files/RestoreFileVersion.cs | 8 ++++---- .../PnP.PowerShell.Online.Commands.Format.ps1xml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Commands/Base/PipeBinds/FileVersionPipeBind.cs b/Commands/Base/PipeBinds/FileVersionPipeBind.cs index aa8a5e4eb..00ba3c5e3 100644 --- a/Commands/Base/PipeBinds/FileVersionPipeBind.cs +++ b/Commands/Base/PipeBinds/FileVersionPipeBind.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds +namespace PnP.PowerShell.Commands.Base.PipeBinds { public class FileVersionPipeBind { diff --git a/Commands/Files/GetFileVersion.cs b/Commands/Files/GetFileVersion.cs index 2481e72b3..31aa085dc 100644 --- a/Commands/Files/GetFileVersion.cs +++ b/Commands/Files/GetFileVersion.cs @@ -1,12 +1,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.CmdletHelpAttributes; using System; using System.IO; using System.Management.Automation; using File = Microsoft.SharePoint.Client.File; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Get, "PnPFileVersion", DefaultParameterSetName = "Return as file object")] [CmdletHelp("Retrieves all versions of a file.", diff --git a/Commands/Files/RemoveFileVersion.cs b/Commands/Files/RemoveFileVersion.cs index 7acb03aca..3aa408394 100644 --- a/Commands/Files/RemoveFileVersion.cs +++ b/Commands/Files/RemoveFileVersion.cs @@ -1,12 +1,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; using File = Microsoft.SharePoint.Client.File; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using Resources = PnP.PowerShell.Commands.Properties.Resources; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsCommon.Remove, "PnPFileVersion", DefaultParameterSetName = "Return as file object")] [CmdletHelp("Removes all or a specific file version.", diff --git a/Commands/Files/RestoreFileVersion.cs b/Commands/Files/RestoreFileVersion.cs index 08e1e7766..d263e09b8 100644 --- a/Commands/Files/RestoreFileVersion.cs +++ b/Commands/Files/RestoreFileVersion.cs @@ -1,12 +1,12 @@ using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; -using Resources = SharePointPnP.PowerShell.Commands.Properties.Resources; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; +using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Management.Automation; using File = Microsoft.SharePoint.Client.File; -namespace SharePointPnP.PowerShell.Commands.Files +namespace PnP.PowerShell.Commands.Files { [Cmdlet(VerbsData.Restore, "PnPFileVersion", DefaultParameterSetName = "Return as file object")] [CmdletHelp("Restores a specific file version.", diff --git a/Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml b/Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml index 3270b3ed4..b429c65dc 100644 --- a/Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml +++ b/Commands/ModuleFiles/PnP.PowerShell.Online.Commands.Format.ps1xml @@ -2103,7 +2103,7 @@ TeamTab - SharePointPnP.PowerShell.Commands.Model.Teams.TeamTab + PnP.PowerShell.Commands.Model.Teams.TeamTab From b6cef6607c88284e45819c9b9c94fda833a10a6c Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:04:02 +0200 Subject: [PATCH 05/35] Updated version --- Commands/Properties/AssemblyInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Properties/AssemblyInfo.cs b/Commands/Properties/AssemblyInfo.cs index 9a5b7659b..e3884b903 100644 --- a/Commands/Properties/AssemblyInfo.cs +++ b/Commands/Properties/AssemblyInfo.cs @@ -51,8 +51,8 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] #if !NETSTANDARD2_1 -[assembly: AssemblyVersion("3.23.2007.0")] -[assembly: AssemblyFileVersion("3.23.2007.0")] +[assembly: AssemblyVersion("3.24.2008.0")] +[assembly: AssemblyFileVersion("3.24.2008.0")] #else [assembly: AssemblyVersion("4.0.0.0")] [assembly: AssemblyFileVersion("4.0.0.0")] From 5a9fada7237656d411a4cd61ecd516222768bb48 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:04:10 +0200 Subject: [PATCH 06/35] Updated namespace --- ModuleFilesGenerator/ModuleManifestGenerator.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ModuleFilesGenerator/ModuleManifestGenerator.cs b/ModuleFilesGenerator/ModuleManifestGenerator.cs index 74c5d2188..58344fdc8 100644 --- a/ModuleFilesGenerator/ModuleManifestGenerator.cs +++ b/ModuleFilesGenerator/ModuleManifestGenerator.cs @@ -68,11 +68,8 @@ internal void Generate() } // Create Module Manifest -#if !NETCOREAPP3_0 var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\PnPPowerShell{spVersion}.psd1"; -#else - var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\PnPPowerShellCore.psd1"; -#endif + var cmdletsToExportString = string.Join(",", _cmdlets.Select(c => "'" + c.FullCommand + "'")); string aliasesToExportString = null; if (aliasesToExport.Any()) From d51c2556175baad923518f0797d48cfdfef5228e Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:07:32 +0200 Subject: [PATCH 07/35] updated version --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 0fea99d2e..ec58cd420 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.23.2007.0 \ No newline at end of file +3.24.2008.0 \ No newline at end of file From 475a891e4f05a38c1a5b3dd7169c0a63a20e409b Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:16:27 +0200 Subject: [PATCH 08/35] Fixed namespaces --- Commands/Graph/AddMicrosoft365GroupOwner.cs | 6 +++--- ...PnPPowerShell.csproj => PnP.PowerShell.Core.csproj} | 6 +++--- ...es.csproj => PnP.PowerShell.Core.Attributes.csproj} | 0 ...=> PnP.PowerShell.Core.ModuleFilesGenerator.csproj} | 10 +++++----- SharePointPnP.PowerShell.sln => PnP.PowerShell.sln | 0 PnPPowerShell.sln => PnPPowerShellCore.sln | 10 +++++----- 6 files changed, 16 insertions(+), 16 deletions(-) rename Commands/{PnPPowerShell.csproj => PnP.PowerShell.Core.csproj} (94%) rename HelpAttributes/{SharePointPnP.PowerShell.Core.Attributes.csproj => PnP.PowerShell.Core.Attributes.csproj} (100%) rename ModuleFilesGenerator/{SharePointPnP.PowerShell.Core.ModuleFilesGenerator.csproj => PnP.PowerShell.Core.ModuleFilesGenerator.csproj} (68%) rename SharePointPnP.PowerShell.sln => PnP.PowerShell.sln (100%) rename PnPPowerShell.sln => PnPPowerShellCore.sln (76%) diff --git a/Commands/Graph/AddMicrosoft365GroupOwner.cs b/Commands/Graph/AddMicrosoft365GroupOwner.cs index 8646f7eba..aca90e1ec 100644 --- a/Commands/Graph/AddMicrosoft365GroupOwner.cs +++ b/Commands/Graph/AddMicrosoft365GroupOwner.cs @@ -1,9 +1,9 @@ #if !ONPREMISES using OfficeDevPnP.Core.Entities; using OfficeDevPnP.Core.Framework.Graph; -using SharePointPnP.PowerShell.CmdletHelpAttributes; -using SharePointPnP.PowerShell.Commands.Base; -using SharePointPnP.PowerShell.Commands.Base.PipeBinds; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base; +using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; namespace SharePointPnP.PowerShell.Commands.Graph diff --git a/Commands/PnPPowerShell.csproj b/Commands/PnP.PowerShell.Core.csproj similarity index 94% rename from Commands/PnPPowerShell.csproj rename to Commands/PnP.PowerShell.Core.csproj index 854203473..3f6170576 100644 --- a/Commands/PnPPowerShell.csproj +++ b/Commands/PnP.PowerShell.Core.csproj @@ -5,7 +5,7 @@ false true PnP.PowerShell.Core - SharePointPnP.PowerShell.Commands + PnP.PowerShell.Commands false PnP.PowerShell.Core PnP.PowerShell.Core @@ -57,7 +57,7 @@ - + @@ -123,7 +123,7 @@ - + diff --git a/HelpAttributes/SharePointPnP.PowerShell.Core.Attributes.csproj b/HelpAttributes/PnP.PowerShell.Core.Attributes.csproj similarity index 100% rename from HelpAttributes/SharePointPnP.PowerShell.Core.Attributes.csproj rename to HelpAttributes/PnP.PowerShell.Core.Attributes.csproj diff --git a/ModuleFilesGenerator/SharePointPnP.PowerShell.Core.ModuleFilesGenerator.csproj b/ModuleFilesGenerator/PnP.PowerShell.Core.ModuleFilesGenerator.csproj similarity index 68% rename from ModuleFilesGenerator/SharePointPnP.PowerShell.Core.ModuleFilesGenerator.csproj rename to ModuleFilesGenerator/PnP.PowerShell.Core.ModuleFilesGenerator.csproj index 1cc36b74d..f8dfdca2d 100644 --- a/ModuleFilesGenerator/SharePointPnP.PowerShell.Core.ModuleFilesGenerator.csproj +++ b/ModuleFilesGenerator/PnP.PowerShell.Core.ModuleFilesGenerator.csproj @@ -3,9 +3,9 @@ Exe netcoreapp3.0 - SharePointPnP.PowerShell.ModuleFilesGenerator - SharePointPnP.PowerShell.ModuleFilesGenerator - SharePointPnP.PowerShell.ModuleFilesGenerator.GenerateModuleFiles + PnP.PowerShell.ModuleFilesGenerator + PnP.PowerShell.ModuleFilesGenerator + PnP.PowerShell.ModuleFilesGenerator.GenerateModuleFiles @@ -20,11 +20,11 @@ - + - + diff --git a/SharePointPnP.PowerShell.sln b/PnP.PowerShell.sln similarity index 100% rename from SharePointPnP.PowerShell.sln rename to PnP.PowerShell.sln diff --git a/PnPPowerShell.sln b/PnPPowerShellCore.sln similarity index 76% rename from PnPPowerShell.sln rename to PnPPowerShellCore.sln index f98634714..e82969799 100644 --- a/PnPPowerShell.sln +++ b/PnPPowerShellCore.sln @@ -1,18 +1,18 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.27130.2036 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29926.136 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnPPowerShell", "Commands\PnPPowerShell.csproj", "{F91159F1-31F8-47CF-B546-9487F9EF8426}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnP.PowerShell.Core", "Commands\PnP.PowerShell.Core.csproj", "{F91159F1-31F8-47CF-B546-9487F9EF8426}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharePointPnP.PowerShell.Core.Attributes", "HelpAttributes\SharePointPnP.PowerShell.Core.Attributes.csproj", "{2F4E9C95-E61A-44AB-8983-108ADCFE23F8}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnP.PowerShell.Core.Attributes", "HelpAttributes\PnP.PowerShell.Core.Attributes.csproj", "{2F4E9C95-E61A-44AB-8983-108ADCFE23F8}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{55B21B7C-D936-4411-B03C-6030A7C826A1}" ProjectSection(SolutionItems) = preProject PostBuild.ps1 = PostBuild.ps1 EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharePointPnP.PowerShell.Core.ModuleFilesGenerator", "ModuleFilesGenerator\SharePointPnP.PowerShell.Core.ModuleFilesGenerator.csproj", "{2B367283-B36E-43BB-9325-7D2DF675906D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PnP.PowerShell.Core.ModuleFilesGenerator", "ModuleFilesGenerator\PnP.PowerShell.Core.ModuleFilesGenerator.csproj", "{2B367283-B36E-43BB-9325-7D2DF675906D}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{6D788265-F91C-4E2E-AEEE-23A012871023}" ProjectSection(SolutionItems) = preProject From 0d5d134951a072f5858e92cb1e83677b714fead2 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 14 Jul 2020 12:18:03 +0200 Subject: [PATCH 09/35] Fixed namespaces --- Commands/Graph/AddMicrosoft365GroupOwner.cs | 2 +- Commands/PnP.PowerShell.Commands.csproj | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Commands/Graph/AddMicrosoft365GroupOwner.cs b/Commands/Graph/AddMicrosoft365GroupOwner.cs index aca90e1ec..7c529be20 100644 --- a/Commands/Graph/AddMicrosoft365GroupOwner.cs +++ b/Commands/Graph/AddMicrosoft365GroupOwner.cs @@ -6,7 +6,7 @@ using PnP.PowerShell.Commands.Base.PipeBinds; using System.Management.Automation; -namespace SharePointPnP.PowerShell.Commands.Graph +namespace PnP.PowerShell.Commands.Graph { [Cmdlet(VerbsCommon.Add, "PnPMicrosoft365GroupOwner")] [Alias("Add-PnPUnifiedGroupOwner")] diff --git a/Commands/PnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj index 64df3e303..71e5cef60 100644 --- a/Commands/PnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -643,6 +643,7 @@ + From 60726c5313b28c1c0afc6718f7266675097f77da Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 15 Jul 2020 11:50:25 +0200 Subject: [PATCH 10/35] Fixed identity check issue --- Commands/Teams/RemoveTeamsTab.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Teams/RemoveTeamsTab.cs b/Commands/Teams/RemoveTeamsTab.cs index 86b08914a..240471571 100644 --- a/Commands/Teams/RemoveTeamsTab.cs +++ b/Commands/Teams/RemoveTeamsTab.cs @@ -46,7 +46,7 @@ protected override void ExecuteCmdlet() if (channelId != null) { var tabId = string.Empty; - if (string.IsNullOrEmpty(Identity.Id)) + if (!string.IsNullOrEmpty(Identity.Id)) { tabId = Identity.Id.ToString(); } @@ -93,4 +93,4 @@ protected override void ExecuteCmdlet() } } } -#endif \ No newline at end of file +#endif From 37fecca5d68693e777ce7a482814d14395ca83cb Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 15 Jul 2020 17:32:02 +0200 Subject: [PATCH 11/35] Move to System.Text.Json --- Commands/Admin/AddTenantTheme.cs | 13 ++- Commands/Admin/GetStorageEntity.cs | 5 +- Commands/Admin/GetTenantId.cs | 18 ++-- Commands/Admin/GetTenantTheme.cs | 25 ++++- Commands/Admin/RemoveStorageEntity.cs | 6 -- Commands/Admin/SetStorageEntity.cs | 6 -- Commands/Base/AddStoredCredential.cs | 6 +- Commands/Base/BasePSCmdlet.cs | 54 ++++++++-- Commands/Base/ConnectOnline.cs | 36 ++++--- Commands/Base/DisablePowerShellTelemetry.cs | 2 +- Commands/Base/DisconnectOnline.cs | 4 +- Commands/Base/GetAccessToken.cs | 2 +- Commands/Base/GetStoredCredential.cs | 8 +- .../InitializePowerShellAuthentication.cs | 6 +- Commands/Base/InvokeSPRestMethod.cs | 10 +- Commands/Base/PipeBinds/PagePipeBind.cs | 4 +- Commands/Base/PipeBinds/TeamsTabPipeBind.cs | 32 ++++-- Commands/Base/PnPConnection.cs | 10 +- Commands/Base/PnPConnectionHelper.cs | 20 ++-- Commands/Base/PnPOfficeManagementApiCmdlet.cs | 4 + Commands/Base/RemoveStoredCredential.cs | 4 +- Commands/Base/SetTraceLog.cs | 2 +- Commands/Base/TokenHandling.cs | 14 +-- Commands/Branding/DisableResponsiveUI.cs | 4 +- Commands/Branding/EnableResponsiveUI.cs | 4 +- Commands/Branding/GetTheme.cs | 4 +- Commands/Branding/SetTheme.cs | 8 +- .../ConvertToClientSidePage.cs | 2 +- .../ExportClientSidePageMapping.cs | 2 +- .../SaveClientSidePageConversionLog.cs | 2 +- Commands/Diagnostic/MeasureResponseTime.cs | 2 +- .../Graph/ResetMicrosoft365GroupExpiration.cs | 2 +- .../GetOffice365CurrentServiceStatus.cs | 12 ++- .../GetOffice365HistoricalServiceStatus.cs | 16 ++- .../GetOffice365ServiceMessage.cs | 18 ++-- .../ManagementApi/GetOffice365Services.cs | 11 +- Commands/ManagementApi/GetUnifiedAuditLog.cs | 37 +++++-- Commands/Model/AzureApp.cs | 15 ++- Commands/Model/GenericToken.cs | 31 ++++-- Commands/Model/ManagementApiFeature.cs | 7 +- Commands/Model/ManagementApiFeatureStatus.cs | 10 +- Commands/Model/ManagementApiService.cs | 10 +- Commands/Model/ManagementApiServiceMessage.cs | 42 +------- .../Model/ManagementApiServiceMessageText.cs | 5 +- Commands/Model/ManagementApiServiceStatus.cs | 11 +- Commands/Model/ManagementApiSubscription.cs | 9 +- .../Model/ManagementApiSubscriptionContent.cs | 8 +- Commands/Model/OfficeManagementApiToken.cs | 2 +- Commands/Model/ResponseCollection.cs | 15 --- Commands/Model/SPOTheme.cs | 8 +- Commands/Model/Teams/Group.cs | 12 +-- Commands/Model/Teams/Team.cs | 9 +- Commands/Model/Teams/TeamChannel.cs | 19 ++++ Commands/Model/Teams/TeamChannelMessage.cs | 10 +- Commands/Model/Teams/TeamFunSettings.cs | 8 +- Commands/Model/Teams/TeamSettings.cs | 16 +-- Commands/Model/Teams/TeamTab.cs | 9 +- Commands/Model/Teams/TeamTabResource.cs | 2 + Commands/PnP.PowerShell.Commands.csproj | 34 +++--- Commands/PnP.PowerShell.Core.csproj | 4 +- Commands/Properties/AssemblyInfo.cs | 4 +- Commands/Provider/SPOContentReaderWriter.cs | 2 +- Commands/Provider/SPOProvider.cs | 2 +- .../Site/AddFileToProvisioningTemplate.cs | 2 +- .../Site/ExportListToProvisioningTemplate.cs | 2 +- .../Site/GetProvisioningTemplate.cs | 2 +- .../Site/SaveProvisioningTemplate.cs | 2 +- .../Provisioning/Tenant/SaveTenantTemplate.cs | 2 +- Commands/Site/SetSite.cs | 2 +- Commands/Teams/AddTeamsChannel.cs | 24 +++-- Commands/Teams/GetTeamsTab.cs | 10 +- Commands/Teams/RemoveTeamsTab.cs | 46 ++++---- Commands/Teams/SetTeamsTeam.cs | 2 +- Commands/Utilities/AzureAuthHelper.cs | 2 +- Commands/Utilities/BrowserHelper.cs | 4 +- Commands/Utilities/CredentialManager.cs | 14 +-- Commands/Utilities/DynamicLinq.cs | 4 +- Commands/Utilities/IsolatedStorage.cs | 2 +- Commands/Utilities/OperatingSystem.cs | 6 +- Commands/Utilities/REST/GraphCollection.cs | 8 +- Commands/Utilities/REST/GraphHelper.cs | 102 +++++++++++------- Commands/Utilities/REST/MetadataType.cs | 6 +- Commands/Utilities/REST/RestHelper.cs | 72 +------------ Commands/Utilities/REST/RestRequest.cs | 14 ++- Commands/Utilities/Shell.cs | 2 +- Commands/Utilities/TeamsUtility.cs | 41 ++++--- Commands/app.config | 24 +++++ Commands/packages.config | 14 ++- .../PnP.PowerShell.Core.Attributes.csproj | 2 +- ...erShellCore.sln => PnP.PowerShell.Core.sln | 0 90 files changed, 585 insertions(+), 545 deletions(-) delete mode 100644 Commands/Model/ResponseCollection.cs rename PnPPowerShellCore.sln => PnP.PowerShell.Core.sln (100%) diff --git a/Commands/Admin/AddTenantTheme.cs b/Commands/Admin/AddTenantTheme.cs index b1490abf9..6b0c4bcc4 100644 --- a/Commands/Admin/AddTenantTheme.cs +++ b/Commands/Admin/AddTenantTheme.cs @@ -8,8 +8,8 @@ using PnP.PowerShell.Commands.Base.PipeBinds; using System; using PnP.PowerShell.Commands.Model; -using Newtonsoft.Json; using System.Linq; +using System.Text.Json; namespace PnP.PowerShell.Commands.Admin { @@ -73,14 +73,17 @@ protected override void ExecuteCmdlet() { if (Overwrite.ToBool()) { - Tenant.UpdateTenantTheme(Identity.Name, JsonConvert.SerializeObject(theme)); + Tenant.UpdateTenantTheme(Identity.Name, JsonSerializer.Serialize(theme)); ClientContext.ExecuteQueryRetry(); - } else + } + else { WriteError(new ErrorRecord(new Exception($"Theme exists"), "THEMEEXISTS", ErrorCategory.ResourceExists, Identity.Name)); } - } else { - Tenant.AddTenantTheme(Identity.Name, JsonConvert.SerializeObject(theme)); + } + else + { + Tenant.AddTenantTheme(Identity.Name, JsonSerializer.Serialize(theme)); ClientContext.ExecuteQueryRetry(); } } diff --git a/Commands/Admin/GetStorageEntity.cs b/Commands/Admin/GetStorageEntity.cs index a60a2c7a3..8b7a654dc 100644 --- a/Commands/Admin/GetStorageEntity.cs +++ b/Commands/Admin/GetStorageEntity.cs @@ -7,8 +7,7 @@ using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Enums; using System.Collections.Generic; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; +using System.Text.Json; namespace PnP.PowerShell.Commands { @@ -62,7 +61,7 @@ protected override void ExecuteCmdlet() if (!string.IsNullOrEmpty(storageEntitiesIndex)) { - var storageEntitiesDict = JsonConvert.DeserializeObject>>(storageEntitiesIndex); + var storageEntitiesDict = JsonSerializer.Deserialize>>(storageEntitiesIndex); var storageEntities = new List(); foreach (var key in storageEntitiesDict.Keys) diff --git a/Commands/Admin/GetTenantId.cs b/Commands/Admin/GetTenantId.cs index 550245448..abc9c7c03 100644 --- a/Commands/Admin/GetTenantId.cs +++ b/Commands/Admin/GetTenantId.cs @@ -1,14 +1,10 @@ #if !ONPREMISES using Microsoft.SharePoint.Client; -using Newtonsoft.Json.Linq; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using System; -using System.Collections.Generic; -using System.Linq; using System.Management.Automation; -using System.Text; -using System.Threading.Tasks; +using System.Text.Json; using System.Web; namespace PnP.PowerShell.Commands.Admin @@ -47,14 +43,17 @@ protected override void ProcessRecord() } catch (Exception ex) { -#if !NETSTANDARD2_1 if (ex.InnerException != null) { if (ex.InnerException is HttpException) { var message = ex.InnerException.Message; - var obj = JObject.Parse(message); - WriteObject(obj["error_description"].ToString()); + + using (var jdoc = JsonDocument.Parse(message)) + { + var errorDescription = jdoc.RootElement.GetProperty("error_description").GetString(); + WriteObject(errorDescription); + } } else { @@ -65,9 +64,6 @@ protected override void ProcessRecord() { throw ex; } -#else - throw ex; -#endif } } } diff --git a/Commands/Admin/GetTenantTheme.cs b/Commands/Admin/GetTenantTheme.cs index c989794a2..48081b94f 100644 --- a/Commands/Admin/GetTenantTheme.cs +++ b/Commands/Admin/GetTenantTheme.cs @@ -9,6 +9,7 @@ using System; using System.Linq; using PnP.PowerShell.Commands.Model; +using System.Text.Json; namespace PnP.PowerShell.Commands.Admin { @@ -23,11 +24,17 @@ namespace PnP.PowerShell.Commands.Admin [CmdletExample( Code = @"PS:> Get-PnPTenantTheme -Name ""MyCompanyTheme""", Remarks = @"Returns the specified theme", SortOrder = 1)] + [CmdletExample( + Code = @"PS:> Get-PnPTenantTheme -Name ""MyCompanyTheme"" -AsJson", + Remarks = @"Returns the specified theme formatted as JSON", SortOrder = 2)] public class GetTenantTheme : PnPAdminCmdlet { [Parameter(Mandatory = false, Position = 0, ValueFromPipeline = true, HelpMessage = "The name of the theme to retrieve")] public string Name; + [Parameter(Mandatory = false, Position = 1, HelpMessage = "Outputs the themes as JSON")] + public SwitchParameter AsJson; + protected override void ExecuteCmdlet() { if (ParameterSpecified(nameof(Name))) @@ -35,14 +42,28 @@ protected override void ExecuteCmdlet() var theme = Tenant.GetTenantTheme(Name); ClientContext.Load(theme); ClientContext.ExecuteQueryRetry(); - WriteObject(new SPOTheme(theme.Name, theme.Palette, theme.IsInverted)); + if (AsJson) + { + WriteObject(JsonSerializer.Serialize(theme.Palette)); + } + else + { + WriteObject(new SPOTheme(theme.Name, theme.Palette, theme.IsInverted)); + } } else { var themes = Tenant.GetAllTenantThemes(); ClientContext.Load(themes); ClientContext.ExecuteQueryRetry(); - WriteObject(themes.Select(t => new SPOTheme(t.Name, t.Palette, t.IsInverted)), true); + if (AsJson) + { + WriteObject(JsonSerializer.Serialize(themes.Select(t => new SPOTheme(t.Name, t.Palette, t.IsInverted)))); + } + else + { + WriteObject(themes.Select(t => new SPOTheme(t.Name, t.Palette, t.IsInverted)), true); + } } } diff --git a/Commands/Admin/RemoveStorageEntity.cs b/Commands/Admin/RemoveStorageEntity.cs index 7468642b6..35048ad0d 100644 --- a/Commands/Admin/RemoveStorageEntity.cs +++ b/Commands/Admin/RemoveStorageEntity.cs @@ -1,14 +1,8 @@ #if !ONPREMISES -using System.Linq; using System.Management.Automation; -using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; using PnP.PowerShell.CmdletHelpAttributes; -using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Enums; -using System.Collections.Generic; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; namespace PnP.PowerShell.Commands { diff --git a/Commands/Admin/SetStorageEntity.cs b/Commands/Admin/SetStorageEntity.cs index ef77c500a..9241d708e 100644 --- a/Commands/Admin/SetStorageEntity.cs +++ b/Commands/Admin/SetStorageEntity.cs @@ -1,14 +1,8 @@ #if !ONPREMISES -using System.Linq; using System.Management.Automation; -using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; using PnP.PowerShell.CmdletHelpAttributes; -using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Enums; -using System.Collections.Generic; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; namespace PnP.PowerShell.Commands { diff --git a/Commands/Base/AddStoredCredential.cs b/Commands/Base/AddStoredCredential.cs index 2c3b35e3f..061b5b0d6 100644 --- a/Commands/Base/AddStoredCredential.cs +++ b/Commands/Base/AddStoredCredential.cs @@ -7,7 +7,7 @@ namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Add, "PnPStoredCredential")] -#if !NETSTANDARD2_1 +#if !PNPPSCORE [CmdletHelp("Adds a credential to the Windows Credential Manager", @"Adds an entry to the Windows Credential Manager. If you add an entry in the form of the URL of your tenant/server PnP PowerShell will check if that entry is available when you connect using Connect-PnPOnline. If it finds a matching URL it will use the associated credentials. @@ -41,7 +41,7 @@ public class AddStoredCredential : PSCmdlet [Parameter(Mandatory = false, HelpMessage = @"If not specified you will be prompted to enter your password. If you want to specify this value use ConvertTo-SecureString -String 'YourPassword' -AsPlainText -Force")] public SecureString Password; -#if NETSTANDARD2_1 +#if PNPPSCORE [Parameter(Mandatory = false)] public SwitchParameter Overwrite; #endif @@ -53,7 +53,7 @@ protected override void ProcessRecord() Password = Host.UI.ReadLineAsSecureString(); } -#if !NETSTANDARD2_1 +#if !PNPPSCORE Utilities.CredentialManager.AddCredential(Name, Username, Password); #else Utilities.CredentialManager.AddCredential(Name, Username, Password, Overwrite.ToBool()); diff --git a/Commands/Base/BasePSCmdlet.cs b/Commands/Base/BasePSCmdlet.cs index cccff8916..ff733fc89 100644 --- a/Commands/Base/BasePSCmdlet.cs +++ b/Commands/Base/BasePSCmdlet.cs @@ -10,7 +10,10 @@ namespace PnP.PowerShell.Commands.Base /// public class BasePSCmdlet : PSCmdlet { - private Assembly newtonsoftAssembly; + private static Assembly newtonsoftAssembly; + private static Assembly systemBuffersAssembly; + private static Assembly systemRuntimeCompilerServicesUnsafeAssembly; + private static Assembly systemThreadingTasksExtensionsAssembly; protected override void BeginProcessing() { @@ -32,21 +35,42 @@ protected override void EndProcessing() private void FixAssemblyResolving() { - var newtonsoftAssemblyByLocation = Path.Combine(AssemblyDirectoryFromLocation, "Newtonsoft.Json.dll"); - if (File.Exists(newtonsoftAssemblyByLocation)) + if (BasePSCmdlet.newtonsoftAssembly == null) { - // Local run, network run, etc. - newtonsoftAssembly = Assembly.LoadFrom(newtonsoftAssemblyByLocation); + newtonsoftAssembly = GetAssembly("Newtonsoft.Json.dll"); } - else + if (systemBuffersAssembly == null) + { + systemBuffersAssembly = GetAssembly("System.Buffers.dll"); + } + if (systemRuntimeCompilerServicesUnsafeAssembly == null) + { + systemRuntimeCompilerServicesUnsafeAssembly = GetAssembly("System.Runtime.CompilerServices.Unsafe.dll"); + } + if (systemThreadingTasksExtensionsAssembly == null) { - // Running from Azure Function - var newtonsoftAssemblyByCodeBase = Path.Combine(AssemblyDirectoryFromCodeBase, "Newtonsoft.Json.dll"); - newtonsoftAssembly = Assembly.LoadFrom(newtonsoftAssemblyByCodeBase); + systemThreadingTasksExtensionsAssembly = GetAssembly("System.Threading.Tasks.Extensions.dll"); } + AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; } + private Assembly GetAssembly(string assemblyName) + { + Assembly assembly = null; + var assemblyPath = Path.Combine(AssemblyDirectoryFromLocation, assemblyName); + if (File.Exists(assemblyPath)) + { + assembly = Assembly.LoadFrom(assemblyPath); + } + else + { + var codebasePath = Path.Combine(AssemblyDirectoryFromCodeBase, assemblyName); + assembly = Assembly.LoadFrom(codebasePath); + } + return assembly; + } + private string AssemblyDirectoryFromLocation { get @@ -74,6 +98,18 @@ private Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs a { return newtonsoftAssembly; } + if (args.Name.StartsWith("System.Buffers", StringComparison.InvariantCultureIgnoreCase)) + { + return systemBuffersAssembly; + } + if (args.Name.StartsWith("System.Runtime.CompilerServices.Unsafe", StringComparison.InvariantCultureIgnoreCase)) + { + return systemRuntimeCompilerServicesUnsafeAssembly; + } + if (args.Name.StartsWith("System.Threading.Tasks.Extensions", StringComparison.InvariantCultureIgnoreCase)) + { + return systemThreadingTasksExtensionsAssembly; + } foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) { if (assembly.FullName == args.Name) diff --git a/Commands/Base/ConnectOnline.cs b/Commands/Base/ConnectOnline.cs index 9c8280174..1514014ec 100644 --- a/Commands/Base/ConnectOnline.cs +++ b/Commands/Base/ConnectOnline.cs @@ -13,13 +13,13 @@ using System.Security.Cryptography.X509Certificates; using System.IdentityModel.Tokens.Jwt; using PnP.PowerShell.Commands.Enums; -#if !NETSTANDARD2_1 +#if !PNPPSCORE using System.Web.UI.WebControls; #endif using PnP.PowerShell.Commands.Model; using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Collections.Generic; -#if !NETSTANDARD2_1 +#if !PNPPSCORE using System.Security.Cryptography; #endif using System.Reflection; @@ -52,7 +52,7 @@ namespace PnP.PowerShell.Commands.Base Code = @"PS:> Connect-PnPOnline -Url http://yourlocalserver -Credentials (Get-Credential) -UseAdfs", Remarks = @"Connect to SharePoint through ADFS prompting for the username and password to authenticate with", SortOrder = 5)] -#if !NETSTANDARD2_1 +#if !PNPPSCORE [CmdletExample( Code = @"PS:> Connect-PnPOnline -Url http://yourlocalserver -UseAdfsCert", Remarks = @"Connect to SharePoint through ADFS using client certificate allowing you to select the client certificate to use for authentication", @@ -380,7 +380,7 @@ public class ConnectOnline : BasePSCmdlet [Parameter(Mandatory = true, ParameterSetName = ParameterSet_WEBLOGIN, HelpMessage = "If you want to connect to SharePoint with browser based login. This is required when you have multi-factor authentication (MFA) enabled.")] public SwitchParameter UseWebLogin; -#if !NETSTANDARD2_1 +#if !PNPPSCORE [Parameter(Mandatory = false, ParameterSetName = ParameterSet_MAIN, HelpMessage = "Specify to use for instance use forms based authentication (FBA)")] public ClientAuthenticationMode AuthenticationMode = ClientAuthenticationMode.Default; #endif @@ -587,7 +587,7 @@ public class ConnectOnline : BasePSCmdlet [Parameter(Mandatory = false, ParameterSetName = ParameterSet_APPONLYAADThumb, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")] [Parameter(Mandatory = false, ParameterSetName = ParameterSet_APPONLYAADCER, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting to a SharePoint farm using self signed certificates or using a certificate authority not trusted by this machine.")] [Parameter(Mandatory = false, ParameterSetName = ParameterSet_GRAPHWITHAAD, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting through a proxy to the Microsoft Graph API which has SSL interception enabled.")] -#if !NETSTANDARD2_1 +#if !PNPPSCORE [Parameter(Mandatory = false, ParameterSetName = ParameterSet_AADWITHSCOPE, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting through a proxy to the Microsoft Graph API which has SSL interception enabled.")] #endif [Parameter(Mandatory = false, ParameterSetName = ParameterSet_GRAPHDEVICELOGIN, HelpMessage = "Ignores any SSL errors. To be used i.e. when connecting through a proxy to the Microsoft Graph API which has SSL interception enabled.")] @@ -630,7 +630,13 @@ protected override void ProcessRecord() } catch (Exception ex) { - ex.Data.Add("TimeStampUtc", DateTime.UtcNow); + if (!ex.Data.Contains("TimeStampUtc")) + { + ex.Data.Add("TimeStampUtc", DateTime.UtcNow); + } else + { + ex.Data["TimeStampUtc"] = DateTime.UtcNow; + } throw ex; } } @@ -988,7 +994,7 @@ private PnPConnection ConnectNativeAAD(string clientId, string redirectUrl) File.Delete(configFile); } } -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InitiateAzureADNativeApplicationConnection( new Uri(Url), clientId, new Uri(redirectUrl), MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry, SkipTenantAdminCheck, AzureEnvironment); @@ -1007,7 +1013,7 @@ private PnPConnection ConnectNativeAAD(string clientId, string redirectUrl) private PnPConnection ConnectAppOnlyAad() { #if !ONPREMISES -#if !NETSTANDARD2_1 +#if !PNPPSCORE if (ParameterSpecified(nameof(CertificatePath))) { WriteWarning(@"Your certificate is copied by the operating system to c:\ProgramData\Microsoft\Crypto\RSA\MachineKeys. Over time this folder may increase heavily in size. Use Disconnect-PnPOnline in your scripts remove the certificate from this folder to clean up. Consider using -Thumbprint instead of -CertificatePath."); @@ -1040,7 +1046,7 @@ private PnPConnection ConnectAppOnlyAad() private PnPConnection ConnectAppOnlyAadPem() { #if !ONPREMISES -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InitiateAzureADAppOnlyConnection(new Uri(Url), ClientId, Tenant, PEMCertificate, PEMPrivateKey, CertificatePassword, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry, SkipTenantAdminCheck, AzureEnvironment); #else return PnPConnectionHelper.InitiateAzureADAppOnlyConnection(new Uri(Url), ClientId, Tenant, PEMCertificate, PEMPrivateKey, CertificatePassword, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry, SkipTenantAdminCheck, AzureEnvironment); @@ -1057,7 +1063,7 @@ private PnPConnection ConnectAppOnlyAadPem() private PnPConnection ConnectAppOnlyAadThumb() { #if !ONPREMISES -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InitiateAzureADAppOnlyConnection(new Uri(Url), ClientId, Tenant, Thumbprint, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry, SkipTenantAdminCheck, AzureEnvironment); #else return PnPConnectionHelper.InitiateAzureADAppOnlyConnection(new Uri(Url), ClientId, Tenant, Thumbprint, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry, SkipTenantAdminCheck, AzureEnvironment); @@ -1074,7 +1080,7 @@ private PnPConnection ConnectAppOnlyAadThumb() private PnPConnection ConnectAppOnlyAadCer() { #if !ONPREMISES -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InitiateAzureADAppOnlyConnection(new Uri(Url), ClientId, Tenant, Certificate, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry, SkipTenantAdminCheck, AzureEnvironment); #else throw new NotImplementedException(); @@ -1229,7 +1235,7 @@ private PnPConnection ConnectAdfsCredentials(PSCredential credentials) } } } -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InstantiateAdfsConnection(new Uri(Url), Kerberos, credentials, @@ -1253,7 +1259,7 @@ private PnPConnection ConnectAdfsCredentials(PSCredential credentials) /// PnPConnection based on ADFS Client Certificate authentication private PnPConnection ConnectAdfsCertificate() { -#if !NETSTANDARD2_1 +#if !PNPPSCORE // Check if we already have a client certificate, if not, ask for selecting one if (ClientCertificate == null) { @@ -1297,7 +1303,7 @@ private PnPConnection ConnectAdfsCertificate() /// PnPConnection based on WebLogin authentication private PnPConnection ConnectWebLogin() { -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InstantiateWebloginConnection(new Uri(Url), MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, SkipTenantAdminCheck); #else WriteWarning(@"-UseWebLogin is not implemented, due to restrictions of the .NET Standard framework. Use -PnPO365ManagementShell instead"); @@ -1327,7 +1333,7 @@ private PnPConnection ConnectCredentials(PSCredential credentials) } } -#if !NETSTANDARD2_1 +#if !PNPPSCORE return PnPConnectionHelper.InstantiateSPOnlineConnection(new Uri(Url), credentials, Host, diff --git a/Commands/Base/DisablePowerShellTelemetry.cs b/Commands/Base/DisablePowerShellTelemetry.cs index 29cd13e34..23db5f3de 100644 --- a/Commands/Base/DisablePowerShellTelemetry.cs +++ b/Commands/Base/DisablePowerShellTelemetry.cs @@ -1,6 +1,6 @@ using PnP.PowerShell.CmdletHelpAttributes; using System; -#if NETSTANDARD2_1 +#if PNPPSCORE using System.IdentityModel.Tokens.Jwt; #else using System.IdentityModel.Tokens; diff --git a/Commands/Base/DisconnectOnline.cs b/Commands/Base/DisconnectOnline.cs index 840afb84c..61389fadc 100644 --- a/Commands/Base/DisconnectOnline.cs +++ b/Commands/Base/DisconnectOnline.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() #if !ONPREMISES if(Connection?.Certificate != null) { -#if !NETSTANDARD2_1 +#if !PNPPSCORE if (Connection != null && Connection.DeleteCertificateFromCacheOnDisconnect) { PnPConnectionHelper.CleanupCryptoMachineKey(Connection.Certificate); @@ -59,7 +59,7 @@ protected override void ProcessRecord() if (provider != null) { //ImplementingAssembly was introduced in Windows PowerShell 5.0. -#if !NETSTANDARD2_1 +#if !PNPPSCORE var drives = Host.Version.Major >= 5 ? provider.Drives.Where(d => d.Provider.Module.ImplementingAssembly.FullName == Assembly.GetExecutingAssembly().FullName) : provider.Drives; #else var drives = Host.Version.Major >= 5 ? provider.Drives.Where(d => d.Provider.Module.Name == Assembly.GetExecutingAssembly().FullName) : provider.Drives; diff --git a/Commands/Base/GetAccessToken.cs b/Commands/Base/GetAccessToken.cs index f65c87ae6..29de45a8e 100644 --- a/Commands/Base/GetAccessToken.cs +++ b/Commands/Base/GetAccessToken.cs @@ -2,7 +2,7 @@ using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Collections.Generic; -#if NETSTANDARD2_1 +#if PNPPSCORE using System.IdentityModel.Tokens.Jwt; #else using System.IdentityModel.Tokens; diff --git a/Commands/Base/GetStoredCredential.cs b/Commands/Base/GetStoredCredential.cs index 9d3be1b1b..56aad1c4f 100644 --- a/Commands/Base/GetStoredCredential.cs +++ b/Commands/Base/GetStoredCredential.cs @@ -9,7 +9,7 @@ namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Get, "PnPStoredCredential")] [CmdletHelp("Get a credential", -#if !NETSTANDARD2_1 +#if !PNPPSCORE "Returns a stored credential from the Windows Credential Manager", #else "Returns a stored credential from the Windows Credential Manager or the MacOS KeyChain", @@ -18,7 +18,7 @@ namespace PnP.PowerShell.Commands.Base [CmdletExample(Code = "PS:> Get-PnPStoredCredential -Name O365", Remarks = "Returns the credential associated with the specified identifier", SortOrder = 1)] -#if !NETSTANDARD2_1 +#if !PNPPSCORE [CmdletExample(Code = "PS:> Get-PnPStoredCredential -Name testEnvironment -Type OnPrem", Remarks = "Gets the credential associated with the specified identifier from the credential manager and then will return a credential that can be used for on-premises authentication", SortOrder = 2)] @@ -28,14 +28,14 @@ public class GetStoredCredential : PSCmdlet [Parameter(Mandatory = true, HelpMessage = "The credential to retrieve.")] public string Name; -#if !NETSTANDARD2_1 +#if !PNPPSCORE [Parameter(Mandatory = false, HelpMessage = "The object type of the credential to return from the Credential Manager. Possible values are 'O365', 'OnPrem' or 'PSCredential'")] public CredentialType Type = CredentialType.O365; #endif protected override void ProcessRecord() { -#if !NETSTANDARD2_1 +#if !PNPPSCORE var cred = Utilities.CredentialManager.GetCredential(Name); if (cred != null) { diff --git a/Commands/Base/InitializePowerShellAuthentication.cs b/Commands/Base/InitializePowerShellAuthentication.cs index b1a030f69..dd0dc8ef9 100644 --- a/Commands/Base/InitializePowerShellAuthentication.cs +++ b/Commands/Base/InitializePowerShellAuthentication.cs @@ -1,5 +1,4 @@ -#if !ONPREMISES && !NETSTANDARD2_1 -using Newtonsoft.Json; +#if !ONPREMISES && !PNPPSCORE using OfficeDevPnP.Core.Utilities; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Model; @@ -13,6 +12,7 @@ using System.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; +using System.Text.Json; using Resources = PnP.PowerShell.Commands.Properties.Resources; namespace PnP.PowerShell.Commands.Base @@ -234,7 +234,7 @@ protected override void ProcessRecord() requiredResourceAccess = scopesPayload }; var postResult = HttpHelper.MakePostRequestForString("https://graph.microsoft.com/beta/applications", payload, "application/json", token); - var azureApp = JsonConvert.DeserializeObject(postResult); + var azureApp = JsonSerializer.Deserialize(postResult); record.Properties.Add(new PSVariableProperty(new PSVariable("AzureAppId", azureApp.AppId))); var waitTime = 60; diff --git a/Commands/Base/InvokeSPRestMethod.cs b/Commands/Base/InvokeSPRestMethod.cs index b5a20b189..f34aa7585 100644 --- a/Commands/Base/InvokeSPRestMethod.cs +++ b/Commands/Base/InvokeSPRestMethod.cs @@ -1,6 +1,5 @@ -#if !NETSTANDARD2_1 +#if !PNPPSCORE using Microsoft.SharePoint.Client; -using Newtonsoft.Json; using OfficeDevPnP.Core.Utilities; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Enums; @@ -13,8 +12,9 @@ using System.Net.Http.Headers; using System.Runtime.InteropServices; using System.Text; +using System.Text.Json; using System.Text.RegularExpressions; -#if !NETSTANDARD2_1 +#if !PNPPSCORE using System.Web.Script.Serialization; #endif @@ -116,7 +116,7 @@ protected override void ExecuteCmdlet() ContentType = "application/json"; } var contentString = Content is string ? Content.ToString() : - JsonConvert.SerializeObject(Content, Formatting.None); + JsonSerializer.Serialize(Content); request.Content = new StringContent(contentString, System.Text.Encoding.UTF8); request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse(ContentType); } @@ -128,7 +128,7 @@ protected override void ExecuteCmdlet() var responseString = response.Content.ReadAsStringAsync().GetAwaiter().GetResult(); if (responseString != null) { -#if NETSTANDARD2_1 +#if PNPPSCORE WriteObject(System.Text.Json.JsonSerializer.Deserialize(responseString)); #else WriteObject(new JavaScriptSerializer().DeserializeObject(responseString)); diff --git a/Commands/Base/PipeBinds/PagePipeBind.cs b/Commands/Base/PipeBinds/PagePipeBind.cs index 81be28c17..4d8e24bb5 100644 --- a/Commands/Base/PipeBinds/PagePipeBind.cs +++ b/Commands/Base/PipeBinds/PagePipeBind.cs @@ -1,7 +1,7 @@ #if !SP2013 && !SP2016 && !SP2019 using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Utilities; -#if !NETSTANDARD2_1 +#if !PNPPSCORE using SharePointPnP.Modernization.Framework.Transform; #endif using PnP.PowerShell.Commands.ClientSidePages; @@ -115,7 +115,7 @@ internal ListItem GetPage(Web web, string listToLoad) var listServerRelativeUrl = UrlUtility.Combine(web.ServerRelativeUrl, listToLoad); List libraryContainingPage = null; -#if !NETSTANDARD2_1 +#if !PNPPSCORE if (BaseTransform.GetVersion(web.Context) == SPVersion.SP2010) { libraryContainingPage = web.GetListByName(listToLoad); diff --git a/Commands/Base/PipeBinds/TeamsTabPipeBind.cs b/Commands/Base/PipeBinds/TeamsTabPipeBind.cs index 8824ed20b..dce8cece4 100644 --- a/Commands/Base/PipeBinds/TeamsTabPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsTabPipeBind.cs @@ -2,6 +2,7 @@ using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; using System; +using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Net; @@ -14,6 +15,7 @@ public sealed class TeamsTabPipeBind { private readonly string _id; private readonly string _displayName; + private readonly TeamTab _tab; public TeamsTabPipeBind() { @@ -35,15 +37,31 @@ public TeamsTabPipeBind(string input) } } + public TeamsTabPipeBind(TeamTab tab) + { + _tab = tab; + } + public string Id => _id; public TeamTab GetTab(HttpClient httpClient, string accessToken, string groupId, string channelId) { - // find the tab by the displayName - var tabs = TeamsUtility.GetTabs(accessToken, httpClient, groupId, channelId); - if (tabs != null) + if (_tab != null) + { + return _tab; + } + else { - var tab = tabs.FirstOrDefault(t => t.DisplayName.Equals(_displayName, System.StringComparison.OrdinalIgnoreCase)); + var tab = TeamsUtility.GetTab(accessToken, httpClient, groupId, channelId, _id); + if (string.IsNullOrEmpty(tab.Id)) + { + var tabs = TeamsUtility.GetTabs(accessToken, httpClient, groupId, channelId); + if (tabs != null) + { + // find the tab by id + tab = tabs.FirstOrDefault(t => t.DisplayName.Equals(_displayName, System.StringComparison.OrdinalIgnoreCase)); + } + } if (tab != null) { return tab; @@ -53,12 +71,6 @@ public TeamTab GetTab(HttpClient httpClient, string accessToken, string groupId, throw new PSArgumentException("Cannot find tab"); } } - return null; - } - - public TeamTab GetTabById(HttpClient httpClient, string accessToken, string groupId, string channelId) - { - return TeamsUtility.GetTab(accessToken, httpClient, groupId, channelId, _id); } } } diff --git a/Commands/Base/PnPConnection.cs b/Commands/Base/PnPConnection.cs index 665b87853..d267469e5 100644 --- a/Commands/Base/PnPConnection.cs +++ b/Commands/Base/PnPConnection.cs @@ -639,7 +639,7 @@ internal ClientContext CloneContext(string url) } catch (Exception ex) { -#if !ONPREMISES && !NETSTANDARD2_1 +#if !ONPREMISES && !PNPPSCORE if ((ex is WebException || ex is NotSupportedException) && CurrentConnection.PSCredential != null) { // legacy auth? @@ -653,7 +653,7 @@ internal ClientContext CloneContext(string url) { #endif throw; -#if !ONPREMISES && !NETSTANDARD2_1 +#if !ONPREMISES && !PNPPSCORE } #endif } @@ -734,7 +734,7 @@ internal void InitializeTelemetry(ClientContext context, PSHost host, Initializa TelemetryClient.Context.Session.Id = Guid.NewGuid().ToString(); TelemetryClient.Context.Cloud.RoleInstance = "PnPPowerShell"; TelemetryClient.Context.Device.OperatingSystem = Environment.OSVersion.ToString(); -#if !NETSTANDARD2_1 +#if !PNPPSCORE TelemetryClient.Context.GlobalProperties.Add("ServerLibraryVersion", serverLibraryVersion); TelemetryClient.Context.GlobalProperties.Add("ServerVersion", serverVersion); TelemetryClient.Context.GlobalProperties.Add("ConnectionMethod", initializationType.ToString()); @@ -744,7 +744,7 @@ internal void InitializeTelemetry(ClientContext context, PSHost host, Initializa TelemetryClient.Context.Properties.Add("ConnectionMethod", initializationType.ToString()); #endif var coreAssembly = Assembly.GetExecutingAssembly(); -#if !NETSTANDARD2_1 +#if !PNPPSCORE TelemetryClient.Context.GlobalProperties.Add("Version", ((AssemblyFileVersionAttribute)coreAssembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute))).Version.ToString()); #else TelemetryClient.Context.Properties.Add("Version", ((AssemblyFileVersionAttribute)coreAssembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute))).Version.ToString()); @@ -757,7 +757,7 @@ internal void InitializeTelemetry(ClientContext context, PSHost host, Initializa #elif SP2019 TelemetryClient.Context.GlobalProperties.Add("Platform", "SP2019"); #else -#if !NETSTANDARD2_1 +#if !PNPPSCORE TelemetryClient.Context.GlobalProperties.Add("Platform", "SPO"); #else TelemetryClient.Context.Properties.Add("Platform", "SPO"); diff --git a/Commands/Base/PnPConnectionHelper.cs b/Commands/Base/PnPConnectionHelper.cs index 7bcc94402..672ef0da2 100644 --- a/Commands/Base/PnPConnectionHelper.cs +++ b/Commands/Base/PnPConnectionHelper.cs @@ -1,4 +1,4 @@ -#if !NETSTANDARD2_1 +#if !PNPPSCORE using Microsoft.IdentityModel.Clients.ActiveDirectory; #endif using Microsoft.Online.SharePoint.TenantAdministration; @@ -14,7 +14,6 @@ using System.Reflection; using System.Diagnostics; using System.Net.Http; -using Newtonsoft.Json; using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Model; using System.Security.Cryptography.X509Certificates; @@ -26,6 +25,7 @@ using System.Xml.Linq; using Microsoft.Graph; using Resources = PnP.PowerShell.Commands.Properties.Resources; +using System.Text.Json; namespace PnP.PowerShell.Commands.Base { @@ -39,7 +39,7 @@ internal class PnPConnectionHelper #endif private static bool VersionChecked; -#if !NETSTANDARD2_1 +#if !PNPPSCORE public static AuthenticationContext AuthContext { get; set; } #endif static PnPConnectionHelper() @@ -100,7 +100,7 @@ internal static PnPConnection InstantiateSPOnlineConnection(Uri url, string real return spoConnection; } -#if !NETSTANDARD2_1 +#if !PNPPSCORE #if ONPREMISES internal static PnPConnection InstantiateHighTrustConnection(string url, string clientId, string hightrustCertificatePath, string hightrustCertificatePassword, string hightrustCertificateIssuerId, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, PSHost host, bool disableTelemetry, bool skipAdminCheck, string loginName) { @@ -211,7 +211,7 @@ private static GenericToken GetTokenResult(Uri connectionUri, Dictionary(responseMessage.Content.ReadAsStringAsync().GetAwaiter().GetResult()); + return JsonSerializer.Deserialize(responseMessage.Content.ReadAsStringAsync().GetAwaiter().GetResult()); } else { @@ -257,7 +257,7 @@ internal static void OpenBrowser(string url) } #if !ONPREMISES -#if !NETSTANDARD2_1 +#if !PNPPSCORE internal static PnPConnection InitiateAzureADNativeApplicationConnection(Uri url, string clientId, Uri redirectUri, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, PSHost host, bool disableTelemetry, bool skipAdminCheck = false, AzureEnvironment azureEnvironment = AzureEnvironment.Production) { using (var authManager = new OfficeDevPnP.Core.AuthenticationManager()) @@ -513,7 +513,7 @@ internal static PnPConnection InitiateAccessTokenConnection(Uri url, string acce } #endif -#if !NETSTANDARD2_1 +#if !PNPPSCORE internal static PnPConnection InstantiateWebloginConnection(Uri url, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, PSHost host, bool disableTelemetry, bool skipAdminCheck = false) { using (var authManager = new OfficeDevPnP.Core.AuthenticationManager()) @@ -550,7 +550,7 @@ internal static PnPConnection InstantiateWebloginConnection(Uri url, int minimal } #endif -#if !NETSTANDARD2_1 +#if !PNPPSCORE internal static PnPConnection InstantiateSPOnlineConnection(Uri url, PSCredential credentials, PSHost host, bool currentCredentials, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, bool disableTelemetry, bool skipAdminCheck = false, ClientAuthenticationMode authenticationMode = ClientAuthenticationMode.Default) { var context = new PnPClientContext(url.AbsoluteUri); @@ -662,7 +662,7 @@ internal static PnPConnection InstantiateSPOnlineConnection(Uri url, PSCredentia } #endif -#if NETSTANDARD2_1 +#if PNPPSCORE internal static PnPConnection InstantiateSPOnlineConnection(Uri url, PSCredential credentials, PSHost host, bool currentCredentials, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, bool disableTelemetry, bool skipAdminCheck = false) { var context = new PnPClientContext(url.AbsoluteUri); @@ -708,7 +708,7 @@ internal static PnPConnection InstantiateSPOnlineConnection(Uri url, PSCredentia } #endif -#if !NETSTANDARD2_1 +#if !PNPPSCORE internal static PnPConnection InstantiateAdfsConnection(Uri url, bool useKerberos, PSCredential credentials, PSHost host, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, bool disableTelemetry, bool skipAdminCheck = false, string loginProviderName = null) { using (var authManager = new OfficeDevPnP.Core.AuthenticationManager()) diff --git a/Commands/Base/PnPOfficeManagementApiCmdlet.cs b/Commands/Base/PnPOfficeManagementApiCmdlet.cs index 655264efe..4e744d92c 100644 --- a/Commands/Base/PnPOfficeManagementApiCmdlet.cs +++ b/Commands/Base/PnPOfficeManagementApiCmdlet.cs @@ -6,6 +6,7 @@ using System; using System.Collections.Generic; using System.Management.Automation; +using System.Net.Http; namespace PnP.PowerShell.Commands.Base { @@ -82,6 +83,9 @@ public OfficeManagementApiToken Token /// Root URL to the Office 365 Management API /// protected string ApiRootUrl => $"https://manage.office.com/api/v1.0/{Token.TenantId}/"; + + public HttpClient HttpClient => PnPConnection.CurrentConnection.HttpClient; + } } #endif \ No newline at end of file diff --git a/Commands/Base/RemoveStoredCredential.cs b/Commands/Base/RemoveStoredCredential.cs index 460650dba..2277b1cbf 100644 --- a/Commands/Base/RemoveStoredCredential.cs +++ b/Commands/Base/RemoveStoredCredential.cs @@ -5,14 +5,14 @@ namespace PnP.PowerShell.Commands.Base { [Cmdlet(VerbsCommon.Remove, "PnPStoredCredential")] [CmdletHelp("Removes a credential", -#if !NETSTANDARD2_1 +#if !PNPPSCORE "Removes a stored credential from the Windows Credential Manager", #else "Removes a stored credential from the Windows Credential Manager or the MacOS KeyChain", #endif Category = CmdletHelpCategory.Base)] [CmdletExample(Code = "PS:> Remove-PnPStoredCredential -Name https://tenant.sharepoint.com", -#if !NETSTANDARD2_1 +#if !PNPPSCORE Remarks = "Removes the specified credential from the Windows Credential Manager", #else Remarks = "Removes the specified credential from the Windows Credential Manager or the MacOS KeyChain", diff --git a/Commands/Base/SetTraceLog.cs b/Commands/Base/SetTraceLog.cs index 890e74800..8e43a6020 100644 --- a/Commands/Base/SetTraceLog.cs +++ b/Commands/Base/SetTraceLog.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() if (WriteToConsole.IsPresent || string.IsNullOrEmpty(LogFile)) { RemoveListener(ConsoleListenername); -#if !NETSTANDARD2_1 +#if !PNPPSCORE ConsoleTraceListener consoleListener = new ConsoleTraceListener(false); consoleListener.Name = ConsoleListenername; Trace.Listeners.Add(consoleListener); diff --git a/Commands/Base/TokenHandling.cs b/Commands/Base/TokenHandling.cs index 7ec2b6c0b..b0a65b4c7 100644 --- a/Commands/Base/TokenHandling.cs +++ b/Commands/Base/TokenHandling.cs @@ -1,6 +1,6 @@ using Microsoft.SharePoint.Client; -using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Utilities; +using System.Text.Json; using System.Web; namespace PnP.PowerShell.Commands.Base @@ -10,9 +10,9 @@ internal static class TokenHandler { internal static string AcquireToken(string resource, string scope = null) { - if(PnPConnection.CurrentConnection == null) + if (PnPConnection.CurrentConnection == null) { - return null; + return null; } var tenantId = TenantExtensions.GetTenantIdByUrl(PnPConnection.CurrentConnection.Url); @@ -21,7 +21,7 @@ internal static string AcquireToken(string resource, string scope = null) string body = ""; if (PnPConnection.CurrentConnection.PSCredential != null) - { + { var clientId = "31359c7f-bd7e-475c-86db-fdb8c937548e"; var username = PnPConnection.CurrentConnection.PSCredential.UserName; var password = EncryptionUtility.ToInsecureString(PnPConnection.CurrentConnection.PSCredential.Password); @@ -41,8 +41,10 @@ internal static string AcquireToken(string resource, string scope = null) var response = HttpHelper.MakePostRequestForString($"https://login.microsoftonline.com/{tenantId}/oauth2/token", body, "application/x-www-form-urlencoded"); try { - var json = JToken.Parse(response); - return json["access_token"].ToString(); + using (var jdoc = JsonDocument.Parse(response)) + { + return jdoc.RootElement.GetProperty("access_token").GetString(); + } } catch { diff --git a/Commands/Branding/DisableResponsiveUI.cs b/Commands/Branding/DisableResponsiveUI.cs index 5f8a559aa..503a81136 100644 --- a/Commands/Branding/DisableResponsiveUI.cs +++ b/Commands/Branding/DisableResponsiveUI.cs @@ -1,4 +1,5 @@ -using System; +#if !PNPPSCORE +using System; using System.Management.Automation; using Microsoft.SharePoint.Client; using PnP.PowerShell.CmdletHelpAttributes; @@ -21,3 +22,4 @@ protected override void ExecuteCmdlet() } } } +#endif \ No newline at end of file diff --git a/Commands/Branding/EnableResponsiveUI.cs b/Commands/Branding/EnableResponsiveUI.cs index 927eea684..e88586183 100644 --- a/Commands/Branding/EnableResponsiveUI.cs +++ b/Commands/Branding/EnableResponsiveUI.cs @@ -1,4 +1,5 @@ -using System; +#if !PNPPSCORE +using System; using System.Management.Automation; using Microsoft.SharePoint.Client; using PnP.PowerShell.CmdletHelpAttributes; @@ -25,3 +26,4 @@ protected override void ExecuteCmdlet() } } } +#endif \ No newline at end of file diff --git a/Commands/Branding/GetTheme.cs b/Commands/Branding/GetTheme.cs index 8501834f0..6d8613dc9 100644 --- a/Commands/Branding/GetTheme.cs +++ b/Commands/Branding/GetTheme.cs @@ -1,6 +1,6 @@ using System.Management.Automation; +using System.Text.Json; using Microsoft.SharePoint.Client; -using Newtonsoft.Json; using OfficeDevPnP.Core.Framework.Provisioning.Model; using PnP.PowerShell.CmdletHelpAttributes; @@ -30,7 +30,7 @@ protected override void ExecuteCmdlet() try { WriteWarning("The information presented here is based upon the fact that the theme has been set using either the PnP Provisioning Engine or using the Set-PnPTheme cmdlet. This information is retrieved from a propertybag value and may differ from the actual site."); - var composedLook = JsonConvert.DeserializeObject(SelectedWeb.GetPropertyBagValueString("_PnP_ProvisioningTemplateComposedLookInfo", "")); + var composedLook = JsonSerializer.Deserialize(SelectedWeb.GetPropertyBagValueString("_PnP_ProvisioningTemplateComposedLookInfo", "")); WriteObject(composedLook); } catch diff --git a/Commands/Branding/SetTheme.cs b/Commands/Branding/SetTheme.cs index 86d4aa5fe..972cf8277 100644 --- a/Commands/Branding/SetTheme.cs +++ b/Commands/Branding/SetTheme.cs @@ -1,7 +1,7 @@ using System; using System.Management.Automation; +using System.Text.Json; using Microsoft.SharePoint.Client; -using Newtonsoft.Json; using OfficeDevPnP.Core.Framework.Provisioning.Model; using OfficeDevPnP.Core.Utilities; using PnP.PowerShell.CmdletHelpAttributes; @@ -52,7 +52,7 @@ protected override void ExecuteCmdlet() ColorPaletteUrl = UrlUtility.Combine(rootWebServerRelativeUrl, ColorPaletteUrl); } - if(!string.IsNullOrEmpty(FontSchemeUrl) && !FontSchemeUrl.ToLower().StartsWith(rootWebServerRelativeUrl.ToLower())) + if (!string.IsNullOrEmpty(FontSchemeUrl) && !FontSchemeUrl.ToLower().StartsWith(rootWebServerRelativeUrl.ToLower())) { FontSchemeUrl = UrlUtility.Combine(rootWebServerRelativeUrl, FontSchemeUrl); } @@ -73,7 +73,7 @@ protected override void ExecuteCmdlet() if (SelectedWeb.PropertyBagContainsKey(PROPBAGKEY)) { composedLook = - JsonConvert.DeserializeObject(SelectedWeb.GetPropertyBagValueString(PROPBAGKEY, "")); + JsonSerializer.Deserialize(SelectedWeb.GetPropertyBagValueString(PROPBAGKEY, "")); } else @@ -90,7 +90,7 @@ protected override void ExecuteCmdlet() composedLook.ColorFile = ColorPaletteUrl ?? composedLook.ColorFile; composedLook.FontFile = FontSchemeUrl ?? composedLook.FontFile; composedLook.BackgroundFile = BackgroundImageUrl ?? composedLook.BackgroundFile; - var composedLookJson = JsonConvert.SerializeObject(composedLook); + var composedLookJson = JsonSerializer.Serialize(composedLook); SelectedWeb.SetPropertyBagValue(PROPBAGKEY, composedLookJson); } diff --git a/Commands/ClientSidePages/ConvertToClientSidePage.cs b/Commands/ClientSidePages/ConvertToClientSidePage.cs index f21ca20dd..5aeaedd15 100644 --- a/Commands/ClientSidePages/ConvertToClientSidePage.cs +++ b/Commands/ClientSidePages/ConvertToClientSidePage.cs @@ -1,4 +1,4 @@ -#if !ONPREMISES && !NETSTANDARD2_1 +#if !ONPREMISES && !PNPPSCORE using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; diff --git a/Commands/ClientSidePages/ExportClientSidePageMapping.cs b/Commands/ClientSidePages/ExportClientSidePageMapping.cs index 41730e22a..3a798e237 100644 --- a/Commands/ClientSidePages/ExportClientSidePageMapping.cs +++ b/Commands/ClientSidePages/ExportClientSidePageMapping.cs @@ -1,4 +1,4 @@ -#if !ONPREMISES && !NETSTANDARD2_1 +#if !ONPREMISES && !PNPPSCORE using PnP.PowerShell.CmdletHelpAttributes; using System; using System.Management.Automation; diff --git a/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs b/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs index 2df82c728..ec9ca7179 100644 --- a/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs +++ b/Commands/ClientSidePages/SaveClientSidePageConversionLog.cs @@ -1,4 +1,4 @@ -#if !ONPREMISES && !NETSTANDARD2_1 +#if !ONPREMISES && !PNPPSCORE using SharePointPnP.Modernization.Framework.Cache; using PnP.PowerShell.CmdletHelpAttributes; using System; diff --git a/Commands/Diagnostic/MeasureResponseTime.cs b/Commands/Diagnostic/MeasureResponseTime.cs index b8b457d90..5825789a4 100644 --- a/Commands/Diagnostic/MeasureResponseTime.cs +++ b/Commands/Diagnostic/MeasureResponseTime.cs @@ -1,4 +1,4 @@ -#if !NETSTANDARD2_1 +#if !PNPPSCORE using System; using System.Net; using System.Linq; diff --git a/Commands/Graph/ResetMicrosoft365GroupExpiration.cs b/Commands/Graph/ResetMicrosoft365GroupExpiration.cs index fb47b44ae..23a2afb10 100644 --- a/Commands/Graph/ResetMicrosoft365GroupExpiration.cs +++ b/Commands/Graph/ResetMicrosoft365GroupExpiration.cs @@ -1,4 +1,4 @@ -#if !ONPREMISES && !NETSTANDARD2_1 +#if !ONPREMISES && !PNPPSCORE using OfficeDevPnP.Core.Framework.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; diff --git a/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs b/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs index 5bd313d82..e1c3e8cfd 100644 --- a/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs +++ b/Commands/ManagementApi/GetOffice365CurrentServiceStatus.cs @@ -1,11 +1,12 @@ #if !ONPREMISES using System.Collections.Generic; using System.Management.Automation; -using Newtonsoft.Json.Linq; +using System.Net.Http; using OfficeDevPnP.Core.Framework.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities.REST; namespace PnP.PowerShell.Commands.ManagementApi { @@ -31,11 +32,12 @@ public class GetOffice365CurrentServiceStatus : PnPOfficeManagementApiCmdlet protected override void ExecuteCmdlet() { - var response = GraphHttpClient.MakeGetRequestForString($"{ApiRootUrl}ServiceComms/CurrentStatus{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken); - var serviceStatusesJson = JObject.Parse(response); - var serviceStatuses = serviceStatusesJson["value"].ToObject>(); + var collection = GraphHelper.GetAsync>(HttpClient, $"{ApiRootUrl}ServiceComms/CurrentStatus{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken, false).GetAwaiter().GetResult(); - WriteObject(serviceStatuses, true); + if (collection != null) + { + WriteObject(collection.Items, true); + } } } } diff --git a/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs b/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs index 6da3cad47..6f8629052 100644 --- a/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs +++ b/Commands/ManagementApi/GetOffice365HistoricalServiceStatus.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using System.Collections.Generic; using System.Management.Automation; -using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Framework.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities.REST; namespace PnP.PowerShell.Commands.ManagementApi { @@ -31,11 +31,17 @@ public class GetOffice365HistoricalServiceStatus : PnPOfficeManagementApiCmdlet protected override void ExecuteCmdlet() { - var response = GraphHttpClient.MakeGetRequestForString($"{ApiRootUrl}ServiceComms/HistoricalStatus{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken); - var serviceStatusesJson = JObject.Parse(response); - var serviceStatuses = serviceStatusesJson["value"].ToObject>(); + var collection = GraphHelper.GetAsync>(HttpClient, $"{ApiRootUrl}ServiceComms/HistoricalStatus{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken, false).GetAwaiter().GetResult(); - WriteObject(serviceStatuses, true); + if (collection != null) + { + WriteObject(collection.Items, true); + } + //var response = GraphHttpClient.MakeGetRequestForString($"{ApiRootUrl}ServiceComms/HistoricalStatus{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken); + //var serviceStatusesJson = JObject.Parse(response); + //var serviceStatuses = serviceStatusesJson["value"].ToObject>(); + + //WriteObject(serviceStatuses, true); } } } diff --git a/Commands/ManagementApi/GetOffice365ServiceMessage.cs b/Commands/ManagementApi/GetOffice365ServiceMessage.cs index fd7c389e2..eb22721a4 100644 --- a/Commands/ManagementApi/GetOffice365ServiceMessage.cs +++ b/Commands/ManagementApi/GetOffice365ServiceMessage.cs @@ -1,11 +1,10 @@ #if !ONPREMISES using System.Collections.Generic; using System.Management.Automation; -using Newtonsoft.Json.Linq; -using OfficeDevPnP.Core.Framework.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities.REST; namespace PnP.PowerShell.Commands.ManagementApi { @@ -27,11 +26,18 @@ public class GetOffice365ServiceMessage : PnPOfficeManagementApiCmdlet protected override void ExecuteCmdlet() { - var response = GraphHttpClient.MakeGetRequestForString($"{ApiRootUrl}ServiceComms/Messages{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken); - var servicesJson = JObject.Parse(response); - var services = servicesJson["value"].ToObject>(); + var collection = GraphHelper.GetAsync>(HttpClient, $"{ApiRootUrl}ServiceComms/Messages{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken, false).GetAwaiter().GetResult(); - WriteObject(services, true); + if (collection != null) + { + WriteObject(collection.Items, true); + } + + //var response = GraphHttpClient.MakeGetRequestForString($"{ApiRootUrl}ServiceComms/Messages{(ParameterSpecified(nameof(Workload)) ? $"?$filter=Workload eq '{Workload.Value}'" : "")}", AccessToken); + //var servicesJson = JObject.Parse(response); + //var services = servicesJson["value"].ToObject>(); + + //WriteObject(services, true); } } } diff --git a/Commands/ManagementApi/GetOffice365Services.cs b/Commands/ManagementApi/GetOffice365Services.cs index 6592faa46..59b6e4732 100644 --- a/Commands/ManagementApi/GetOffice365Services.cs +++ b/Commands/ManagementApi/GetOffice365Services.cs @@ -1,11 +1,11 @@ #if !ONPREMISES using System.Collections.Generic; using System.Management.Automation; -using Newtonsoft.Json.Linq; using OfficeDevPnP.Core.Framework.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities.REST; namespace PnP.PowerShell.Commands.ManagementApi { @@ -24,11 +24,12 @@ public class GetOffice365Services : PnPOfficeManagementApiCmdlet { protected override void ExecuteCmdlet() { - var response = GraphHttpClient.MakeGetRequestForString($"{ApiRootUrl}ServiceComms/Services", AccessToken); - var servicesJson = JObject.Parse(response); - var services = servicesJson["value"].ToObject>(); + var collection = GraphHelper.GetAsync>(HttpClient, $"{ApiRootUrl}ServiceComms/Services", AccessToken, false).GetAwaiter().GetResult(); - WriteObject(services, true); + if(collection != null) + { + WriteObject(collection.Items, true); + } } } } diff --git a/Commands/ManagementApi/GetUnifiedAuditLog.cs b/Commands/ManagementApi/GetUnifiedAuditLog.cs index 29d857164..d1278e2be 100644 --- a/Commands/ManagementApi/GetUnifiedAuditLog.cs +++ b/Commands/ManagementApi/GetUnifiedAuditLog.cs @@ -3,11 +3,10 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using Newtonsoft.Json; -using OfficeDevPnP.Core.Framework.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Model; +using PnP.PowerShell.Commands.Utilities.REST; namespace PnP.PowerShell.Commands.ManagementApi { @@ -67,9 +66,11 @@ protected string ContentTypeString private IEnumerable GetSubscriptions() { var url = $"{ApiUrl}/subscriptions/list"; - var res = GraphHttpClient.MakeGetRequestForString(url.ToString(), AccessToken); - var subscriptions = JsonConvert.DeserializeObject>(res); - return subscriptions; + return GraphHelper.GetAsync>(HttpClient, url, AccessToken).GetAwaiter().GetResult(); + + //var res = GraphHttpClient.MakeGetRequestForString(url.ToString(), AccessToken); + //var subscriptions = JsonConvert.DeserializeObject>(res); + //return subscriptions; } private void EnsureSubscription(string contentType) @@ -78,13 +79,18 @@ private void EnsureSubscription(string contentType) var subscription = subscriptions.FirstOrDefault(s => s.ContentType == contentType); if (subscription == null) { - var url = $"{ApiUrl}/subscriptions/start?contentType={contentType}&PublisherIdentifier={Token.TenantId}"; - var res = GraphHttpClient.MakePostRequestForString(url.ToString(), accessToken: AccessToken); - var response = JsonConvert.DeserializeObject(res); - if (response.Status != "enabled") + subscription = GraphHelper.PostAsync(HttpClient, $"{ApiUrl}/subscriptions/start?contentType={contentType}&PublisherIdentifier={Token.TenantId}", AccessToken).GetAwaiter().GetResult(); + if (!subscription.Status.Equals("enabled", StringComparison.OrdinalIgnoreCase)) { throw new Exception($"Cannot enable subscription for {contentType}"); } + // var url = $"{ApiUrl}/subscriptions/start?contentType={contentType}&PublisherIdentifier={Token.TenantId}"; + //var res = GraphHttpClient.MakePostRequestForString(url.ToString(), accessToken: AccessToken); + //var response = JsonConvert.DeserializeObject(res); + //if (response.Status != "enabled") + //{ + // throw new Exception($"Cannot enable subscription for {contentType}"); + //} } } @@ -101,6 +107,18 @@ protected override void ExecuteCmdlet() { url += $"&endTime={EndTime:yyyy-MM-ddThh:mm:ss}"; } + + var subscriptionContents = GraphHelper.GetAsync>(HttpClient, url, AccessToken).GetAwaiter().GetResult(); + if(subscriptionContents != null) + { + foreach(var content in subscriptionContents) + { + var logs = GraphHelper.GetAsync>(HttpClient, content.ContentUri, AccessToken,false).GetAwaiter().GetResult(); + WriteObject(logs, true); + } + } + + /* var res = GraphHttpClient.MakeGetRequestForString(url.ToString(), AccessToken); if (!string.IsNullOrEmpty(res)) { @@ -112,6 +130,7 @@ protected override void ExecuteCmdlet() WriteObject(logs, true); } } + */ } } } diff --git a/Commands/Model/AzureApp.cs b/Commands/Model/AzureApp.cs index 6bfe1be69..687792a7e 100644 --- a/Commands/Model/AzureApp.cs +++ b/Commands/Model/AzureApp.cs @@ -1,9 +1,6 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model { @@ -19,9 +16,9 @@ public class PermissionScope { [JsonIgnore] public string resourceAppId { get; set; } - [JsonProperty("id")] + [JsonPropertyName("id")] public string Id { get; set; } - [JsonProperty("type")] + [JsonPropertyName("type")] public string Type { get; set; } = "Role"; [JsonIgnore] public string Identifier { get; set; } @@ -200,9 +197,9 @@ public PermissionScope GetScope(string identifier) public class AppResource { - [JsonProperty("resourceAppId")] + [JsonPropertyName("resourceAppId")] public string Id { get; set; } - [JsonProperty("resourceAccess")] + [JsonPropertyName("resourceAccess")] public List ResourceAccess { get; set; } = new List(); } } \ No newline at end of file diff --git a/Commands/Model/GenericToken.cs b/Commands/Model/GenericToken.cs index 20d4c4790..9ae48a9e1 100644 --- a/Commands/Model/GenericToken.cs +++ b/Commands/Model/GenericToken.cs @@ -1,11 +1,11 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using OfficeDevPnP.Core.Utilities; +using OfficeDevPnP.Core.Utilities; using System; using System.Linq; using System.Web; using System.Collections.Generic; using PnP.PowerShell.Core.Attributes; +using System.Text.Json.Serialization; +using System.Text.Json; namespace PnP.PowerShell.Commands.Model { @@ -17,13 +17,13 @@ public class GenericToken /// /// Token which can be used to access the API /// - [JsonProperty("access_token")] + [JsonPropertyName("access_token")] public string AccessToken { get; private set; } /// /// Token that can be used to retrieve a new access token /// - [JsonProperty("refresh_token")] + [JsonPropertyName("refresh_token")] public string RefreshToken { get; protected set; } /// @@ -105,10 +105,14 @@ public static GenericToken AcquireV1Token(string tenant, string clientId, string { var body = $"grant_type=password&client_id={clientId}&username={HttpUtility.UrlEncode(username)}&password={HttpUtility.UrlEncode(password)}&resource={resource}"; var response = HttpHelper.MakePostRequestForString($"https://login.microsoftonline.com/{tenant}/oauth2/token", body, "application/x-www-form-urlencoded"); - var json = JToken.Parse(response); - var accessToken = json["access_token"].ToString(); + using(var jdoc = JsonDocument.Parse(response)) + { + return new GenericToken(jdoc.RootElement.GetProperty("access_token").GetString()); + } + //var json = JToken.Parse(response); + //var accessToken = json["access_token"].ToString(); - return new GenericToken(accessToken); + //return new GenericToken(accessToken); } /// @@ -124,10 +128,15 @@ public static GenericToken AcquireV2Token(string tenant, string clientId, string { var body = $"grant_type=password&client_id={clientId}&username={HttpUtility.UrlEncode(username)}&password={HttpUtility.UrlEncode(password)}&scope={string.Join(" ", scopes)}"; var response = HttpHelper.MakePostRequestForString($"https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token", body, "application/x-www-form-urlencoded"); - var json = JToken.Parse(response); - var accessToken = json["access_token"].ToString(); - return new GenericToken(accessToken); + using (var jdoc = JsonDocument.Parse(response)) + { + return new GenericToken(jdoc.RootElement.GetProperty("access_token").GetString()); + } + //var json = JToken.Parse(response); + //var accessToken = json["access_token"].ToString(); + + //return new GenericToken(accessToken); } } } diff --git a/Commands/Model/ManagementApiFeature.cs b/Commands/Model/ManagementApiFeature.cs index 7bf269f52..d4695ae8a 100644 --- a/Commands/Model/ManagementApiFeature.cs +++ b/Commands/Model/ManagementApiFeature.cs @@ -1,4 +1,5 @@ -using Newtonsoft.Json; + +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model { @@ -7,10 +8,10 @@ namespace PnP.PowerShell.Commands.Model /// public class ManagementApiFeature { - [JsonProperty("Name")] + [JsonPropertyName("Name")] public string Name { get; set; } - [JsonProperty("DisplayName")] + [JsonPropertyName("DisplayName")] public string DisplayName { get; set; } } } diff --git a/Commands/Model/ManagementApiFeatureStatus.cs b/Commands/Model/ManagementApiFeatureStatus.cs index 5d9aabf89..75f4454c6 100644 --- a/Commands/Model/ManagementApiFeatureStatus.cs +++ b/Commands/Model/ManagementApiFeatureStatus.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model { @@ -7,16 +7,16 @@ namespace PnP.PowerShell.Commands.Model /// public class ManagementApiFeatureStatus { - [JsonProperty("FeatureDisplayName")] + [JsonPropertyName("FeatureDisplayName")] public string FeatureDisplayName { get; set; } - [JsonProperty("FeatureName")] + [JsonPropertyName("FeatureName")] public string FeatureName { get; set; } - [JsonProperty("FeatureServiceStatusDisplayName")] + [JsonPropertyName("FeatureServiceStatusDisplayName")] public string FeatureServiceStatusDisplayName { get; set; } - [JsonProperty("FeatureServiceStatus")] + [JsonPropertyName("FeatureServiceStatus")] public string FeatureServiceStatus { get; set; } } } diff --git a/Commands/Model/ManagementApiService.cs b/Commands/Model/ManagementApiService.cs index 391060f84..661477204 100644 --- a/Commands/Model/ManagementApiService.cs +++ b/Commands/Model/ManagementApiService.cs @@ -1,5 +1,5 @@ -using Newtonsoft.Json; -using System.Collections.Generic; +using System.Collections.Generic; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model { @@ -8,13 +8,13 @@ namespace PnP.PowerShell.Commands.Model /// public class ManagementApiService { - [JsonProperty("Id")] + [JsonPropertyName("Id")] public string Id { get; set; } - [JsonProperty("DisplayName")] + [JsonPropertyName("DisplayName")] public string DisplayName { get; set; } - [JsonProperty("Features")] + [JsonPropertyName("Features")] public IEnumerable Features { get; set; } } } diff --git a/Commands/Model/ManagementApiServiceMessage.cs b/Commands/Model/ManagementApiServiceMessage.cs index 434b203dd..9673b5227 100644 --- a/Commands/Model/ManagementApiServiceMessage.cs +++ b/Commands/Model/ManagementApiServiceMessage.cs @@ -1,5 +1,4 @@ -using Newtonsoft.Json; -using System; +using System; using System.Collections.Generic; namespace PnP.PowerShell.Commands.Model @@ -9,115 +8,78 @@ namespace PnP.PowerShell.Commands.Model /// public class ManagementApiServiceMessage { - [JsonProperty("Id")] public string Id { get; set; } - [JsonProperty("ActionType")] public string ActionType { get; set; } - [JsonProperty("ActionDetails")] public string ActionDetails { get; set; } - [JsonProperty("AffectedTenantCount")] public int? AffectedTenantCount { get; set; } - [JsonProperty("AffectedUserCount")] public int? AffectedUserCount { get; set; } - [JsonProperty("AffectedWorkloadDisplayNames")] public IEnumerable AffectedWorkloadDisplayNames { get; set; } - [JsonProperty("AffectedWorkloadNames")] public IEnumerable AffectedWorkloadNames { get; set; } - [JsonProperty("AnnouncementId")] - public string AnnouncementId { get; set; } + public int AnnouncementId { get; set; } - [JsonProperty("AppliesTo")] public string AppliesTo { get; set; } - [JsonProperty("BlogLink")] public string BlogLink { get; set; } - [JsonProperty("Category")] public string Category { get; set; } - [JsonProperty("Classification")] public string Classification { get; set; } - [JsonProperty("EndTime")] public DateTime? EndTime { get; set; } - [JsonProperty("ExternalLink")] public string ExternalLink { get; set; } - [JsonProperty("FeatureDisplayName")] public string FeatureDisplayName { get; set; } - [JsonProperty("Feature")] public string Feature { get; set; } - [JsonProperty("FlightName")] public string FlightName { get; set; } - [JsonProperty("HelpLink")] public string HelpLink { get; set; } - [JsonProperty("ImpactDescription")] public string ImpactDescription { get; set; } - [JsonProperty("IsDismissed")] public bool? IsDismissed { get; set; } - [JsonProperty("IsMajorChange")] public bool? IsMajorChange { get; set; } - [JsonProperty("IsRead")] public bool? IsRead { get; set; } - [JsonProperty("LastUpdatedTime")] public DateTime? LastUpdatedTime { get; set; } - [JsonProperty("Messages")] public IEnumerable Messages { get; set; } - [JsonProperty("MessageTagNames")] public IEnumerable MessageTagNames { get; set; } - [JsonProperty("MessageType")] public string MessageType { get; set; } - [JsonProperty("Milestone")] public string Milestone { get; set; } - [JsonProperty("MilestoneDate")] public DateTime? MilestoneDate { get; set; } - [JsonProperty("PostIncidentDocumentUrl")] public string PostIncidentDocumentUrl { get; set; } - [JsonProperty("PreviewDuration")] public string PreviewDuration { get; set; } - [JsonProperty("Severity")] public string Severity { get; set; } - [JsonProperty("StartTime")] public DateTime? StartTime { get; set; } - [JsonProperty("Status")] public string Status { get; set; } - [JsonProperty("Title")] public string Title { get; set; } - [JsonProperty("UserFunctionalImpact")] public string UserFunctionalImpact { get; set; } - [JsonProperty("Workload")] public string Workload { get; set; } - [JsonProperty("WorkloadDisplayName")] public string WorkloadDisplayName { get; set; } } } diff --git a/Commands/Model/ManagementApiServiceMessageText.cs b/Commands/Model/ManagementApiServiceMessageText.cs index fcd0c50c9..6d49770b8 100644 --- a/Commands/Model/ManagementApiServiceMessageText.cs +++ b/Commands/Model/ManagementApiServiceMessageText.cs @@ -1,5 +1,4 @@ -using Newtonsoft.Json; -using System; +using System; namespace PnP.PowerShell.Commands.Model { @@ -8,10 +7,8 @@ namespace PnP.PowerShell.Commands.Model /// public class ManagementApiServiceMessageText { - [JsonProperty("MessageText")] public string MessageText { get; set; } - [JsonProperty("PublishedTime")] public DateTime? PublishedTime { get; set; } } } diff --git a/Commands/Model/ManagementApiServiceStatus.cs b/Commands/Model/ManagementApiServiceStatus.cs index 417555889..84b3d3bc4 100644 --- a/Commands/Model/ManagementApiServiceStatus.cs +++ b/Commands/Model/ManagementApiServiceStatus.cs @@ -1,5 +1,4 @@ -using Newtonsoft.Json; -using System; +using System; using System.Collections.Generic; namespace PnP.PowerShell.Commands.Model @@ -9,28 +8,20 @@ namespace PnP.PowerShell.Commands.Model /// public class ManagementApiServiceStatus { - [JsonProperty("Id")] public string Id { get; set; } - [JsonProperty("Status")] public string Status { get; set; } - [JsonProperty("StatusDisplayName")] public string StatusDisplayName { get; set; } - [JsonProperty("StatusTime")] public DateTime? StatusTime { get; set; } - [JsonProperty("Workload")] public string Workload { get; set; } - [JsonProperty("WorkloadDisplayName")] public string WorkloadDisplayName { get; set; } - [JsonProperty("IncidentIds")] public IEnumerable IncidentIds { get; set; } - [JsonProperty("FeatureStatus")] public IEnumerable FeatureStatus { get; set; } } } diff --git a/Commands/Model/ManagementApiSubscription.cs b/Commands/Model/ManagementApiSubscription.cs index cef83d8bf..0ec7fd8a5 100644 --- a/Commands/Model/ManagementApiSubscription.cs +++ b/Commands/Model/ManagementApiSubscription.cs @@ -1,17 +1,10 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; - -namespace PnP.PowerShell.Commands.Model +namespace PnP.PowerShell.Commands.Model { class ManagementApiSubscription { - [JsonProperty("contentType")] public string ContentType { get; set; } - [JsonProperty("status")] public string Status { get; set; } - [JsonProperty("webhook")] - public JObject Webhook { get; set; } } } diff --git a/Commands/Model/ManagementApiSubscriptionContent.cs b/Commands/Model/ManagementApiSubscriptionContent.cs index 15f0f50ec..9371d9812 100644 --- a/Commands/Model/ManagementApiSubscriptionContent.cs +++ b/Commands/Model/ManagementApiSubscriptionContent.cs @@ -1,23 +1,17 @@ -using Newtonsoft.Json; -using System; +using System; namespace PnP.PowerShell.Commands.Model { class ManagementApiSubscriptionContent { - [JsonProperty("contentUri")] public string ContentUri { get; set; } - [JsonProperty("contentId")] public string ContentId { get; set; } - [JsonProperty("contentType")] public string ContentType { get; set; } - [JsonProperty("contentCreated")] public DateTime ContentCreated { get; set; } - [JsonProperty("contentExpiration")] public DateTime ContentExpiration { get; set; } } } diff --git a/Commands/Model/OfficeManagementApiToken.cs b/Commands/Model/OfficeManagementApiToken.cs index ac1cb05e0..5b02d2dec 100644 --- a/Commands/Model/OfficeManagementApiToken.cs +++ b/Commands/Model/OfficeManagementApiToken.cs @@ -197,7 +197,7 @@ public static GenericToken AcquireDelegatedTokenWithCredentials(string clientId, .Build(); } - var accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + var accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); AuthenticationResult tokenResult = null; diff --git a/Commands/Model/ResponseCollection.cs b/Commands/Model/ResponseCollection.cs deleted file mode 100644 index 30681e995..000000000 --- a/Commands/Model/ResponseCollection.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; - -namespace PnP.PowerShell.Commands.Model -{ - public class ResponseCollection - { - [JsonProperty("value")] - public List Items { get; set; } - - [JsonProperty("odata.nextLink")] - public string NextLink { get; set; } - } -} \ No newline at end of file diff --git a/Commands/Model/SPOTheme.cs b/Commands/Model/SPOTheme.cs index a10581590..990b0064b 100644 --- a/Commands/Model/SPOTheme.cs +++ b/Commands/Model/SPOTheme.cs @@ -1,7 +1,7 @@ #if !ONPREMISES using Microsoft.Online.SharePoint.TenantManagement; -using Newtonsoft.Json; using System.Collections.Generic; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model { @@ -24,13 +24,13 @@ internal SPOTheme(string name, IDictionary palette, bool isInver this.IsInverted = isInverted; } - [JsonProperty("name")] + [JsonPropertyName("name")] public string Name { get; private set; } - [JsonProperty("palette")] + [JsonPropertyName("palette")] public IDictionary Palette { get; private set; } - [JsonProperty("isInverted")] + [JsonPropertyName("isInverted")] public bool IsInverted { get; private set; } } } diff --git a/Commands/Model/Teams/Group.cs b/Commands/Model/Teams/Group.cs index f9b6c9243..fa98e278d 100644 --- a/Commands/Model/Teams/Group.cs +++ b/Commands/Model/Teams/Group.cs @@ -1,9 +1,9 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model.Teams @@ -15,13 +15,13 @@ public class Group public string MailNickname { get; set; } public string Description { get; set; } - [Newtonsoft.Json.JsonConverter(typeof(StringEnumConverter))] + [JsonConverter(typeof(JsonStringEnumConverter))] public GroupVisibility Visibility { get; set; } - [JsonProperty("owners@odata.bind")] + [JsonPropertyName("owners@odata.bind")] public List Owners { get; set; } - [JsonProperty("members@odata.bind")] + [JsonPropertyName("members@odata.bind")] public List Members { get; set; } public string Classification { get; set; } diff --git a/Commands/Model/Teams/Team.cs b/Commands/Model/Teams/Team.cs index 962dfa89b..bb62f9c57 100644 --- a/Commands/Model/Teams/Team.cs +++ b/Commands/Model/Teams/Team.cs @@ -1,11 +1,4 @@ -using Microsoft.Graph; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Collections.Generic; namespace PnP.PowerShell.Commands.Model.Teams { diff --git a/Commands/Model/Teams/TeamChannel.cs b/Commands/Model/Teams/TeamChannel.cs index 23ae78ebd..7cf7f62cc 100644 --- a/Commands/Model/Teams/TeamChannel.cs +++ b/Commands/Model/Teams/TeamChannel.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.Json.Serialization; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model.Teams @@ -11,6 +12,8 @@ public partial class TeamChannel { #region Public Members + [JsonPropertyName("@odata.type")] + public string Type { get; set; } /// /// Defines a collection of Tabs for a Channel in a Team /// @@ -50,6 +53,22 @@ public partial class TeamChannel /// public string Id { get; set; } + public List Members { get; set; } + #endregion } + + public class TeamChannelMember + { + [JsonPropertyName("@odata.type")] + public string Type { get; set; } = "#microsoft.graph.aadUserConversationMember"; + + [JsonPropertyName("user@odata.bind")] + public string UserIdentifier { get; set; } + + [JsonPropertyName("roles")] + public List Roles { get; set; } = new List(); + } + + } diff --git a/Commands/Model/Teams/TeamChannelMessage.cs b/Commands/Model/Teams/TeamChannelMessage.cs index 8e79fc9bd..784941929 100644 --- a/Commands/Model/Teams/TeamChannelMessage.cs +++ b/Commands/Model/Teams/TeamChannelMessage.cs @@ -1,9 +1,5 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model.Teams { @@ -30,7 +26,7 @@ public class TeamChannelMessageFrom public class TeamChannelMessageBody { - [JsonProperty("contentType")] + [JsonPropertyName("contentType")] private string contentType { get; set; } [JsonIgnore] diff --git a/Commands/Model/Teams/TeamFunSettings.cs b/Commands/Model/Teams/TeamFunSettings.cs index 06c7c8958..434ee22b2 100644 --- a/Commands/Model/Teams/TeamFunSettings.cs +++ b/Commands/Model/Teams/TeamFunSettings.cs @@ -2,18 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.Json.Serialization; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model.Teams { public partial class TeamFunSettings { - #region Private Members - - private string _giphyContentRating; - - #endregion - #region Public Members /// @@ -24,6 +19,7 @@ public partial class TeamFunSettings /// /// Defines the Content Rating for Giphys /// + [JsonConverter(typeof(JsonStringEnumConverter))] public TeamGiphyContentRating GiphyContentRating { get; set; } /// diff --git a/Commands/Model/Teams/TeamSettings.cs b/Commands/Model/Teams/TeamSettings.cs index 9e21dd39e..69cd8a170 100644 --- a/Commands/Model/Teams/TeamSettings.cs +++ b/Commands/Model/Teams/TeamSettings.cs @@ -1,9 +1,8 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Serialization; -using System; +using System; using System.Collections.Generic; using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Model.Teams { @@ -15,7 +14,7 @@ public class TeamCreationInformation public string Description { get; set; } - [JsonConverter(typeof(StringEnumConverter))] + [JsonConverter(typeof(JsonStringEnumConverter))] public GroupVisibility Visibility { get; set; } public string Classification { get; set; } @@ -24,6 +23,7 @@ public class TeamCreationInformation public bool? AllowGiphy { get; set; } + [JsonConverter(typeof(JsonStringEnumConverter))] public TeamGiphyContentRating GiphyContentRating { get; set; } public bool? AllowStickersAndMemes { get; set; } @@ -128,10 +128,10 @@ public Team ToTeam() public string ToJsonString() { - return JsonConvert.SerializeObject(this, new JsonSerializerSettings + return JsonSerializer.Serialize(this, new JsonSerializerOptions() { - ContractResolver = new CamelCasePropertyNamesContractResolver(), - NullValueHandling = NullValueHandling.Ignore + IgnoreNullValues = true, + PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } } diff --git a/Commands/Model/Teams/TeamTab.cs b/Commands/Model/Teams/TeamTab.cs index 044bd3b83..fc5b16c1f 100644 --- a/Commands/Model/Teams/TeamTab.cs +++ b/Commands/Model/Teams/TeamTab.cs @@ -1,9 +1,4 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Text.Json.Serialization; using System.Web; namespace PnP.PowerShell.Commands.Model.Teams @@ -28,7 +23,7 @@ public string DisplayName } } - [JsonProperty("teamsApp@odata.bind")] + [JsonPropertyName("teamsApp@odata.bind")] public string TeamsApp { get; set; } /// /// App definition identifier of the tab diff --git a/Commands/Model/Teams/TeamTabResource.cs b/Commands/Model/Teams/TeamTabResource.cs index 56499e3c2..1997fb904 100644 --- a/Commands/Model/Teams/TeamTabResource.cs +++ b/Commands/Model/Teams/TeamTabResource.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.Json.Serialization; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model.Teams @@ -18,6 +19,7 @@ public partial class TeamTabResource /// /// Defines the Type of Resource for the Tab /// + [JsonConverter(typeof(JsonStringEnumConverter))] public TabResourceType Type { get; set; } /// diff --git a/Commands/PnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj index 71e5cef60..aa2430f4b 100644 --- a/Commands/PnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -422,6 +422,9 @@ ..\packages\Microsoft.Azure.ActiveDirectory.GraphClient.2.1.1\lib\portable-net4+sl5+win+wpa+wp8\Microsoft.Azure.ActiveDirectory.GraphClient.dll + + ..\packages\Microsoft.Bcl.AsyncInterfaces.1.1.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll + ..\packages\Microsoft.Data.Edm.5.8.4\lib\net40\Microsoft.Data.Edm.dll @@ -492,8 +495,8 @@ - - ..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll + + ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll ..\packages\System.ComponentModel.Annotations.4.5.0\lib\net461\System.ComponentModel.Annotations.dll @@ -517,8 +520,8 @@ ..\packages\System.Management.Automation.dll.10.0.10586.0\lib\net40\System.Management.Automation.dll True - - ..\packages\System.Memory.4.5.1\lib\netstandard2.0\System.Memory.dll + + ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll @@ -526,11 +529,11 @@ True - - ..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll + + ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.7.1\lib\net461\System.Runtime.CompilerServices.Unsafe.dll ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll @@ -543,9 +546,17 @@ ..\packages\System.Spatial.5.8.4\lib\net40\System.Spatial.dll - - ..\packages\System.Text.Encodings.Web.4.0.0\lib\netstandard1.0\System.Text.Encodings.Web.dll - True + + ..\packages\System.Text.Encodings.Web.4.7.1\lib\net461\System.Text.Encodings.Web.dll + + + ..\packages\System.Text.Json.4.7.2\lib\net461\System.Text.Json.dll + + + ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll + + + ..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll @@ -763,7 +774,6 @@ - diff --git a/Commands/PnP.PowerShell.Core.csproj b/Commands/PnP.PowerShell.Core.csproj index 3f6170576..f62a9d29a 100644 --- a/Commands/PnP.PowerShell.Core.csproj +++ b/Commands/PnP.PowerShell.Core.csproj @@ -1,7 +1,7 @@  - netstandard2.1 + netstandard2.0 false true PnP.PowerShell.Core @@ -13,7 +13,7 @@ bin\DebugCore\ - TRACE;NETSTANDARD2_1 + TRACE;NETSTANDARD2_1 PNPPSCORE diff --git a/Commands/Properties/AssemblyInfo.cs b/Commands/Properties/AssemblyInfo.cs index e3884b903..7fd599e0e 100644 --- a/Commands/Properties/AssemblyInfo.cs +++ b/Commands/Properties/AssemblyInfo.cs @@ -23,7 +23,7 @@ [assembly: AssemblyProduct("PnP.PowerShell.SP2016.Commands")] #elif SP2019 [assembly: AssemblyProduct("PnP.PowerShell.SP2019.Commands")] -#elif NETSTANDARD2_1 +#elif PNPPSCORE [assembly: AssemblyProduct("PnP.PowerShell.Online.Commands")] #else [assembly: AssemblyProduct("PnP.PowerShell.Online.Commands")] @@ -50,7 +50,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -#if !NETSTANDARD2_1 +#if !PNPPSCORE [assembly: AssemblyVersion("3.24.2008.0")] [assembly: AssemblyFileVersion("3.24.2008.0")] #else diff --git a/Commands/Provider/SPOContentReaderWriter.cs b/Commands/Provider/SPOContentReaderWriter.cs index 4b944c470..e0b823bd7 100644 --- a/Commands/Provider/SPOContentReaderWriter.cs +++ b/Commands/Provider/SPOContentReaderWriter.cs @@ -63,7 +63,7 @@ public IList Write(IList content) _streamWriter.Flush(); _stream.Position = 0; -#if NETSTANDARD2_1 +#if PNPPSCORE _file.SaveBinary(new FileSaveBinaryInformation()); #else File.SaveBinaryDirect((_file.Context as ClientContext), _file.ServerRelativeUrl, _stream, true); diff --git a/Commands/Provider/SPOProvider.cs b/Commands/Provider/SPOProvider.cs index 3dc1d7194..7ec28fc9a 100644 --- a/Commands/Provider/SPOProvider.cs +++ b/Commands/Provider/SPOProvider.cs @@ -537,7 +537,7 @@ public void ClearContent(string path) if (ShouldProcess($"Clear content from {GetServerRelativePath(path)}")) { var file = obj as File; -#if NETSTANDARD2_1 +#if PNPPSCORE file.SaveBinary(new FileSaveBinaryInformation()); #else File.SaveBinaryDirect(file.Context as ClientContext, file.ServerRelativeUrl, Stream.Null, true); diff --git a/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs b/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs index 94495a68b..c104b4296 100644 --- a/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/AddFileToProvisioningTemplate.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() var fileName = file.EnsureProperty(f => f.Name); var folderRelativeUrl = serverRelativeUrl.Substring(0, serverRelativeUrl.Length - fileName.Length - 1); -#if !NETSTANDARD2_1 +#if !PNPPSCORE var folderWebRelativeUrl = HttpUtility.UrlKeyValueDecode(folderRelativeUrl.Substring(SelectedWeb.ServerRelativeUrl.TrimEnd('/').Length + 1)); #else var folderWebRelativeUrl = System.Web.HttpUtility.UrlDecode(folderRelativeUrl.Substring(SelectedWeb.ServerRelativeUrl.TrimEnd('/').Length + 1)); diff --git a/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs b/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs index 6fa1f8bdd..1a324f4fd 100644 --- a/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ExportListToProvisioningTemplate.cs @@ -177,7 +177,7 @@ private void ExtractTemplate(XMLPnPSchemaVersion schema, string path, string pac if (extension == ".pnp") { -#if !NETSTANDARD2_1 +#if !PNPPSCORE IsolatedStorage.InitializeIsolatedStorage(); #endif XMLTemplateProvider provider = new XMLOpenXMLTemplateProvider( diff --git a/Commands/Provisioning/Site/GetProvisioningTemplate.cs b/Commands/Provisioning/Site/GetProvisioningTemplate.cs index 924c9f3bc..6e1378e3b 100644 --- a/Commands/Provisioning/Site/GetProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/GetProvisioningTemplate.cs @@ -445,7 +445,7 @@ private void ExtractTemplate(XMLPnPSchemaVersion schema, string path, string pac if (extension == ".pnp") { -#if !NETSTANDARD2_1 +#if !PNPPSCORE IsolatedStorage.InitializeIsolatedStorage(); #endif XMLTemplateProvider provider = new XMLOpenXMLTemplateProvider( diff --git a/Commands/Provisioning/Site/SaveProvisioningTemplate.cs b/Commands/Provisioning/Site/SaveProvisioningTemplate.cs index c1908c13b..8c478fb64 100644 --- a/Commands/Provisioning/Site/SaveProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/SaveProvisioningTemplate.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() if (extension == ".pnp") { -#if !NETSTANDARD2_1 +#if !PNPPSCORE IsolatedStorage.InitializeIsolatedStorage(); #endif XMLTemplateProvider provider = new XMLOpenXMLTemplateProvider( diff --git a/Commands/Provisioning/Tenant/SaveTenantTemplate.cs b/Commands/Provisioning/Tenant/SaveTenantTemplate.cs index 8e14347c7..aa57fb3b9 100644 --- a/Commands/Provisioning/Tenant/SaveTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/SaveTenantTemplate.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() if (extension == ".pnp") { -#if !NETSTANDARD2_1 +#if !PNPPSCORE IsolatedStorage.InitializeIsolatedStorage(); #endif var templateFileName = outFileName.Substring(0, outFileName.LastIndexOf(".", StringComparison.Ordinal)) + ".xml"; diff --git a/Commands/Site/SetSite.cs b/Commands/Site/SetSite.cs index 9387c3ba9..724c12240 100644 --- a/Commands/Site/SetSite.cs +++ b/Commands/Site/SetSite.cs @@ -167,7 +167,7 @@ protected override void ExecuteCmdlet() if (System.IO.File.Exists(LogoFilePath)) { var bytes = System.IO.File.ReadAllBytes(LogoFilePath); -#if !NETSTANDARD2_1 +#if !PNPPSCORE var mimeType = System.Web.MimeMapping.GetMimeMapping(LogoFilePath); #else var mimeType = ""; diff --git a/Commands/Teams/AddTeamsChannel.cs b/Commands/Teams/AddTeamsChannel.cs index 73adb30c7..c65daa5bd 100644 --- a/Commands/Teams/AddTeamsChannel.cs +++ b/Commands/Teams/AddTeamsChannel.cs @@ -21,34 +21,42 @@ namespace PnP.PowerShell.Commands.Graph Remarks = "Adds a new channel to the specified Teams instance", SortOrder = 2)] [CmdletExample( - Code = "PS:> Add-PnPTeamsChannel -Team MyTeam -DisplayName \"My Channel\" -Private", + Code = "PS:> Add-PnPTeamsChannel -Team MyTeam -DisplayName \"My Channel\" -Private -OwnerUPN user@domain.com", Remarks = "Adds a new private channel to the specified Teams instance", SortOrder = 3)] [CmdletMicrosoftGraphApiPermission(MicrosoftGraphApiPermission.Group_ReadWrite_All)] public class AddTeamsChannel : PnPGraphCmdlet { - [Parameter(Mandatory = true, HelpMessage = "Specify the group id, mailNickname or display name of the team to use.")] + private const string ParameterSET_PRIVATE = "Private channel"; + private const string ParameterSET_PUBLIC = "Public channel"; + + [Parameter(Mandatory = true, HelpMessage = "Specify the group id, mailNickname or display name of the team to use.", ParameterSetName = ParameterSET_PUBLIC)] + [Parameter(Mandatory = true, HelpMessage = "Specify the group id, mailNickname or display name of the team to use.", ParameterSetName = ParameterSET_PRIVATE)] public TeamsTeamPipeBind Team; - [Parameter(Mandatory = true, HelpMessage = "The display name of the new channel. Letters, numbers and spaces are allowed.")] + [Parameter(Mandatory = true, HelpMessage = "The display name of the new channel. Letters, numbers and spaces are allowed.", ParameterSetName = ParameterSET_PUBLIC)] + [Parameter(Mandatory = true, HelpMessage = "The display name of the new channel. Letters, numbers and spaces are allowed.", ParameterSetName = ParameterSET_PRIVATE)] public string DisplayName; - [Parameter(Mandatory = false, HelpMessage = "An optional description of the channel.")] + [Parameter(Mandatory = false, HelpMessage = "An optional description of the channel.", ParameterSetName = ParameterSET_PUBLIC)] + [Parameter(Mandatory = false, HelpMessage = "An optional description of the channel.", ParameterSetName = ParameterSET_PRIVATE)] public string Description; - [Parameter(Mandatory = false, HelpMessage = "Specify to mark the channel as private.")] + [Parameter(Mandatory = true, HelpMessage = "Specify to mark the channel as private.", ParameterSetName = ParameterSET_PRIVATE)] + [Parameter(Mandatory = false, HelpMessage = "An optional description of the channel.", ParameterSetName = ParameterSET_PUBLIC)] public SwitchParameter Private; + [Parameter(Mandatory = true, HelpMessage = "The UPN/email of the owner", ParameterSetName = ParameterSET_PRIVATE)] + public string OwnerUPN; + protected override void ExecuteCmdlet() { - Model.Teams.TeamChannel channel = null; - var groupId = Team.GetGroupId(HttpClient, AccessToken); if (groupId != null) { try { - channel = TeamsUtility.AddChannel(AccessToken, HttpClient, groupId, DisplayName, Description, Private); + var channel = TeamsUtility.AddChannel(AccessToken, HttpClient, groupId, DisplayName, Description, Private, OwnerUPN); WriteObject(channel); } catch (GraphException ex) diff --git a/Commands/Teams/GetTeamsTab.cs b/Commands/Teams/GetTeamsTab.cs index 0f1d80c81..13dc065c3 100644 --- a/Commands/Teams/GetTeamsTab.cs +++ b/Commands/Teams/GetTeamsTab.cs @@ -51,15 +51,7 @@ protected override void ExecuteCmdlet() { if (ParameterSpecified(nameof(Identity))) { - - if (string.IsNullOrEmpty(Identity.Id)) - { - WriteObject(Identity.GetTab(HttpClient, AccessToken, groupId, channelId)); - } - else - { - WriteObject(Identity.GetTabById(HttpClient, AccessToken, groupId, channelId)); - } + WriteObject(Identity.GetTab(HttpClient, AccessToken, groupId, channelId)); } else { diff --git a/Commands/Teams/RemoveTeamsTab.cs b/Commands/Teams/RemoveTeamsTab.cs index 86b08914a..9e68970cd 100644 --- a/Commands/Teams/RemoveTeamsTab.cs +++ b/Commands/Teams/RemoveTeamsTab.cs @@ -5,6 +5,7 @@ using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; +using System.Configuration; using System.Management.Automation; namespace PnP.PowerShell.Commands.Graph @@ -45,41 +46,32 @@ protected override void ExecuteCmdlet() var channelId = Channel.GetId(HttpClient, AccessToken, groupId); if (channelId != null) { - var tabId = string.Empty; - if (string.IsNullOrEmpty(Identity.Id)) + var tab = Identity.GetTab(HttpClient, AccessToken, groupId, channelId); + if (tab != null) { - tabId = Identity.Id.ToString(); - } - else - { - var tab = Identity.GetTab(HttpClient, AccessToken, groupId, channelId); - if (tab != null) - { - tabId = tab.Id; - } - else - { - throw new PSArgumentException("Cannot find tab"); - } - } - if (Force || ShouldContinue("Removing the tab will remove the settings of this tab too.", Properties.Resources.Confirm)) - { - var response = TeamsUtility.DeleteTab(AccessToken, HttpClient, groupId, channelId, tabId); - if (!response.IsSuccessStatusCode) + if (Force || ShouldContinue("Removing the tab will remove the settings of this tab too.", Properties.Resources.Confirm)) { - if (GraphHelper.TryGetGraphException(response, out GraphException ex)) + var response = TeamsUtility.DeleteTab(AccessToken, HttpClient, groupId, channelId, tab.Id); + if (!response.IsSuccessStatusCode) { - if (ex.Error != null) + if (GraphHelper.TryGetGraphException(response, out GraphException ex)) { - throw new PSInvalidOperationException(ex.Error.Message); + if (ex.Error != null) + { + throw new PSInvalidOperationException(ex.Error.Message); + } + } + else + { + throw new PSInvalidOperationException("Tab remove failed"); } - } - else - { - throw new PSInvalidOperationException("Tab remove failed"); } } } + else + { + throw new PSArgumentException("Tab not found"); + } } else { diff --git a/Commands/Teams/SetTeamsTeam.cs b/Commands/Teams/SetTeamsTeam.cs index fa22b9da3..2ca052703 100644 --- a/Commands/Teams/SetTeamsTeam.cs +++ b/Commands/Teams/SetTeamsTeam.cs @@ -136,7 +136,7 @@ protected override void ExecuteCmdlet() teamCI.AllowCreateUpdateRemoveTabs = ParameterSpecified(nameof(AllowCreateUpdateRemoveTabs)) ? AllowCreateUpdateRemoveTabs : null; teamCI.AllowCustomMemes = ParameterSpecified(nameof(AllowCustomMemes)) ? AllowCustomMemes : null; teamCI.AllowDeleteChannels = ParameterSpecified(nameof(AllowDeleteChannels)) ? AllowDeleteChannels : null; - teamCI.AllowGiphy = ParameterSpecified(nameof(AllowGiphy)) ? AllowGiphy : null; ; + teamCI.AllowGiphy = ParameterSpecified(nameof(AllowGiphy)) ? AllowGiphy : null; teamCI.AllowGuestCreateUpdateChannels = ParameterSpecified(nameof(AllowGuestCreateUpdateChannels)) ? AllowGuestCreateUpdateChannels : null; teamCI.AllowGuestDeleteChannels = ParameterSpecified(nameof(AllowGuestDeleteChannels)) ? AllowGuestDeleteChannels : null; teamCI.AllowOwnerDeleteMessages = ParameterSpecified(nameof(AllowOwnerDeleteMessages)) ? AllowOwnerDeleteMessages : null; diff --git a/Commands/Utilities/AzureAuthHelper.cs b/Commands/Utilities/AzureAuthHelper.cs index 6aa0f65dc..8bbdf9607 100644 --- a/Commands/Utilities/AzureAuthHelper.cs +++ b/Commands/Utilities/AzureAuthHelper.cs @@ -1,4 +1,4 @@ -#if !NETSTANDARD2_1 +#if !PNPPSCORE using Microsoft.Azure.ActiveDirectory.GraphClient; using Microsoft.Azure.ActiveDirectory.GraphClient.Internal; using Microsoft.Identity.Client; diff --git a/Commands/Utilities/BrowserHelper.cs b/Commands/Utilities/BrowserHelper.cs index cdd655caf..95233299e 100644 --- a/Commands/Utilities/BrowserHelper.cs +++ b/Commands/Utilities/BrowserHelper.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -#if !NETSTANDARD2_1 +#if !PNPPSCORE using System.Windows.Forms; #endif @@ -13,7 +13,7 @@ namespace PnP.PowerShell.Commands.Utilities { internal static class BrowserHelper { -#if !NETSTANDARD2_1 +#if !PNPPSCORE public static void LaunchBrowser(string url) { var thread = new Thread(() => diff --git a/Commands/Utilities/CredentialManager.cs b/Commands/Utilities/CredentialManager.cs index 0642409d2..98a16146e 100644 --- a/Commands/Utilities/CredentialManager.cs +++ b/Commands/Utilities/CredentialManager.cs @@ -11,7 +11,7 @@ namespace PnP.PowerShell.Commands.Utilities internal static class CredentialManager { -#if NETSTANDARD2_1 +#if PNPPSCORE public static bool AddCredential(string name, string username, SecureString password, bool overwrite) #else public static bool AddCredential(string name, string username, SecureString password) @@ -21,7 +21,7 @@ public static bool AddCredential(string name, string username, SecureString pass { name = $"PnPPS:{name}"; } -#if !NETSTANDARD2_1 +#if !PNPPSCORE WriteWindowsCredentialManagerEntry(name, username, password); return true; #else @@ -39,7 +39,7 @@ public static bool AddCredential(string name, string username, SecureString pass public static PSCredential GetCredential(string name) { -#if !NETSTANDARD2_1 +#if !PNPPSCORE var cred = ReadWindowsCredentialManagerEntry(name); if (cred == null) { @@ -71,7 +71,7 @@ public static PSCredential GetCredential(string name) public static bool RemoveCredential(string name) { -#if !NETSTANDARD2_1 +#if !PNPPSCORE var success = DeleteWindowsCredentialManagerEntry(name); if(!success) { @@ -167,7 +167,7 @@ private static void WriteWindowsCredentialManagerEntry(string applicationName, s } } -#if NETSTANDARD2_1 +#if PNPPSCORE private static PSCredential ReadMacOSKeyChainEntry(string name) { var cmd = $"/usr/bin/security find-generic-password -s '{name}'"; @@ -196,7 +196,7 @@ private static PSCredential ReadMacOSKeyChainEntry(string name) } #endif -#if NETSTANDARD2_1 +#if PNPPSCORE private static void WriteMacOSKeyChainEntry(string applicationName, string username, SecureString password, bool overwrite) { var pw = SecureStringToString(password); @@ -209,7 +209,7 @@ private static void WriteMacOSKeyChainEntry(string applicationName, string usern } #endif -#if NETSTANDARD2_1 +#if PNPPSCORE private static bool DeleteMacOSKeyChainEntry(string name) { var cmd = $"/usr/bin/security delete-generic-password -s '{name}'"; diff --git a/Commands/Utilities/DynamicLinq.cs b/Commands/Utilities/DynamicLinq.cs index ff7b3482d..9cf1d56b4 100644 --- a/Commands/Utilities/DynamicLinq.cs +++ b/Commands/Utilities/DynamicLinq.cs @@ -258,7 +258,7 @@ static ClassFactory() { } // Trigger lazy initialization of static fields private ClassFactory() { AssemblyName name = new AssemblyName("DynamicClasses"); -#if !NETSTANDARD2_1 +#if !PNPPSCORE AssemblyBuilder assembly = AppDomain.CurrentDomain.DefineDynamicAssembly(name, AssemblyBuilderAccess.Run); #else AssemblyBuilder assembly = AssemblyBuilder.DefineDynamicAssembly(name, AssemblyBuilderAccess.Run); @@ -316,7 +316,7 @@ Type CreateDynamicClass(DynamicProperty[] properties) FieldInfo[] fields = GenerateProperties(tb, properties); GenerateEquals(tb, fields); GenerateGetHashCode(tb, fields); -#if !NETSTANDARD2_1 +#if !PNPPSCORE Type result = tb.CreateType(); #else Type result = tb.CreateTypeInfo().AsType(); diff --git a/Commands/Utilities/IsolatedStorage.cs b/Commands/Utilities/IsolatedStorage.cs index 97b62d969..12c6fa9ec 100644 --- a/Commands/Utilities/IsolatedStorage.cs +++ b/Commands/Utilities/IsolatedStorage.cs @@ -1,4 +1,4 @@ -#if !NETSTANDARD2_1 +#if !PNPPSCORE using System; using System.Collections.Generic; using System.Linq; diff --git a/Commands/Utilities/OperatingSystem.cs b/Commands/Utilities/OperatingSystem.cs index 20d4c60d9..e5af596d9 100644 --- a/Commands/Utilities/OperatingSystem.cs +++ b/Commands/Utilities/OperatingSystem.cs @@ -8,21 +8,21 @@ namespace PnP.PowerShell.Commands.Utilities public static class OperatingSystem { public static bool IsWindows() => -#if !NETSTANDARD2_1 +#if !PNPPSCORE true; #else RuntimeInformation.IsOSPlatform(OSPlatform.Windows); #endif public static bool IsMacOS() => -#if !NETSTANDARD2_1 +#if !PNPPSCORE false; #else RuntimeInformation.IsOSPlatform(OSPlatform.OSX); #endif public static bool IsLinux() => -#if !NETSTANDARD2_1 +#if !PNPPSCORE false; #else RuntimeInformation.IsOSPlatform(OSPlatform.Linux); diff --git a/Commands/Utilities/REST/GraphCollection.cs b/Commands/Utilities/REST/GraphCollection.cs index ab73d4099..44383db82 100644 --- a/Commands/Utilities/REST/GraphCollection.cs +++ b/Commands/Utilities/REST/GraphCollection.cs @@ -1,8 +1,8 @@ -using Newtonsoft.Json; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; +using System.Text.Json.Serialization; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Utilities.REST @@ -10,10 +10,10 @@ namespace PnP.PowerShell.Commands.Utilities.REST public class GraphCollection { - [JsonProperty("@odata.nextLink")] + [JsonPropertyName("@odata.nextLink")] public string NextLink { get; set; } - [JsonProperty("value")] + [JsonPropertyName("value")] public IEnumerable Items { get; set; } } } diff --git a/Commands/Utilities/REST/GraphHelper.cs b/Commands/Utilities/REST/GraphHelper.cs index f6794b200..7917353bb 100644 --- a/Commands/Utilities/REST/GraphHelper.cs +++ b/Commands/Utilities/REST/GraphHelper.cs @@ -1,7 +1,5 @@ using Microsoft.Graph; using Microsoft.Identity.Client; -using Newtonsoft.Json; -using Newtonsoft.Json.Serialization; using PnP.PowerShell.Commands.Model.Teams; using System; using System.Collections.Generic; @@ -9,6 +7,7 @@ using System.Net; using System.Net.Http; using System.Text; +using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -31,7 +30,7 @@ public static bool TryGetGraphException(HttpResponseMessage responseMessage, out } try { - exception = JsonConvert.DeserializeObject(content); + exception = JsonSerializer.Deserialize(content, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); return true; } catch @@ -52,11 +51,7 @@ private static HttpRequestMessage GetMessage(string url, HttpMethod method, stri message.Method = method; message.RequestUri = !url.StartsWith("https://", StringComparison.OrdinalIgnoreCase) ? new Uri($"https://graph.microsoft.com/{url}") : new Uri(url); message.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", accessToken); -#if NETSTANDARD2_1 - if (method == HttpMethod.Post || method == HttpMethod.Put || method == HttpMethod.Patch) -#else if (method == HttpMethod.Post || method == HttpMethod.Put || method.Method == "PATCH") -#endif { message.Content = content; } @@ -70,16 +65,21 @@ public static async Task GetAsync(HttpClient httpClient, string url, str return await SendMessageAsync(httpClient, message); } - public static async Task GetAsync(HttpClient httpClient, string url, string accessToken) + public static async Task GetAsync(HttpClient httpClient, string url, string accessToken, bool camlCasePolicy = true) { var stringContent = await GetAsync(httpClient, url, accessToken); if (stringContent != null) { + var options = new JsonSerializerOptions() { IgnoreNullValues = true }; + if (camlCasePolicy) + { + options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; + } try { - return JsonConvert.DeserializeObject(stringContent); + return JsonSerializer.Deserialize(stringContent, options); } - catch + catch (Exception ex) { return default(T); } @@ -103,17 +103,13 @@ public static async Task PutAsync(HttpClient httpClient, st public static async Task PatchAsync(HttpClient httpClient, string accessToken, string url, T content) { - var requestContent = new StringContent(JsonConvert.SerializeObject(content, new JsonSerializerSettings() { DefaultValueHandling = DefaultValueHandling.Ignore, ContractResolver = new CamelCasePropertyNamesContractResolver() })); + var requestContent = new StringContent(JsonSerializer.Serialize(content, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase })); requestContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); -#if NETSTANDARD2_1 - var message = GetMessage(url, HttpMethod.Patch, accessToken, requestContent); -#else var message = GetMessage(url, new HttpMethod("PATCH"), accessToken, requestContent); -#endif var returnValue = await SendMessageAsync(httpClient, message); if (!string.IsNullOrEmpty(returnValue)) { - return JsonConvert.DeserializeObject(returnValue); + return JsonSerializer.Deserialize(returnValue, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } else { @@ -125,13 +121,32 @@ public static async Task PatchAsync(HttpClient httpClient, string accessTo public static async Task PostAsync(HttpClient httpClient, string url, HttpContent content, string accessToken) { - var message = GetMessage(url, HttpMethod.Post, accessToken, content); + return await PostInternalAsync(httpClient, url, accessToken, content); + //var message = GetMessage(url, HttpMethod.Post, accessToken, content); + //var stringContent = await SendMessageAsync(httpClient, message); + //if (stringContent != null) + //{ + // try + // { + // return JsonSerializer.Deserialize(stringContent); + // } + // catch + // { + // return default; + // } + //} + //return default; + } + + public static async Task PutAsync(HttpClient httpClient, string url, string accessToken, HttpContent content) + { + var message = GetMessage(url, HttpMethod.Put, accessToken, content); var stringContent = await SendMessageAsync(httpClient, message); if (stringContent != null) { try { - return JsonConvert.DeserializeObject(stringContent); + return JsonSerializer.Deserialize(stringContent); } catch { @@ -141,15 +156,38 @@ public static async Task PostAsync(HttpClient httpClient, string url, Http return default; } - public static async Task PutAsync(HttpClient httpClient, string url, string accessToken, HttpContent content) + public static async Task PostAsync(HttpClient httpClient, string url, T content, string accessToken) { - var message = GetMessage(url, HttpMethod.Put, accessToken, content); + var requestContent = new StringContent(JsonSerializer.Serialize(content, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase })); + requestContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); + + return await PostInternalAsync(httpClient, url, accessToken, requestContent); + //var message = GetMessage(url, HttpMethod.Post, accessToken, requestContent); + //var returnValue = await SendMessageAsync(httpClient, message); + //if (!string.IsNullOrEmpty(returnValue)) + //{ + // return JsonSerializer.Deserialize(returnValue); + //} + //else + //{ + // return default; + //} + } + + public static async Task PostAsync(HttpClient httpClient, string url, string accessToken) + { + return await PostInternalAsync(httpClient, url, accessToken, null); + } + + private static async Task PostInternalAsync(HttpClient httpClient, string url, string accessToken, HttpContent content) + { + var message = GetMessage(url, HttpMethod.Post, accessToken, content); var stringContent = await SendMessageAsync(httpClient, message); if (stringContent != null) { try { - return JsonConvert.DeserializeObject(stringContent); + return JsonSerializer.Deserialize(stringContent, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } catch { @@ -159,31 +197,15 @@ public static async Task PutAsync(HttpClient httpClient, string url, strin return default; } - public static async Task PostAsync(HttpClient httpClient, string url, T content, string accessToken) - { - var requestContent = new StringContent(JsonConvert.SerializeObject(content, new JsonSerializerSettings() { DefaultValueHandling = DefaultValueHandling.Ignore, ContractResolver = new CamelCasePropertyNamesContractResolver() })); - requestContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); - var message = GetMessage(url, HttpMethod.Post, accessToken, requestContent); - var returnValue = await SendMessageAsync(httpClient, message); - if (!string.IsNullOrEmpty(returnValue)) - { - return JsonConvert.DeserializeObject(returnValue); - } - else - { - return default; - } - } - public static async Task PutAsync(HttpClient httpClient, string url, T content, string accessToken) { - var requestContent = new StringContent(JsonConvert.SerializeObject(content, new JsonSerializerSettings() { DefaultValueHandling = DefaultValueHandling.Ignore, ContractResolver = new CamelCasePropertyNamesContractResolver() })); + var requestContent = new StringContent(JsonSerializer.Serialize(content, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase })); requestContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); var message = GetMessage(url, HttpMethod.Put, accessToken, requestContent); var returnValue = await SendMessageAsync(httpClient, message); if (!string.IsNullOrEmpty(returnValue)) { - return JsonConvert.DeserializeObject(returnValue); + return JsonSerializer.Deserialize(returnValue, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } else { @@ -215,7 +237,7 @@ private static async Task SendMessageAsync(HttpClient httpClient, HttpRe else { var errorContent = await response.Content.ReadAsStringAsync(); - var exception = JsonConvert.DeserializeObject(errorContent); + var exception = JsonSerializer.Deserialize(errorContent, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); throw exception; } } diff --git a/Commands/Utilities/REST/MetadataType.cs b/Commands/Utilities/REST/MetadataType.cs index 34ca858e0..3f1ef832d 100644 --- a/Commands/Utilities/REST/MetadataType.cs +++ b/Commands/Utilities/REST/MetadataType.cs @@ -1,11 +1,11 @@ -using Newtonsoft.Json; +using System.Text.Json.Serialization; namespace PnP.PowerShell.Commands.Utilities.REST { public class MetadataType { - [JsonProperty("type")] - public string _typename; + [JsonPropertyName("type")] + public string _typename { get; set; } public MetadataType(string typename) { diff --git a/Commands/Utilities/REST/RestHelper.cs b/Commands/Utilities/REST/RestHelper.cs index 7db092a9d..2647c145f 100644 --- a/Commands/Utilities/REST/RestHelper.cs +++ b/Commands/Utilities/REST/RestHelper.cs @@ -2,8 +2,8 @@ using System.Collections.Generic; using System.Linq; using System.Net.Http; +using System.Text.Json; using Microsoft.SharePoint.Client; -using Newtonsoft.Json; namespace PnP.PowerShell.Commands.Utilities.REST { @@ -13,7 +13,7 @@ public static T ExecuteGetRequest(ClientContext context, string url, string s { var returnValue = ExecuteGetRequest(context, url, select, filter, expand); - var returnObject = JsonConvert.DeserializeObject(returnValue); + var returnObject = JsonSerializer.Deserialize(returnValue, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); return returnObject; } @@ -53,12 +53,6 @@ public static string ExecuteGetRequest(ClientContext context, string endPointUrl return returnValue; } - public static T ExecutePostRequest(ClientContext context, string url, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - var returnValue = ExecutePostRequestInternal(context, url, null, select, filter, expand); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - public static T ExecutePostRequest(ClientContext context, string url, string content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, string contentType = "application/json", uint? top = null) { HttpContent stringContent = null; @@ -72,19 +66,7 @@ public static T ExecutePostRequest(ClientContext context, string url, string } var returnValue = ExecutePostRequestInternal(context, url, stringContent, select, filter, expand, additionalHeaders, top); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - - public static T ExecutePostRequest(ClientContext context, string url, byte[] content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, uint? top = null) - { - var byteArrayContent = new ByteArrayContent(content); - var returnValue = ExecutePostRequestInternal(context, url, byteArrayContent, select, filter, expand, additionalHeaders, top); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - - public static HttpResponseMessage ExecutePostRequest(ClientContext context, string endPointUrl, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, uint? top = null) - { - return ExecutePostRequestInternal(context, endPointUrl, null, select, filter, expand, additionalHeaders, top); + return JsonSerializer.Deserialize(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult(), new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } public static HttpResponseMessage ExecutePostRequest(ClientContext context, string endPointUrl, string content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, string contentType = "application/json", uint? top = null) @@ -101,12 +83,6 @@ public static HttpResponseMessage ExecutePostRequest(ClientContext context, stri return ExecutePostRequestInternal(context, endPointUrl, stringContent, select, filter, expand, additionalHeaders, top); } - public static HttpResponseMessage ExecutePostRequest(ClientContext context, string endPointUrl, byte[] content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - var byteArrayContent = new ByteArrayContent(content); - return ExecutePostRequestInternal(context, endPointUrl, byteArrayContent, select, filter, expand, additionalHeaders); - } - private static HttpResponseMessage ExecutePostRequestInternal(ClientContext context, string endPointUrl, HttpContent content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, uint? top = null) { var url = endPointUrl; @@ -164,20 +140,7 @@ public static T ExecutePutRequest(ClientContext context, string url, string c } var returnValue = ExecutePutRequestInternal(context, url, stringContent, select, filter, expand); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - - public static T ExecutePutRequest(ClientContext context, string url, byte[] content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - var byteArrayContent = new ByteArrayContent(content); - var returnValue = ExecutePutRequestInternal(context, url, byteArrayContent, select, filter, expand); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - - - public static HttpResponseMessage ExecutePutRequest(ClientContext context, string endPointUrl, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - return ExecutePutRequestInternal(context, endPointUrl, null, select, filter, expand, additionalHeaders); + return JsonSerializer.Deserialize(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult(), new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } public static HttpResponseMessage ExecutePutRequest(ClientContext context, string endPointUrl, string content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, string contentType = null) @@ -190,12 +153,6 @@ public static HttpResponseMessage ExecutePutRequest(ClientContext context, strin return ExecutePutRequestInternal(context, endPointUrl, stringContent, select, filter, expand, additionalHeaders); } - public static HttpResponseMessage ExecutePutRequest(ClientContext context, string endPointUrl, byte[] content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - var byteArrayContent = new ByteArrayContent(content); - return ExecutePutRequestInternal(context, endPointUrl, byteArrayContent, select, filter, expand, additionalHeaders); - } - private static HttpResponseMessage ExecutePutRequestInternal(ClientContext context, string endPointUrl, HttpContent content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) { var url = endPointUrl; @@ -249,20 +206,7 @@ public static T ExecuteMergeRequest(ClientContext context, string url, string } var returnValue = ExecuteMergeRequestInternal(context, url, stringContent, select, filter, expand); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - - public static T ExecuteMergeRequest(ClientContext context, string url, byte[] content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - var byteArrayContent = new ByteArrayContent(content); - var returnValue = ExecuteMergeRequestInternal(context, url, byteArrayContent, select, filter, expand); - return JsonConvert.DeserializeObject(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult()); - } - - - public static HttpResponseMessage ExecuteMergeRequest(ClientContext context, string endPointUrl, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - return ExecuteMergeRequestInternal(context, endPointUrl, null, select, filter, expand, additionalHeaders); + return JsonSerializer.Deserialize(returnValue.Content.ReadAsStringAsync().GetAwaiter().GetResult(), new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } public static HttpResponseMessage ExecuteMergeRequest(ClientContext context, string endPointUrl, string content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null, string contentType = null) @@ -275,12 +219,6 @@ public static HttpResponseMessage ExecuteMergeRequest(ClientContext context, str return ExecuteMergeRequestInternal(context, endPointUrl, stringContent, select, filter, expand, additionalHeaders); } - public static HttpResponseMessage ExecuteMergeRequest(ClientContext context, string endPointUrl, byte[] content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) - { - var byteArrayContent = new ByteArrayContent(content); - return ExecuteMergeRequestInternal(context, endPointUrl, byteArrayContent, select, filter, expand, additionalHeaders); - } - private static HttpResponseMessage ExecuteMergeRequestInternal(ClientContext context, string endPointUrl, HttpContent content, string select = null, string filter = null, string expand = null, Dictionary additionalHeaders = null) { var url = endPointUrl; diff --git a/Commands/Utilities/REST/RestRequest.cs b/Commands/Utilities/REST/RestRequest.cs index b5fa05a1c..8ef85ee70 100644 --- a/Commands/Utilities/REST/RestRequest.cs +++ b/Commands/Utilities/REST/RestRequest.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Text; +using System.Text.Json; using Microsoft.SharePoint.Client; -using Newtonsoft.Json; namespace PnP.PowerShell.Commands.Utilities.REST { @@ -95,7 +93,7 @@ public string Get() var select = _selects.Any() ? string.Join(",", _selects) : null; var expands = _expands.Any() ? string.Join(",", _expands) : null; properties["__metadata"] = new MetadataType(metadataType); - var content = JsonConvert.SerializeObject(properties); + var content = JsonSerializer.Serialize(properties); RestHelper.ExecutePostRequest(_context, _root, content, select, _filter, expands, contentType: contentType); } @@ -107,7 +105,7 @@ public string Get() var payload = new Dictionary() { { "parameters", properties} }; - var content = JsonConvert.SerializeObject(payload); + var content = JsonSerializer.Serialize(payload); return RestHelper.ExecutePostRequest(_context, _root, content, select, _filter, expands, contentType: contentType); } @@ -138,7 +136,7 @@ public T Merge(string content = null, string contentType = null) var select = _selects.Any() ? string.Join(",", _selects) : null; var expands = _expands.Any() ? string.Join(",", _expands) : null; properties["__metadata"] = new MetadataType(metadataType); - var content = JsonConvert.SerializeObject(properties); + var content = JsonSerializer.Serialize(properties); return RestHelper.ExecuteMergeRequest(_context, _root, content, select, _filter, expands, contentType: contentType); } @@ -147,7 +145,7 @@ public T Merge(string content = null, string contentType = null) var select = _selects.Any() ? string.Join(",", _selects) : null; var expands = _expands.Any() ? string.Join(",", _expands) : null; properties["__metadata"] = new MetadataType(metadataType); - var content = JsonConvert.SerializeObject(properties); + var content = JsonSerializer.Serialize(properties); RestHelper.ExecuteMergeRequest(_context, _root, content, select, _filter, expands, contentType: contentType); } diff --git a/Commands/Utilities/Shell.cs b/Commands/Utilities/Shell.cs index 23d90dc01..97273bfa6 100644 --- a/Commands/Utilities/Shell.cs +++ b/Commands/Utilities/Shell.cs @@ -1,4 +1,4 @@ -#if NETSTANDARD2_1 +#if PNPPSCORE using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/Commands/Utilities/TeamsUtility.cs b/Commands/Utilities/TeamsUtility.cs index b8e2b7ff6..704d458e9 100644 --- a/Commands/Utilities/TeamsUtility.cs +++ b/Commands/Utilities/TeamsUtility.cs @@ -1,14 +1,14 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Serialization; +using OfficeDevPnP.Core.Entities; using PnP.PowerShell.Commands.Model.Teams; -using PnP.PowerShell.Commands.Site; +using PnP.PowerShell.Commands.Principals; using PnP.PowerShell.Commands.Utilities.REST; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Net.Http; -#if !NETSTANDARD2_1 +using System.Text.Json; +#if !PNPPSCORE using System.Web; #endif @@ -23,7 +23,7 @@ public static List GetGroupsWithTeam(HttpClient httpClient, string access { List groups = new List(); string url = string.Empty; - var collection = GraphHelper.GetAsync>(httpClient, $"beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')&$select=Id,DisplayName,MailNickName,Description,Visibility&$top={PageSize}", accessToken).GetAwaiter().GetResult(); ; + var collection = GraphHelper.GetAsync>(httpClient, $"beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')&$select=Id,DisplayName,MailNickName,Description,Visibility&$top={PageSize}", accessToken).GetAwaiter().GetResult(); if (collection != null) { groups.AddRange(collection.Items); @@ -108,7 +108,7 @@ private static Team ParseTeamJson(string accessToken, HttpClient httpClient, str } catch (ApplicationException ex) { -#if !NETSTANDARD2_1 +#if !PNPPSCORE if (ex.InnerException is HttpException) { if (((HttpException)ex.InnerException).GetHttpCode() == 404) @@ -256,7 +256,7 @@ public static HttpResponseMessage SetTeamArchivedState(HttpClient httpClient, st { if (archived) { - StringContent content = new StringContent(JsonConvert.SerializeObject(setSiteReadOnly.HasValue ? new { shouldSetSpoSiteReadOnlyForMembers = setSiteReadOnly } : null)); + StringContent content = new StringContent(JsonSerializer.Serialize(setSiteReadOnly.HasValue ? new { shouldSetSpoSiteReadOnlyForMembers = setSiteReadOnly } : null)); content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); return GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/archive", accessToken, content).GetAwaiter().GetResult(); } @@ -302,7 +302,7 @@ public static void AddUser(HttpClient httpClient, string accessToken, string gro $"https://graph.microsoft.com/v1.0/directoryObjects/{user.Id}" } }; - var stringContent = new StringContent(JsonConvert.SerializeObject(value)); + var stringContent = new StringContent(JsonSerializer.Serialize(value)); stringContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); if (role == "Owner") { @@ -418,7 +418,7 @@ public static HttpResponseMessage DeleteChannel(string accessToken, HttpClient h return GraphHelper.DeleteAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}", accessToken).GetAwaiter().GetResult(); } - public static TeamChannel AddChannel(string accessToken, HttpClient httpClient, string groupId, string displayName, string description, bool isPrivate) + public static TeamChannel AddChannel(string accessToken, HttpClient httpClient, string groupId, string displayName, string description, bool isPrivate, string ownerUPN) { var channel = new TeamChannel() { @@ -429,7 +429,18 @@ public static TeamChannel AddChannel(string accessToken, HttpClient httpClient, { channel.MembershipType = "private"; } - return GraphHelper.PostAsync(httpClient, $"beta/teams/{groupId}/channels", channel, accessToken).GetAwaiter().GetResult(); + if (isPrivate) + { + channel.Type = "#Microsoft.Teams.Core.channel"; + var user = GraphHelper.GetAsync(httpClient, $"v1.0/users/{ownerUPN}", accessToken).GetAwaiter().GetResult(); + channel.Members = new List(); + channel.Members.Add(new TeamChannelMember() { Roles = new List { "owner" }, UserIdentifier = $"https://graph.microsoft.com/beta/users/('{user.Id}')" }); + return GraphHelper.PostAsync(httpClient, $"beta/teams/{groupId}/channels", channel, accessToken).GetAwaiter().GetResult(); + } + else + { + return GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels", channel, accessToken).GetAwaiter().GetResult(); + } } public static void PostMessage(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamChannelMessage message) @@ -499,12 +510,12 @@ public static void UpdateTab(HttpClient httpClient, string accessToken, string g public static TeamTab AddTab(HttpClient httpClient, string accessToken, string groupId, string channelId, string displayName, TeamTabType tabType, string teamsAppId, string entityId, string contentUrl, string removeUrl, string websiteUrl) { TeamTab tab = new TeamTab(); - tab.Configuration = new TeamTabConfiguration(); switch (tabType) { case TeamTabType.Custom: { tab.TeamsAppId = teamsAppId; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = entityId; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = removeUrl; @@ -514,6 +525,7 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g case TeamTabType.DocumentLibrary: { tab.TeamsAppId = "com.microsoft.teamspace.tab.files.sharepoint"; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = ""; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = null; @@ -523,6 +535,7 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g case TeamTabType.WebSite: { tab.TeamsAppId = "com.microsoft.teamspace.tab.web"; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = null; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = null; @@ -532,6 +545,7 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g case TeamTabType.Word: { tab.TeamsAppId = "com.microsoft.teamspace.tab.file.staticviewer.word"; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = entityId; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = null; @@ -541,6 +555,7 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g case TeamTabType.Excel: { tab.TeamsAppId = "com.microsoft.teamspace.tab.file.staticviewer.excel"; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = entityId; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = null; @@ -550,6 +565,7 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g case TeamTabType.PowerPoint: { tab.TeamsAppId = "com.microsoft.teamspace.tab.file.staticviewer.powerpoint"; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = entityId; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = null; @@ -559,6 +575,7 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g case TeamTabType.PDF: { tab.TeamsAppId = "com.microsoft.teamspace.tab.file.staticviewer.pdf"; + tab.Configuration = new TeamTabConfiguration(); tab.Configuration.EntityId = entityId; tab.Configuration.ContentUrl = contentUrl; tab.Configuration.RemoveUrl = null; @@ -633,7 +650,7 @@ public static TeamApp AddApp(HttpClient httpClient, string accessToken, byte[] b else { var content = response.Content.ReadAsStringAsync().GetAwaiter().GetResult(); - return JsonConvert.DeserializeObject(content); + return JsonSerializer.Deserialize(content, new JsonSerializerOptions() { IgnoreNullValues = true, PropertyNamingPolicy = JsonNamingPolicy.CamelCase }); } return null; } diff --git a/Commands/app.config b/Commands/app.config index bcfc73bdb..2e60ae2dd 100644 --- a/Commands/app.config +++ b/Commands/app.config @@ -77,6 +77,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Commands/packages.config b/Commands/packages.config index 86454dcc7..11c18bf9a 100644 --- a/Commands/packages.config +++ b/Commands/packages.config @@ -6,6 +6,7 @@ + @@ -26,7 +27,7 @@ - + @@ -36,18 +37,21 @@ - + - + - + - + + + + \ No newline at end of file diff --git a/HelpAttributes/PnP.PowerShell.Core.Attributes.csproj b/HelpAttributes/PnP.PowerShell.Core.Attributes.csproj index c96fcd868..4dbe4178f 100644 --- a/HelpAttributes/PnP.PowerShell.Core.Attributes.csproj +++ b/HelpAttributes/PnP.PowerShell.Core.Attributes.csproj @@ -1,7 +1,7 @@ - netstandard2.1 + netstandard2.0 diff --git a/PnPPowerShellCore.sln b/PnP.PowerShell.Core.sln similarity index 100% rename from PnPPowerShellCore.sln rename to PnP.PowerShell.Core.sln From 773c95996a6036b85648e8ff30df70cbac7bb959 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 15 Jul 2020 22:01:48 +0200 Subject: [PATCH 12/35] Forcibly lowercase the URL in the weblogin / cookie flow which otherwise could case issues with Invoke-SPRestMethod call. --- Commands/Base/ConnectOnline.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Commands/Base/ConnectOnline.cs b/Commands/Base/ConnectOnline.cs index 1514014ec..0ad6269fa 100644 --- a/Commands/Base/ConnectOnline.cs +++ b/Commands/Base/ConnectOnline.cs @@ -633,7 +633,8 @@ protected override void ProcessRecord() if (!ex.Data.Contains("TimeStampUtc")) { ex.Data.Add("TimeStampUtc", DateTime.UtcNow); - } else + } + else { ex.Data["TimeStampUtc"] = DateTime.UtcNow; } @@ -1304,7 +1305,7 @@ private PnPConnection ConnectAdfsCertificate() private PnPConnection ConnectWebLogin() { #if !PNPPSCORE - return PnPConnectionHelper.InstantiateWebloginConnection(new Uri(Url), MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, SkipTenantAdminCheck); + return PnPConnectionHelper.InstantiateWebloginConnection(new Uri(Url.ToLower()), MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, SkipTenantAdminCheck); #else WriteWarning(@"-UseWebLogin is not implemented, due to restrictions of the .NET Standard framework. Use -PnPO365ManagementShell instead"); return null; From 1759781af67f9c6a5d36c94aab6a647eab4eb7f8 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 15 Jul 2020 22:02:32 +0200 Subject: [PATCH 13/35] fixed compilation issue for .NET Standard --- Commands/Admin/GetTenantId.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Commands/Admin/GetTenantId.cs b/Commands/Admin/GetTenantId.cs index abc9c7c03..823200703 100644 --- a/Commands/Admin/GetTenantId.cs +++ b/Commands/Admin/GetTenantId.cs @@ -4,6 +4,7 @@ using PnP.PowerShell.Commands.Base; using System; using System.Management.Automation; +using System.Net.Http; using System.Text.Json; using System.Web; @@ -45,7 +46,11 @@ protected override void ProcessRecord() { if (ex.InnerException != null) { +#if !PNPPSCORE if (ex.InnerException is HttpException) +#else + if (ex.InnerException is HttpRequestException) +#endif { var message = ex.InnerException.Message; From 5b6afe246f2f29716e3a0cfd60e3e49b984d850a Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 15 Jul 2020 22:02:49 +0200 Subject: [PATCH 14/35] Updated formatting with namespace changes --- .../PnP.PowerShell.Core.Format.ps1xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Commands/ModuleFiles/PnP.PowerShell.Core.Format.ps1xml b/Commands/ModuleFiles/PnP.PowerShell.Core.Format.ps1xml index 52afe4aa2..f87ceac2f 100644 --- a/Commands/ModuleFiles/PnP.PowerShell.Core.Format.ps1xml +++ b/Commands/ModuleFiles/PnP.PowerShell.Core.Format.ps1xml @@ -832,7 +832,7 @@ ProvisioningTemplateInformation - SharePointPnP.PowerShell.Commands.Components.ProvisioningTemplateInformation + PnP.PowerShell.Commands.Components.ProvisioningTemplateInformation @@ -1610,7 +1610,7 @@ SPOTheme - SharePointPnP.PowerShell.Commands.Model.SPOTheme + PnP.PowerShell.Commands.Model.SPOTheme @@ -1797,7 +1797,7 @@ PnPException - SharePointPnP.PowerShell.Commands.Model.PnPException + PnP.PowerShell.Commands.Model.PnPException @@ -1820,7 +1820,7 @@ Team - SharePointPnP.PowerShell.Commands.Model.Teams.Team + PnP.PowerShell.Commands.Model.Teams.Team @@ -1866,7 +1866,7 @@ TeamChannel - SharePointPnP.PowerShell.Commands.Model.Teams.TeamChannel + PnP.PowerShell.Commands.Model.Teams.TeamChannel @@ -1906,7 +1906,7 @@ TeamTab - SharePointPnP.PowerShell.Commands.Model.Teams.TeamTab + PnP.PowerShell.Commands.Model.Teams.TeamTab @@ -1934,7 +1934,7 @@ TeamApp - SharePointPnP.PowerShell.Commands.Model.Teams.TeamApp + PnP.PowerShell.Commands.Model.Teams.TeamApp @@ -1974,7 +1974,7 @@ TeamChannelMessage - SharePointPnP.PowerShell.Commands.Model.Teams.TeamChannelMessage + PnP.PowerShell.Commands.Model.Teams.TeamChannelMessage @@ -2010,7 +2010,7 @@ User - SharePointPnP.PowerShell.Commands.Model.Teams.User + PnP.PowerShell.Commands.Model.Teams.User From 06a17974478555e7f3bff331ae5eae7aabb646e9 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Thu, 16 Jul 2020 14:01:24 +0200 Subject: [PATCH 15/35] Added support to retrieve members of a private channel --- Commands/Model/Teams/TeamChannel.cs | 14 ---------- Commands/Model/Teams/TeamChannelMember.cs | 31 +++++++++++++++++++++++ Commands/PnP.PowerShell.Commands.csproj | 1 + Commands/Teams/GetTeamsUser.cs | 18 +++++++++++-- Commands/Utilities/TeamsUtility.cs | 29 +++++++++++++++++++++ 5 files changed, 77 insertions(+), 16 deletions(-) create mode 100644 Commands/Model/Teams/TeamChannelMember.cs diff --git a/Commands/Model/Teams/TeamChannel.cs b/Commands/Model/Teams/TeamChannel.cs index b4641aaeb..b48a92f7f 100644 --- a/Commands/Model/Teams/TeamChannel.cs +++ b/Commands/Model/Teams/TeamChannel.cs @@ -58,18 +58,4 @@ public partial class TeamChannel #endregion } - - public class TeamChannelMember - { - [JsonPropertyName("@odata.type")] - public string Type { get; set; } = "#microsoft.graph.aadUserConversationMember"; - - [JsonPropertyName("user@odata.bind")] - public string UserIdentifier { get; set; } - - [JsonPropertyName("roles")] - public List Roles { get; set; } = new List(); - } - - } diff --git a/Commands/Model/Teams/TeamChannelMember.cs b/Commands/Model/Teams/TeamChannelMember.cs new file mode 100644 index 000000000..096a4b085 --- /dev/null +++ b/Commands/Model/Teams/TeamChannelMember.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace PnP.PowerShell.Commands.Model.Teams +{ + public class TeamChannelMember + { + [JsonPropertyName("@odata.type")] + public string Type { get; set; } = "#microsoft.graph.aadUserConversationMember"; + + [JsonPropertyName("user@odata.bind")] + public string UserIdentifier { get; set; } + + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("displayName")] + public string DisplayName { get; set; } + + [JsonPropertyName("roles")] + public List Roles { get; set; } = new List(); + + [JsonPropertyName("userId")] + public string UserId { get; set; } + + [JsonPropertyName("email")] + public string email { get; set; } + } + + +} diff --git a/Commands/PnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj index aa2430f4b..6549b9483 100644 --- a/Commands/PnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -747,6 +747,7 @@ + diff --git a/Commands/Teams/GetTeamsUser.cs b/Commands/Teams/GetTeamsUser.cs index fdc2b9640..6f70c6f5d 100644 --- a/Commands/Teams/GetTeamsUser.cs +++ b/Commands/Teams/GetTeamsUser.cs @@ -32,9 +32,12 @@ namespace PnP.PowerShell.Commands.Graph [CmdletMicrosoftGraphApiPermission(MicrosoftGraphApiPermission.Group_ReadWrite_All)] public class GetTeamsUser : PnPGraphCmdlet { - [Parameter(Mandatory = true, HelpMessage = "Specify the group id, mailNickname or display name of the team to use.")] + [Parameter(Mandatory = true, HelpMessage = "Specify the group id, mailNickname or display name of the team to use")] public TeamsTeamPipeBind Team; + [Parameter(Mandatory = false, HelpMessage = "Optional specify the channel id, or display name of the channel to list the users for")] + public TeamsChannelPipeBind Channel; + [Parameter(Mandatory = false, HelpMessage = "Specify to filter on the role of the user")] [ValidateSet(new[] { "Owner", "Member", "Guest" })] public string Role; @@ -45,7 +48,18 @@ protected override void ExecuteCmdlet() { try { - WriteObject(TeamsUtility.GetUsers(HttpClient, AccessToken, groupId, Role), true); + if (ParameterSpecified(nameof(Channel))) + { + var channelId = Channel.GetId(HttpClient, AccessToken, groupId); + if (!string.IsNullOrEmpty(channelId)) + { + WriteObject(TeamsUtility.GetUsersAsync(HttpClient, AccessToken, groupId, channelId, Role).GetAwaiter().GetResult(), true); + } + } + else + { + WriteObject(TeamsUtility.GetUsers(HttpClient, AccessToken, groupId, Role), true); + } } catch (GraphException ex) { diff --git a/Commands/Utilities/TeamsUtility.cs b/Commands/Utilities/TeamsUtility.cs index 704d458e9..d55cade69 100644 --- a/Commands/Utilities/TeamsUtility.cs +++ b/Commands/Utilities/TeamsUtility.cs @@ -8,6 +8,7 @@ using System.Management.Automation; using System.Net.Http; using System.Text.Json; +using System.Threading.Tasks; #if !PNPPSCORE using System.Web; #endif @@ -375,6 +376,34 @@ public static List GetUsers(HttpClient httpClient, string accessToken, str return finalList; } + public static async Task> GetUsersAsync(HttpClient httpClient, string accessToken, string groupId, string channelId, string role) + { + List users = new List(); + var selectedRole = role != null ? role.ToLower() : null; + + var collection = await GraphHelper.GetAsync>(httpClient, $"beta/teams/{groupId}/channels/{channelId}/members", accessToken); + if (collection != null && collection.Items.Any()) + { + users.AddRange(collection.Items.Select(m => new User() { DisplayName = m.DisplayName, Id = m.UserId, UserPrincipalName = m.email, UserType = m.Roles[0].ToLower() })); + } + while (collection.NextLink != null) + { + collection = await GraphHelper.GetAsync>(httpClient, collection.NextLink, accessToken); + if (collection != null && collection.Items.Any()) + { + users.AddRange(collection.Items.Select(m => new User() { DisplayName = m.DisplayName, Id = m.UserId, UserPrincipalName = m.email, UserType = m.Roles[0].ToLower() })); + } + } + if (selectedRole != null) + { + return users.Where(u => u.UserType == selectedRole); + } + else + { + return users; + } + } + public static void DeleteUser(HttpClient httpClient, string accessToken, string groupId, string upn, string role) { var user = GraphHelper.GetAsync(httpClient, $"v1.0/users/{upn}?$select=Id", accessToken).GetAwaiter().GetResult(); From 4c9865ab12294e7d0ad0fe769367642457c25049 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Thu, 16 Jul 2020 15:08:35 +0200 Subject: [PATCH 16/35] Fixed auth issue with mixed resource scopes --- Commands/Model/GraphToken.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Commands/Model/GraphToken.cs b/Commands/Model/GraphToken.cs index 4809ed6cf..af3b02333 100644 --- a/Commands/Model/GraphToken.cs +++ b/Commands/Model/GraphToken.cs @@ -1,4 +1,5 @@ using Microsoft.Identity.Client; +using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Utilities; using System; @@ -136,6 +137,11 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// instance with the token public static GenericToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) { + var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(scopes).ToArray(); + // Take the remaining scopes and try requesting them from the Microsoft Graph API + scopes = scopes.Except(officeManagementApiScopes).ToArray(); + + if (string.IsNullOrEmpty(clientId)) { throw new ArgumentNullException(nameof(clientId)); @@ -173,6 +179,10 @@ public static GenericToken AcquireApplicationTokenInteractive(string clientId, s public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, Action callBackAction) { + var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(scopes).ToArray(); + // Take the remaining scopes and try requesting them from the Microsoft Graph API + scopes = scopes.Except(officeManagementApiScopes).ToArray(); + if (string.IsNullOrEmpty(clientId)) { throw new ArgumentNullException(nameof(clientId)); @@ -225,6 +235,10 @@ public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, str /// instance with the token public static GenericToken AcquireDelegatedTokenWithCredentials(string clientId, string[] scopes, string username, SecureString securePassword) { + var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(scopes).ToArray(); + // Take the remaining scopes and try requesting them from the Microsoft Graph API + scopes = scopes.Except(officeManagementApiScopes).ToArray(); + if (string.IsNullOrEmpty(clientId)) { throw new ArgumentNullException(nameof(clientId)); From 0fd42045e63efda12b0dadb319cb4199797c4c49 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Thu, 16 Jul 2020 15:33:45 +0200 Subject: [PATCH 17/35] cleanup --- Commands/Base/PipeBinds/TeamsChannelPipeBind.cs | 4 +--- Commands/Base/PnPConnectionHelper.cs | 7 ++----- Commands/Model/Teams/TeamChannel.cs | 8 +------- Commands/PnP.PowerShell.Core.csproj | 7 +++---- Commands/Teams/AddTeamsTab.cs | 2 -- Commands/Teams/SetTeamsTab.cs | 3 --- Commands/Teams/SetTeamsTeamPicture.cs | 2 -- Commands/Utilities/REST/GraphHelper.cs | 6 +----- 8 files changed, 8 insertions(+), 31 deletions(-) diff --git a/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs b/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs index 6ef224dda..8722544d7 100644 --- a/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs @@ -1,10 +1,8 @@ -using Microsoft.Graph; -using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; using System; using System.Linq; using System.Net.Http; -using System.Threading; namespace PnP.PowerShell.Commands.Base.PipeBinds { diff --git a/Commands/Base/PnPConnectionHelper.cs b/Commands/Base/PnPConnectionHelper.cs index 672ef0da2..e87f712a4 100644 --- a/Commands/Base/PnPConnectionHelper.cs +++ b/Commands/Base/PnPConnectionHelper.cs @@ -9,7 +9,6 @@ using System.Management.Automation.Host; using System.Net; using OfficeDevPnP.Core; -using OfficeDevPnP.Core.Utilities; using System.Collections.Generic; using System.Reflection; using System.Diagnostics; @@ -18,14 +17,12 @@ using PnP.PowerShell.Commands.Model; using System.Security.Cryptography.X509Certificates; using System.Security; -using System.IO; using System.Security.Cryptography; using Microsoft.Identity.Client; -using System.Threading.Tasks; -using System.Xml.Linq; -using Microsoft.Graph; using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Text.Json; +using OfficeDevPnP.Core.Utilities; +using System.IO; namespace PnP.PowerShell.Commands.Base { diff --git a/Commands/Model/Teams/TeamChannel.cs b/Commands/Model/Teams/TeamChannel.cs index b48a92f7f..0a3ac4b8e 100644 --- a/Commands/Model/Teams/TeamChannel.cs +++ b/Commands/Model/Teams/TeamChannel.cs @@ -1,11 +1,5 @@ -using Microsoft.Graph; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model.Teams { diff --git a/Commands/PnP.PowerShell.Core.csproj b/Commands/PnP.PowerShell.Core.csproj index f62a9d29a..3777c1273 100644 --- a/Commands/PnP.PowerShell.Core.csproj +++ b/Commands/PnP.PowerShell.Core.csproj @@ -36,15 +36,14 @@ - - + - - + + diff --git a/Commands/Teams/AddTeamsTab.cs b/Commands/Teams/AddTeamsTab.cs index a9baa329a..ecc463a53 100644 --- a/Commands/Teams/AddTeamsTab.cs +++ b/Commands/Teams/AddTeamsTab.cs @@ -1,6 +1,4 @@ #if !ONPREMISES -using Microsoft.BusinessData.MetadataModel; -using Microsoft.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; diff --git a/Commands/Teams/SetTeamsTab.cs b/Commands/Teams/SetTeamsTab.cs index 8fc4b9d5c..8a1463d69 100644 --- a/Commands/Teams/SetTeamsTab.cs +++ b/Commands/Teams/SetTeamsTab.cs @@ -1,11 +1,8 @@ #if !ONPREMISES -using Microsoft.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; -using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; -using System.IO; using System.Management.Automation; namespace PnP.PowerShell.Commands.Graph diff --git a/Commands/Teams/SetTeamsTeamPicture.cs b/Commands/Teams/SetTeamsTeamPicture.cs index c1b03a0f4..79a639adb 100644 --- a/Commands/Teams/SetTeamsTeamPicture.cs +++ b/Commands/Teams/SetTeamsTeamPicture.cs @@ -1,9 +1,7 @@ #if !ONPREMISES -using Microsoft.Graph; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base; using PnP.PowerShell.Commands.Base.PipeBinds; -using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; using System.IO; using System.Management.Automation; diff --git a/Commands/Utilities/REST/GraphHelper.cs b/Commands/Utilities/REST/GraphHelper.cs index 7917353bb..8a8960253 100644 --- a/Commands/Utilities/REST/GraphHelper.cs +++ b/Commands/Utilities/REST/GraphHelper.cs @@ -1,12 +1,8 @@ -using Microsoft.Graph; -using Microsoft.Identity.Client; -using PnP.PowerShell.Commands.Model.Teams; +using PnP.PowerShell.Commands.Model.Teams; using System; using System.Collections.Generic; -using System.Linq; using System.Net; using System.Net.Http; -using System.Text; using System.Text.Json; using System.Threading; using System.Threading.Tasks; From af09bafc7f23cc91719ee644d997ba374739349f Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Fri, 17 Jul 2020 10:33:33 +0200 Subject: [PATCH 18/35] Moved TeamsUtility to async --- Commands/Base/AsyncCmdlet.cs | 476 ++++++++++++++++++ .../Base/PipeBinds/TeamsChannelPipeBind.cs | 4 +- Commands/Base/PipeBinds/TeamsTabPipeBind.cs | 4 +- Commands/Model/GraphToken.cs | 64 +-- Commands/Teams/AddTeamsChannel.cs | 2 +- Commands/Teams/AddTeamsTab.cs | 2 +- Commands/Teams/AddTeamsUser.cs | 2 +- Commands/Teams/GetTeamsApp.cs | 2 +- Commands/Teams/GetTeamsChannel.cs | 2 +- Commands/Teams/GetTeamsChannelMessage.cs | 2 +- Commands/Teams/GetTeamsTab.cs | 2 +- Commands/Teams/GetTeamsTeam.cs | 5 +- Commands/Teams/GetTeamsUser.cs | 2 +- Commands/Teams/NewTeamsApp.cs | 2 +- Commands/Teams/NewTeamsTeam.cs | 2 +- Commands/Teams/RemoveTeamsApp.cs | 2 +- Commands/Teams/RemoveTeamsChannel.cs | 2 +- Commands/Teams/RemoveTeamsTab.cs | 2 +- Commands/Teams/RemoveTeamsTeam.cs | 2 +- Commands/Teams/RemoveTeamsUser.cs | 2 +- Commands/Teams/SetTeamsChannel .cs | 3 +- Commands/Teams/SetTeamsTab.cs | 2 +- Commands/Teams/SetTeamsTeam.cs | 9 +- Commands/Teams/SetTeamsTeamArchivedState.cs | 3 +- Commands/Teams/SetTeamsTeamPicture.cs | 3 +- Commands/Teams/SubmitTeamsChannelMessage.cs | 3 +- Commands/Teams/UpdateTeamsApp.cs | 3 +- Commands/Utilities/REST/GraphHelper.cs | 24 - Commands/Utilities/TeamsUtility.cs | 175 ++++--- 29 files changed, 634 insertions(+), 174 deletions(-) create mode 100644 Commands/Base/AsyncCmdlet.cs diff --git a/Commands/Base/AsyncCmdlet.cs b/Commands/Base/AsyncCmdlet.cs new file mode 100644 index 000000000..8a2e06c88 --- /dev/null +++ b/Commands/Base/AsyncCmdlet.cs @@ -0,0 +1,476 @@ +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Management.Automation; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +namespace PnP.PowerShell.Commands.Base +{ + public abstract class AsyncCmdlet : PSCmdlet + { + protected int BoundedCapacity { get; set; } + + protected AsyncCmdlet(int boundedCapacity = 50) + { + this.BoundedCapacity = Math.Max(1, boundedCapacity); + } + + #region sealed overrides + protected sealed override void BeginProcessing() + { + AsyncCmdletSynchronizationContext.Async(BeginProcessingAsync, BoundedCapacity); + } + + protected sealed override void ProcessRecord() + { + AsyncCmdletSynchronizationContext.Async(ProcessRecordAsync, BoundedCapacity); + } + + protected sealed override void EndProcessing() + { + AsyncCmdletSynchronizationContext.Async(EndProcessingAsync, BoundedCapacity); + } + + protected sealed override void StopProcessing() + { + AsyncCmdletSynchronizationContext.Async(StopProcessingAsync, BoundedCapacity); + } + + #endregion sealed overrides + + #region intercepted methods + public new void WriteDebug(string text) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteDebug, text)); + } + + public new void WriteError(ErrorRecord errorRecord) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteError, errorRecord)); + } + + public new void WriteObject(object sendToPipeline) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteObject, sendToPipeline)); + } + + public new void WriteObject(object sendToPipeline, bool enumerateCollection) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteObject, sendToPipeline, enumerateCollection)); + } + + public new void WriteProgress(ProgressRecord progressRecord) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteProgress, progressRecord)); + } + + public new void WriteVerbose(string text) + { + var workItem = new MarshalItemAction(base.WriteVerbose, text); + AsyncCmdletSynchronizationContext.PostItem(workItem); + } + + public new void WriteWarning(string text) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteWarning, text)); + } + + public new void WriteCommandDetail(string text) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteCommandDetail, text)); + } + + public new bool ShouldProcess(string target) + { + var workItem = new MarshalItemFunc(base.ShouldProcess, target); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(); + } + + public new bool ShouldProcess(string target, string action) + { + var workItem = new MarshalItemFunc(base.ShouldProcess, target, action); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(); + } + + public new bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) + { + var workItem = new MarshalItemFunc(base.ShouldProcess, verboseDescription, + verboseWarning, caption); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(); + } + + public new bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, + out ShouldProcessReason shouldProcessReason) + { + var workItem = new MarshalItemFuncOut( + base.ShouldProcess, verboseDescription, verboseWarning, caption); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(out shouldProcessReason); + } + + public new bool ShouldContinue(string query, string caption) + { + var workItem = new MarshalItemFunc(base.ShouldContinue, query, caption); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(); + } + + public new bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) + { + var workItem = new MarshalItemFuncRef(base.ShouldContinue, query, caption, + yesToAll, noToAll); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(ref yesToAll, ref noToAll); + } + + public new bool TransactionAvailable() + { + var workItem = new MarshalItemFunc(base.TransactionAvailable); + AsyncCmdletSynchronizationContext.PostItem(workItem); + return workItem.WaitForResult(); + } + + public new void ThrowTerminatingError(ErrorRecord errorRecord) + { + AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.ThrowTerminatingError, errorRecord)); + } + + #endregion + + #region async processing methods + + protected virtual Task BeginProcessingAsync() + { + return Task.FromResult(0); + } + + + protected virtual Task EndProcessingAsync() + { + return Task.FromResult(0); + } + + + protected virtual Task ProcessRecordAsync() + { + return Task.FromResult(0); + } + + + protected virtual Task StopProcessingAsync() + { + return Task.FromResult(0); + } + + #endregion async processing methods + + private class AsyncCmdletSynchronizationContext : SynchronizationContext, IDisposable + { + private BlockingCollection workItems; + private static AsyncCmdletSynchronizationContext currentAsyncCmdletContext; + + private AsyncCmdletSynchronizationContext(int boundedCapacity) + { + this.workItems = new BlockingCollection(boundedCapacity); + } + + public static void Async(Func handler, int boundedCapacity) + { + var previousContext = SynchronizationContext.Current; + + try + { + using (var synchronizationContext = new AsyncCmdletSynchronizationContext(boundedCapacity)) + { + SetSynchronizationContext(synchronizationContext); + currentAsyncCmdletContext = synchronizationContext; + + var task = handler(); + if (task == null) + { + return; + } + + var waitable = task.ContinueWith(t => synchronizationContext.Complete(), scheduler: TaskScheduler.Default); + + synchronizationContext.ProcessQueue(); + + waitable.GetAwaiter().GetResult(); + } + } + finally + { + SetSynchronizationContext(previousContext); + currentAsyncCmdletContext = previousContext as AsyncCmdletSynchronizationContext; + } + } + + internal static void PostItem(MarshalItem item) + { + currentAsyncCmdletContext.Post(item); + } + + public void Dispose() + { + if (this.workItems != null) + { + this.workItems.Dispose(); + this.workItems = null; + } + } + + private void EnsureNotDisposed() + { + if (this.workItems == null) + { + throw new ObjectDisposedException(nameof(AsyncCmdletSynchronizationContext)); + } + } + + private void Complete() + { + EnsureNotDisposed(); + + this.workItems.CompleteAdding(); + } + + private void ProcessQueue() + { + MarshalItem workItem; + while (this.workItems.TryTake(out workItem, Timeout.Infinite)) + { + workItem.Invoke(); + } + } + + public override void Post(SendOrPostCallback callback, object state) + { + if (callback == null) + { + throw new ArgumentNullException(nameof(callback)); + } + + Post(new MarshalItemAction(s => callback(s), state)); + } + + private void Post(MarshalItem item) + { + EnsureNotDisposed(); + + this.workItems.Add(item); + } + } + + #region items + internal abstract class MarshalItem + { + internal abstract void Invoke(); + } + + abstract class MarshalItemFuncBase : MarshalItem + { + private TRet retVal; + private readonly Task retValTask; + + protected MarshalItemFuncBase() + { + this.retValTask = new Task(() => this.retVal); + } + + internal sealed override void Invoke() + { + this.retVal = this.InvokeFunc(); + this.retValTask.Start(); + } + + internal TRet WaitForResult() + { + this.retValTask.Wait(); + return this.retValTask.Result; + } + + internal abstract TRet InvokeFunc(); + } + class MarshalItemAction : MarshalItem + { + private readonly Action action; + private readonly T arg1; + + internal MarshalItemAction(Action action, T arg1) + { + this.action = action; + this.arg1 = arg1; + } + + internal override void Invoke() + { + this.action(this.arg1); + } + } + class MarshalItemAction : MarshalItem + { + private readonly Action action; + private readonly T1 arg1; + private readonly T2 arg2; + + internal MarshalItemAction(Action action, T1 arg1, T2 arg2) + { + this.action = action; + this.arg1 = arg1; + this.arg2 = arg2; + } + + internal override void Invoke() + { + this.action(this.arg1, this.arg2); + } + } + class MarshalItemFunc : MarshalItemFuncBase + { + private readonly Func func; + + internal MarshalItemFunc(Func func) + { + this.func = func; + } + + internal override TRet InvokeFunc() + { + return this.func(); + } + } + class MarshalItemFunc : MarshalItemFuncBase + { + private readonly Func func; + private readonly T1 arg1; + + internal MarshalItemFunc(Func func, T1 arg1) + { + this.func = func; + this.arg1 = arg1; + } + + internal override TRet InvokeFunc() + { + return this.func(this.arg1); + } + } + class MarshalItemFunc : MarshalItemFuncBase + { + private readonly Func func; + private readonly T1 arg1; + private readonly T2 arg2; + + internal MarshalItemFunc(Func func, T1 arg1, T2 arg2) + { + this.func = func; + this.arg1 = arg1; + this.arg2 = arg2; + } + + internal override TRet InvokeFunc() + { + return this.func(this.arg1, this.arg2); + } + } + class MarshalItemFunc : MarshalItemFuncBase + { + private readonly Func func; + private readonly T1 arg1; + private readonly T2 arg2; + private readonly T3 arg3; + + internal MarshalItemFunc(Func func, T1 arg1, T2 arg2, T3 arg3) + { + this.func = func; + this.arg1 = arg1; + this.arg2 = arg2; + this.arg3 = arg3; + } + + internal override TRet InvokeFunc() + { + return this.func(this.arg1, this.arg2, this.arg3); + } + } + class MarshalItemFuncOut : MarshalItem + { + private readonly FuncOut func; + private readonly T1 arg1; + private readonly T2 arg2; + private readonly T3 arg3; + + internal delegate TRet FuncOut(T1 t1, T2 t2, T3 t3, out TOut tout); + + private TRet retVal; + private TOut outVal; + private readonly Task retValTask; + + internal MarshalItemFuncOut(FuncOut func, T1 arg1, T2 arg2, T3 arg3) + { + this.func = func; + this.arg1 = arg1; + this.arg2 = arg2; + this.arg3 = arg3; + this.retValTask = new Task(() => this.retVal); + } + + internal override void Invoke() + { + this.retVal = this.func(this.arg1, this.arg2, this.arg3, out this.outVal); + this.retValTask.Start(); + } + + internal TRet WaitForResult(out TOut val) + { + this.retValTask.Wait(); + val = this.outVal; + return this.retValTask.Result; + } + } + class MarshalItemFuncRef : MarshalItem + { + internal delegate TRet FuncRef(T1 t1, T2 t2, ref TRef1 tref1, ref TRef2 tref2); + + private readonly Task retValTask; + private readonly FuncRef func; + private readonly T1 arg1; + private readonly T2 arg2; + private TRef1 arg3; + private TRef2 arg4; + private TRet retVal; + + internal MarshalItemFuncRef(FuncRef func, T1 arg1, T2 arg2, TRef1 arg3, TRef2 arg4) + { + this.func = func; + this.arg1 = arg1; + this.arg2 = arg2; + this.arg3 = arg3; + this.arg4 = arg4; + this.retValTask = new Task(() => this.retVal); + } + + internal override void Invoke() + { + this.retVal = this.func(this.arg1, this.arg2, ref this.arg3, ref this.arg4); + this.retValTask.Start(); + } + + // ReSharper disable RedundantAssignment + internal TRet WaitForResult(ref TRef1 ref1, ref TRef2 ref2) + { + this.retValTask.Wait(); + ref1 = this.arg3; + ref2 = this.arg4; + return this.retValTask.Result; + } + // ReSharper restore RedundantAssignment + } + #endregion items + } +} diff --git a/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs b/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs index 8722544d7..6a55caa82 100644 --- a/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsChannelPipeBind.cs @@ -44,14 +44,14 @@ public string GetId(HttpClient httpClient, string accessToken, string groupId) } else { - var channels = TeamsUtility.GetChannels(accessToken, httpClient, groupId); + var channels = TeamsUtility.GetChannelsAsync(accessToken, httpClient, groupId).GetAwaiter().GetResult(); return channels.FirstOrDefault(c => c.DisplayName.Equals(_displayName, StringComparison.OrdinalIgnoreCase)).Id; } } public TeamChannel GetChannel(HttpClient httpClient, string accessToken, string groupId) { - var channels = TeamsUtility.GetChannels(accessToken, httpClient, groupId); + var channels = TeamsUtility.GetChannelsAsync(accessToken, httpClient, groupId).GetAwaiter().GetResult(); if(channels != null && channels.Any()) { if(!string.IsNullOrEmpty(_id)) diff --git a/Commands/Base/PipeBinds/TeamsTabPipeBind.cs b/Commands/Base/PipeBinds/TeamsTabPipeBind.cs index dce8cece4..ecf4d29d5 100644 --- a/Commands/Base/PipeBinds/TeamsTabPipeBind.cs +++ b/Commands/Base/PipeBinds/TeamsTabPipeBind.cs @@ -52,10 +52,10 @@ public TeamTab GetTab(HttpClient httpClient, string accessToken, string groupId, } else { - var tab = TeamsUtility.GetTab(accessToken, httpClient, groupId, channelId, _id); + var tab = TeamsUtility.GetTabAsync(accessToken, httpClient, groupId, channelId, _id).GetAwaiter().GetResult(); if (string.IsNullOrEmpty(tab.Id)) { - var tabs = TeamsUtility.GetTabs(accessToken, httpClient, groupId, channelId); + var tabs = TeamsUtility.GetTabsAsync(accessToken, httpClient, groupId, channelId).GetAwaiter().GetResult(); if (tabs != null) { // find the tab by id diff --git a/Commands/Model/GraphToken.cs b/Commands/Model/GraphToken.cs index af3b02333..8ffb74dd3 100644 --- a/Commands/Model/GraphToken.cs +++ b/Commands/Model/GraphToken.cs @@ -10,6 +10,7 @@ using System.Runtime.CompilerServices; using System.Security; using System.Security.Cryptography.X509Certificates; +using System.Threading; using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model @@ -137,44 +138,49 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// instance with the token public static GenericToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) { - var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(scopes).ToArray(); - // Take the remaining scopes and try requesting them from the Microsoft Graph API - scopes = scopes.Except(officeManagementApiScopes).ToArray(); + using (var cancellationTokenSource = new CancellationTokenSource(5000)) + { + var cancellationToken = cancellationTokenSource.Token; + var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(scopes).ToArray(); + // Take the remaining scopes and try requesting them from the Microsoft Graph API + scopes = scopes.Except(officeManagementApiScopes).ToArray(); - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (scopes == null || scopes.Length == 0) - { - throw new ArgumentNullException(nameof(scopes)); - } + if (string.IsNullOrEmpty(clientId)) + { + throw new ArgumentNullException(nameof(clientId)); + } + if (scopes == null || scopes.Length == 0) + { + throw new ArgumentNullException(nameof(scopes)); + } - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); - } - AuthenticationResult tokenResult = null; + if (publicClientApplication == null) + { + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); + } - //if (publicClientApplication == null) - //{ - // publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}organizations/").WithDefaultRedirectUri().Build(); + AuthenticationResult tokenResult = null; - //} - var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + //if (publicClientApplication == null) + //{ + // publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}organizations/").WithDefaultRedirectUri().Build(); - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = publicClientApplication.AcquireTokenInteractive(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).ExecuteAsync().GetAwaiter().GetResult(); + //} + var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + + try + { + tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); + } + catch + { + tokenResult = publicClientApplication.AcquireTokenInteractive(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).ExecuteAsync(cancellationToken).GetAwaiter().GetResult(); + } + return new GraphToken(tokenResult.AccessToken); } - return new GraphToken(tokenResult.AccessToken); } public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, Action callBackAction) diff --git a/Commands/Teams/AddTeamsChannel.cs b/Commands/Teams/AddTeamsChannel.cs index 0328f6525..22a3592fb 100644 --- a/Commands/Teams/AddTeamsChannel.cs +++ b/Commands/Teams/AddTeamsChannel.cs @@ -55,7 +55,7 @@ protected override void ExecuteCmdlet() { try { - var channel = TeamsUtility.AddChannel(AccessToken, HttpClient, groupId, DisplayName, Description, Private, OwnerUPN); + var channel = TeamsUtility.AddChannelAsync(AccessToken, HttpClient, groupId, DisplayName, Description, Private, OwnerUPN).GetAwaiter().GetResult(); WriteObject(channel); } catch (GraphException ex) diff --git a/Commands/Teams/AddTeamsTab.cs b/Commands/Teams/AddTeamsTab.cs index ecc463a53..fb082b14f 100644 --- a/Commands/Teams/AddTeamsTab.cs +++ b/Commands/Teams/AddTeamsTab.cs @@ -111,7 +111,7 @@ protected override void ExecuteCmdlet() break; } } - TeamsUtility.AddTab(HttpClient, AccessToken, groupId, channelId, DisplayName, Type, teamsAppId, entityId, contentUrl, removeUrl, webSiteUrl); + TeamsUtility.AddTabAsync(HttpClient, AccessToken, groupId, channelId, DisplayName, Type, teamsAppId, entityId, contentUrl, removeUrl, webSiteUrl).GetAwaiter().GetResult(); } catch (GraphException ex) { diff --git a/Commands/Teams/AddTeamsUser.cs b/Commands/Teams/AddTeamsUser.cs index 6bd7e7966..60b24ee67 100644 --- a/Commands/Teams/AddTeamsUser.cs +++ b/Commands/Teams/AddTeamsUser.cs @@ -41,7 +41,7 @@ protected override void ExecuteCmdlet() { try { - TeamsUtility.AddUser(HttpClient, AccessToken, groupId, User, Role); + TeamsUtility.AddUserAsync(HttpClient, AccessToken, groupId, User, Role).GetAwaiter().GetResult(); WriteObject(channel); } catch (GraphException ex) diff --git a/Commands/Teams/GetTeamsApp.cs b/Commands/Teams/GetTeamsApp.cs index 407ac27b2..be57613fd 100644 --- a/Commands/Teams/GetTeamsApp.cs +++ b/Commands/Teams/GetTeamsApp.cs @@ -46,7 +46,7 @@ protected override void ExecuteCmdlet() } else { - WriteObject(TeamsUtility.GetApps(AccessToken, HttpClient), true); + WriteObject(TeamsUtility.GetAppsAsync(AccessToken, HttpClient).GetAwaiter().GetResult(), true); } } } diff --git a/Commands/Teams/GetTeamsChannel.cs b/Commands/Teams/GetTeamsChannel.cs index 91d45ea13..3e9df0fce 100644 --- a/Commands/Teams/GetTeamsChannel.cs +++ b/Commands/Teams/GetTeamsChannel.cs @@ -48,7 +48,7 @@ protected override void ExecuteCmdlet() } else { - WriteObject(TeamsUtility.GetChannels(AccessToken, HttpClient, groupId)); + WriteObject(TeamsUtility.GetChannelsAsync(AccessToken, HttpClient, groupId).GetAwaiter().GetResult()); } } else { diff --git a/Commands/Teams/GetTeamsChannelMessage.cs b/Commands/Teams/GetTeamsChannelMessage.cs index d88d5adfe..e43124dce 100644 --- a/Commands/Teams/GetTeamsChannelMessage.cs +++ b/Commands/Teams/GetTeamsChannelMessage.cs @@ -35,7 +35,7 @@ protected override void ExecuteCmdlet() var channel = Channel.GetChannel(HttpClient, AccessToken, groupId); if (channel != null) { - WriteObject(TeamsUtility.GetMessages(HttpClient, AccessToken, groupId, channel.Id, IncludeDeleted), true); + WriteObject(TeamsUtility.GetMessagesAsync(HttpClient, AccessToken, groupId, channel.Id, IncludeDeleted).GetAwaiter().GetResult(), true); } else { throw new PSArgumentException("Channel not found"); diff --git a/Commands/Teams/GetTeamsTab.cs b/Commands/Teams/GetTeamsTab.cs index 13dc065c3..d357d45d0 100644 --- a/Commands/Teams/GetTeamsTab.cs +++ b/Commands/Teams/GetTeamsTab.cs @@ -55,7 +55,7 @@ protected override void ExecuteCmdlet() } else { - WriteObject(TeamsUtility.GetTabs(AccessToken, HttpClient, groupId, channelId), true); + WriteObject(TeamsUtility.GetTabsAsync(AccessToken, HttpClient, groupId, channelId).GetAwaiter().GetResult(), true); } } else diff --git a/Commands/Teams/GetTeamsTeam.cs b/Commands/Teams/GetTeamsTeam.cs index 50fec140e..32c57bcad 100644 --- a/Commands/Teams/GetTeamsTeam.cs +++ b/Commands/Teams/GetTeamsTeam.cs @@ -4,6 +4,7 @@ using PnP.PowerShell.Commands.Base.PipeBinds; using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -39,7 +40,7 @@ protected override void ExecuteCmdlet() var groupId = Identity.GetGroupId(HttpClient, AccessToken); if (groupId != null) { - WriteObject(TeamsUtility.GetTeam(AccessToken, HttpClient, groupId)); + WriteObject(TeamsUtility.GetTeamAsync(AccessToken, HttpClient, groupId).GetAwaiter().GetResult()); } else { @@ -48,7 +49,7 @@ protected override void ExecuteCmdlet() } else { - WriteObject(TeamsUtility.GetTeams(AccessToken, HttpClient), true); + WriteObject(TeamsUtility.GetTeamsAsync(AccessToken, HttpClient).GetAwaiter().GetResult(), true); } } } diff --git a/Commands/Teams/GetTeamsUser.cs b/Commands/Teams/GetTeamsUser.cs index 6f70c6f5d..027438965 100644 --- a/Commands/Teams/GetTeamsUser.cs +++ b/Commands/Teams/GetTeamsUser.cs @@ -58,7 +58,7 @@ protected override void ExecuteCmdlet() } else { - WriteObject(TeamsUtility.GetUsers(HttpClient, AccessToken, groupId, Role), true); + WriteObject(TeamsUtility.GetUsersAsync(HttpClient, AccessToken, groupId, Role).GetAwaiter().GetResult(), true); } } catch (GraphException ex) diff --git a/Commands/Teams/NewTeamsApp.cs b/Commands/Teams/NewTeamsApp.cs index c059267b2..6a263803b 100644 --- a/Commands/Teams/NewTeamsApp.cs +++ b/Commands/Teams/NewTeamsApp.cs @@ -35,7 +35,7 @@ protected override void ExecuteCmdlet() try { var bytes = System.IO.File.ReadAllBytes(Path); - TeamsUtility.AddApp(HttpClient, AccessToken, bytes); + TeamsUtility.AddAppAsync(HttpClient, AccessToken, bytes).GetAwaiter().GetResult(); } catch (GraphException ex) { diff --git a/Commands/Teams/NewTeamsTeam.cs b/Commands/Teams/NewTeamsTeam.cs index 547e9e1fe..77c3b1092 100644 --- a/Commands/Teams/NewTeamsTeam.cs +++ b/Commands/Teams/NewTeamsTeam.cs @@ -133,7 +133,7 @@ protected override void ExecuteCmdlet() ShowInTeamsSearchAndSuggestions = ShowInTeamsSearchAndSuggestions, Visibility = (GroupVisibility)Enum.Parse(typeof(GroupVisibility), Visibility.ToString()), }; - WriteObject(TeamsUtility.NewTeam(AccessToken, HttpClient, GroupId, DisplayName, Description, Classification, MailNickName, Owner, (GroupVisibility)Enum.Parse(typeof(GroupVisibility), Visibility.ToString()), teamCI)); + WriteObject(TeamsUtility.NewTeamAsync(AccessToken, HttpClient, GroupId, DisplayName, Description, Classification, MailNickName, Owner, (GroupVisibility)Enum.Parse(typeof(GroupVisibility), Visibility.ToString()), teamCI).GetAwaiter().GetResult()); } } } diff --git a/Commands/Teams/RemoveTeamsApp.cs b/Commands/Teams/RemoveTeamsApp.cs index 8be2d9d87..54ddf27b6 100644 --- a/Commands/Teams/RemoveTeamsApp.cs +++ b/Commands/Teams/RemoveTeamsApp.cs @@ -43,7 +43,7 @@ protected override void ExecuteCmdlet() } if (Force || ShouldContinue($"Do you want to remove {app.DisplayName}?", Properties.Resources.Confirm)) { - var response = TeamsUtility.DeleteApp(HttpClient, AccessToken, app.Id); + var response = TeamsUtility.DeleteAppAsync(HttpClient, AccessToken, app.Id).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException ex)) diff --git a/Commands/Teams/RemoveTeamsChannel.cs b/Commands/Teams/RemoveTeamsChannel.cs index 76408dc35..3ec6dbe8d 100644 --- a/Commands/Teams/RemoveTeamsChannel.cs +++ b/Commands/Teams/RemoveTeamsChannel.cs @@ -40,7 +40,7 @@ protected override void ExecuteCmdlet() var channel = Identity.GetChannel(HttpClient, AccessToken, groupId); if (channel != null) { - var response = TeamsUtility.DeleteChannel(AccessToken, HttpClient, groupId, channel.Id); + var response = TeamsUtility.DeleteChannelAsync(AccessToken, HttpClient, groupId, channel.Id).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException ex)) diff --git a/Commands/Teams/RemoveTeamsTab.cs b/Commands/Teams/RemoveTeamsTab.cs index 2371d2761..75b5d8513 100644 --- a/Commands/Teams/RemoveTeamsTab.cs +++ b/Commands/Teams/RemoveTeamsTab.cs @@ -51,7 +51,7 @@ protected override void ExecuteCmdlet() { if (Force || ShouldContinue("Removing the tab will remove the settings of this tab too.", Properties.Resources.Confirm)) { - var response = TeamsUtility.DeleteTab(AccessToken, HttpClient, groupId, channelId, tab.Id); + var response = TeamsUtility.DeleteTabAsync(AccessToken, HttpClient, groupId, channelId, tab.Id).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException ex)) diff --git a/Commands/Teams/RemoveTeamsTeam.cs b/Commands/Teams/RemoveTeamsTeam.cs index 7bc8ed1a9..ae3de5d15 100644 --- a/Commands/Teams/RemoveTeamsTeam.cs +++ b/Commands/Teams/RemoveTeamsTeam.cs @@ -38,7 +38,7 @@ protected override void ExecuteCmdlet() { if (Force || ShouldContinue("Removing the team will remove all messages in all channels in the team.", Properties.Resources.Confirm)) { - var response = TeamsUtility.DeleteTeam(AccessToken, HttpClient, groupId); + var response = TeamsUtility.DeleteTeamAsync(AccessToken, HttpClient, groupId).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException ex)) diff --git a/Commands/Teams/RemoveTeamsUser.cs b/Commands/Teams/RemoveTeamsUser.cs index 11a699244..d372cbd30 100644 --- a/Commands/Teams/RemoveTeamsUser.cs +++ b/Commands/Teams/RemoveTeamsUser.cs @@ -47,7 +47,7 @@ protected override void ExecuteCmdlet() { if (Force || ShouldContinue($"Remove user with UPN {User}?", Properties.Resources.Confirm)) { - TeamsUtility.DeleteUser(HttpClient, AccessToken, groupId, User, Role); + TeamsUtility.DeleteUserAsync(HttpClient, AccessToken, groupId, User, Role).GetAwaiter().GetResult(); } } catch (GraphException ex) diff --git a/Commands/Teams/SetTeamsChannel .cs b/Commands/Teams/SetTeamsChannel .cs index 137899993..9780ee100 100644 --- a/Commands/Teams/SetTeamsChannel .cs +++ b/Commands/Teams/SetTeamsChannel .cs @@ -5,6 +5,7 @@ using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -56,7 +57,7 @@ protected override void ExecuteCmdlet() teamChannel.MembershipType = null; try { - var updated = TeamsUtility.UpdateChannel(HttpClient, AccessToken, groupId, teamChannel.Id, teamChannel); + var updated = TeamsUtility.UpdateChannelAsync(HttpClient, AccessToken, groupId, teamChannel.Id, teamChannel).GetAwaiter().GetResult(); WriteObject(updated); } catch (GraphException ex) diff --git a/Commands/Teams/SetTeamsTab.cs b/Commands/Teams/SetTeamsTab.cs index 8a1463d69..c16826c05 100644 --- a/Commands/Teams/SetTeamsTab.cs +++ b/Commands/Teams/SetTeamsTab.cs @@ -45,7 +45,7 @@ protected override void ExecuteCmdlet() { tab.DisplayName = DisplayName; } - TeamsUtility.UpdateTab(HttpClient, AccessToken, groupId, channelId, tab); + TeamsUtility.UpdateTabAsync(HttpClient, AccessToken, groupId, channelId, tab).GetAwaiter().GetResult(); } else { diff --git a/Commands/Teams/SetTeamsTeam.cs b/Commands/Teams/SetTeamsTeam.cs index 2ca052703..d6edabbac 100644 --- a/Commands/Teams/SetTeamsTeam.cs +++ b/Commands/Teams/SetTeamsTeam.cs @@ -7,6 +7,7 @@ using PnP.PowerShell.Commands.Utilities; using System; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -93,7 +94,7 @@ protected override void ExecuteCmdlet() { try { - var team = TeamsUtility.GetTeam(AccessToken, HttpClient, groupId); + var team = TeamsUtility.GetTeamAsync(AccessToken, HttpClient, groupId).GetAwaiter().GetResult(); var updateGroup = false; var group = new Group(); if (team != null) @@ -125,7 +126,7 @@ protected override void ExecuteCmdlet() if(updateGroup) { - TeamsUtility.UpdateGroup(HttpClient, AccessToken, groupId, group); + TeamsUtility.UpdateGroupAsync(HttpClient, AccessToken, groupId, group).GetAwaiter().GetResult(); } var teamCI = new TeamCreationInformation(); @@ -145,8 +146,8 @@ protected override void ExecuteCmdlet() teamCI.AllowUserDeleteMessages = ParameterSpecified(nameof(AllowUserDeleteMessages)) ? AllowUserDeleteMessages : null; teamCI.AllowUserEditMessages = ParameterSpecified(nameof(AllowUserEditMessages)) ? AllowUserEditMessages : null; teamCI.Classification = ParameterSpecified(nameof(Classification)) ? Classification : null; - - var updated = TeamsUtility.UpdateTeam(HttpClient, AccessToken, groupId, teamCI.ToTeam()); + + var updated = TeamsUtility.UpdateTeamAsync(HttpClient, AccessToken, groupId, teamCI.ToTeam()).GetAwaiter().GetResult(); WriteObject(updated); } } diff --git a/Commands/Teams/SetTeamsTeamArchivedState.cs b/Commands/Teams/SetTeamsTeamArchivedState.cs index c1ce3c884..90db0e8f0 100644 --- a/Commands/Teams/SetTeamsTeamArchivedState.cs +++ b/Commands/Teams/SetTeamsTeamArchivedState.cs @@ -9,6 +9,7 @@ using System; using System.Linq; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -56,7 +57,7 @@ protected override void ExecuteCmdlet() { throw new PSInvalidOperationException($"Team {team.DisplayName} {(Archived ? "has already been" : "is not")} archived"); } - var response = TeamsUtility.SetTeamArchivedState(HttpClient, AccessToken, groupId, Archived, SetSiteReadOnlyForMembers); + var response = TeamsUtility.SetTeamArchivedStateAsync(HttpClient, AccessToken, groupId, Archived, SetSiteReadOnlyForMembers).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException ex)) diff --git a/Commands/Teams/SetTeamsTeamPicture.cs b/Commands/Teams/SetTeamsTeamPicture.cs index 79a639adb..5f9d5e8a6 100644 --- a/Commands/Teams/SetTeamsTeamPicture.cs +++ b/Commands/Teams/SetTeamsTeamPicture.cs @@ -5,6 +5,7 @@ using PnP.PowerShell.Commands.Utilities; using System.IO; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -59,7 +60,7 @@ protected override void ExecuteCmdlet() throw new PSArgumentException("File is not of a supported content type (jpg/png)"); } var byteArray = System.IO.File.ReadAllBytes(Path); - TeamsUtility.SetTeamPicture(HttpClient, AccessToken, groupId, byteArray, contentType); + TeamsUtility.SetTeamPictureAsync(HttpClient, AccessToken, groupId, byteArray, contentType).GetAwaiter().GetResult(); } else { diff --git a/Commands/Teams/SubmitTeamsChannelMessage.cs b/Commands/Teams/SubmitTeamsChannelMessage.cs index 0fc40f0a7..7b0906488 100644 --- a/Commands/Teams/SubmitTeamsChannelMessage.cs +++ b/Commands/Teams/SubmitTeamsChannelMessage.cs @@ -5,6 +5,7 @@ using PnP.PowerShell.Commands.Model.Teams; using PnP.PowerShell.Commands.Utilities; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -51,7 +52,7 @@ protected override void ExecuteCmdlet() channelMessage.Body.Content = Message; channelMessage.Body.ContentType = ContentType; - TeamsUtility.PostMessage(HttpClient, AccessToken, groupId, channel.Id, channelMessage); + TeamsUtility.PostMessageAsync(HttpClient, AccessToken, groupId, channel.Id, channelMessage).GetAwaiter().GetResult(); } else { throw new PSArgumentException("Channel not found"); diff --git a/Commands/Teams/UpdateTeamsApp.cs b/Commands/Teams/UpdateTeamsApp.cs index e7ab8146a..8760e8198 100644 --- a/Commands/Teams/UpdateTeamsApp.cs +++ b/Commands/Teams/UpdateTeamsApp.cs @@ -6,6 +6,7 @@ using PnP.PowerShell.Commands.Utilities; using PnP.PowerShell.Commands.Utilities.REST; using System.Management.Automation; +using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Graph { @@ -40,7 +41,7 @@ protected override void ExecuteCmdlet() { var bytes = System.IO.File.ReadAllBytes(Path); - var response = TeamsUtility.UpdateApp(HttpClient, AccessToken, bytes, app.Id); + var response = TeamsUtility.UpdateAppAsync(HttpClient, AccessToken, bytes, app.Id).GetAwaiter().GetResult(); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException ex)) diff --git a/Commands/Utilities/REST/GraphHelper.cs b/Commands/Utilities/REST/GraphHelper.cs index 8a8960253..0aacab488 100644 --- a/Commands/Utilities/REST/GraphHelper.cs +++ b/Commands/Utilities/REST/GraphHelper.cs @@ -118,20 +118,6 @@ public static async Task PatchAsync(HttpClient httpClient, string accessTo public static async Task PostAsync(HttpClient httpClient, string url, HttpContent content, string accessToken) { return await PostInternalAsync(httpClient, url, accessToken, content); - //var message = GetMessage(url, HttpMethod.Post, accessToken, content); - //var stringContent = await SendMessageAsync(httpClient, message); - //if (stringContent != null) - //{ - // try - // { - // return JsonSerializer.Deserialize(stringContent); - // } - // catch - // { - // return default; - // } - //} - //return default; } public static async Task PutAsync(HttpClient httpClient, string url, string accessToken, HttpContent content) @@ -158,16 +144,6 @@ public static async Task PostAsync(HttpClient httpClient, string url, T co requestContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); return await PostInternalAsync(httpClient, url, accessToken, requestContent); - //var message = GetMessage(url, HttpMethod.Post, accessToken, requestContent); - //var returnValue = await SendMessageAsync(httpClient, message); - //if (!string.IsNullOrEmpty(returnValue)) - //{ - // return JsonSerializer.Deserialize(returnValue); - //} - //else - //{ - // return default; - //} } public static async Task PostAsync(HttpClient httpClient, string url, string accessToken) diff --git a/Commands/Utilities/TeamsUtility.cs b/Commands/Utilities/TeamsUtility.cs index d55cade69..b0b5628b3 100644 --- a/Commands/Utilities/TeamsUtility.cs +++ b/Commands/Utilities/TeamsUtility.cs @@ -20,36 +20,36 @@ internal static class TeamsUtility private const int PageSize = 100; #region Team - public static List GetGroupsWithTeam(HttpClient httpClient, string accessToken) + public static async Task> GetGroupsWithTeamAsync(HttpClient httpClient, string accessToken) { List groups = new List(); string url = string.Empty; - var collection = GraphHelper.GetAsync>(httpClient, $"beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')&$select=Id,DisplayName,MailNickName,Description,Visibility&$top={PageSize}", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, $"beta/groups?$filter=resourceProvisioningOptions/Any(x:x eq 'Team')&$select=Id,DisplayName,MailNickName,Description,Visibility&$top={PageSize}", accessToken); if (collection != null) { groups.AddRange(collection.Items); while (!string.IsNullOrEmpty(collection.NextLink)) { - collection = GraphHelper.GetAsync>(httpClient, collection.NextLink, accessToken).GetAwaiter().GetResult(); + collection = await GraphHelper.GetAsync>(httpClient, collection.NextLink, accessToken); groups.AddRange(collection.Items); } } return groups; } - public static Group GetGroupWithTeam(HttpClient httpClient, string accessToken, string mailNickname) + public static async Task GetGroupWithTeamAsync(HttpClient httpClient, string accessToken, string mailNickname) { - return GraphHelper.GetAsync(httpClient, $"beta/groups?$filter=(resourceProvisioningOptions/Any(x:x eq 'Team') and mailNickname eq '{mailNickname}')&$select=Id,DisplayName,MailNickName,Description,Visibility", accessToken).GetAwaiter().GetResult(); + return await GraphHelper.GetAsync(httpClient, $"beta/groups?$filter=(resourceProvisioningOptions/Any(x:x eq 'Team') and mailNickname eq '{mailNickname}')&$select=Id,DisplayName,MailNickName,Description,Visibility", accessToken); } - public static List GetTeams(string accessToken, HttpClient httpClient) + public static async Task> GetTeamsAsync(string accessToken, HttpClient httpClient) { List teams = new List(); - var groups = GetGroupsWithTeam(httpClient, accessToken); + var groups = await GetGroupsWithTeamAsync(httpClient, accessToken); foreach (var group in groups) { - Team team = ParseTeamJson(accessToken, httpClient, group.Id); + Team team = await ParseTeamJsonAsync(accessToken, httpClient, group.Id); if (team != null) { @@ -62,12 +62,12 @@ public static List GetTeams(string accessToken, HttpClient httpClient) return teams; } - public static Team GetTeam(string accessToken, HttpClient httpClient, string groupId) + public static async Task GetTeamAsync(string accessToken, HttpClient httpClient, string groupId) { // get the group - var group = GraphHelper.GetAsync(httpClient, $"v1.0/groups/{groupId}?$select=Id,DisplayName,MailNickName,Description,Visibility", accessToken).GetAwaiter().GetResult(); + var group = await GraphHelper.GetAsync(httpClient, $"v1.0/groups/{groupId}?$select=Id,DisplayName,MailNickName,Description,Visibility", accessToken); - Team team = ParseTeamJson(accessToken, httpClient, group.Id); + Team team = await ParseTeamJsonAsync(accessToken, httpClient, group.Id); if (team != null) { team.DisplayName = group.DisplayName; @@ -81,17 +81,17 @@ public static Team GetTeam(string accessToken, HttpClient httpClient, string gro } } - public static HttpResponseMessage DeleteTeam(string accessToken, HttpClient httpClient, string groupId) + public static async Task DeleteTeamAsync(string accessToken, HttpClient httpClient, string groupId) { - return GraphHelper.DeleteAsync(httpClient, $"v1.0/groups/{groupId}", accessToken).GetAwaiter().GetResult(); + return await GraphHelper.DeleteAsync(httpClient, $"v1.0/groups/{groupId}", accessToken); } - private static Team ParseTeamJson(string accessToken, HttpClient httpClient, string groupId) + private static async Task ParseTeamJsonAsync(string accessToken, HttpClient httpClient, string groupId) { // Get Settings try { - var team = GraphHelper.GetAsync(httpClient, $"v1.0/teams/{groupId}", accessToken).GetAwaiter().GetResult(); + var team = await GraphHelper.GetAsync(httpClient, $"v1.0/teams/{groupId}", accessToken); if (team != null) { team.GroupId = groupId; @@ -101,11 +101,6 @@ private static Team ParseTeamJson(string accessToken, HttpClient httpClient, str { return null; } - - //team = GetTeamChannels(configuration, accessToken, groupId, team, scope); - //team = GetTeamApps(accessToken, groupId, team, scope); - //team = GetTeamSecurity(accessToken, groupId, team, scope); - //GetTeamPhoto(configuration, accessToken, groupId, team, scope); } catch (ApplicationException ex) { @@ -141,18 +136,18 @@ private static Team ParseTeamJson(string accessToken, HttpClient httpClient, str } } - public static Team NewTeam(string accessToken, HttpClient httpClient, string groupId, string displayName, string description, string classification, string mailNickname, string owner, GroupVisibility visibility, TeamCreationInformation teamCI) + public static async Task NewTeamAsync(string accessToken, HttpClient httpClient, string groupId, string displayName, string description, string classification, string mailNickname, string owner, GroupVisibility visibility, TeamCreationInformation teamCI) { Group group = null; Team returnTeam = null; // Create group if (string.IsNullOrEmpty(groupId)) { - group = CreateGroup(accessToken, httpClient, displayName, description, classification, mailNickname, owner, visibility); + group = await CreateGroupAsync(accessToken, httpClient, displayName, description, classification, mailNickname, owner, visibility); } else { - group = GraphHelper.GetAsync(httpClient, $"v1.0/groups/{groupId}", accessToken).GetAwaiter().GetResult(); + group = await GraphHelper.GetAsync(httpClient, $"v1.0/groups/{groupId}", accessToken); if (group == null) { throw new PSArgumentException($"Cannot find group with id {groupId}"); @@ -163,28 +158,28 @@ public static Team NewTeam(string accessToken, HttpClient httpClient, string gro if (group != null) { Team team = teamCI.ToTeam(); - var teamSettings = GraphHelper.PutAsync(httpClient, $"v1.0/groups/{group.Id}/team", team, accessToken).GetAwaiter().GetResult(); + var teamSettings = await GraphHelper.PutAsync(httpClient, $"v1.0/groups/{group.Id}/team", team, accessToken); if (teamSettings != null) { - returnTeam = TeamsUtility.GetTeam(accessToken, httpClient, group.Id); + returnTeam = await TeamsUtility.GetTeamAsync(accessToken, httpClient, group.Id); } } return returnTeam; } - private static Group CreateGroup(string accessToken, HttpClient httpClient, string displayName, string description, string classification, string mailNickname, string owner, GroupVisibility visibility) + private static async Task CreateGroupAsync(string accessToken, HttpClient httpClient, string displayName, string description, string classification, string mailNickname, string owner, GroupVisibility visibility) { Group group = new Group(); // get the owner if no owner was specified var ownerId = string.Empty; if (string.IsNullOrEmpty(owner)) { - var user = GraphHelper.GetAsync(httpClient, "v1.0/me?$select=Id", accessToken).GetAwaiter().GetResult(); + var user = await GraphHelper.GetAsync(httpClient, "v1.0/me?$select=Id", accessToken); ownerId = user.Id; } else { - var user = GraphHelper.GetAsync(httpClient, $"v1.0/users/{owner}?$select=Id", accessToken).GetAwaiter().GetResult(); + var user = await GraphHelper.GetAsync(httpClient, $"v1.0/users/{owner}?$select=Id", accessToken); if (user != null) { ownerId = user.Id; @@ -192,7 +187,7 @@ private static Group CreateGroup(string accessToken, HttpClient httpClient, stri else { // find the user in the organization - var collection = GraphHelper.GetAsync>(httpClient, "v1.0/myorganization/users?$filter=mail eq '{owner}'&$select=Id", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, "v1.0/myorganization/users?$filter=mail eq '{owner}'&$select=Id", accessToken); if (collection != null) { if (collection.Items.Any()) @@ -207,18 +202,18 @@ private static Group CreateGroup(string accessToken, HttpClient httpClient, stri group.Description = description; group.Classification = classification; group.MailEnabled = true; - group.MailNickname = mailNickname ?? CreateAlias(httpClient, accessToken); + group.MailNickname = mailNickname ?? await CreateAliasAsync(httpClient, accessToken); group.GroupTypes = new List() { "Unified" }; group.SecurityEnabled = false; group.Owners = new List() { $"https://graph.microsoft.com/v1.0/users/{ownerId}" }; group.Members = new List() { $"https://graph.microsoft.com/v1.0/users/{ownerId}" }; group.Visibility = visibility == GroupVisibility.NotSpecified ? GroupVisibility.Private : visibility; - return GraphHelper.PostAsync(httpClient, "v1.0/groups", group, accessToken).GetAwaiter().GetResult(); + return await GraphHelper.PostAsync(httpClient, "v1.0/groups", group, accessToken); } - private static string CreateAlias(HttpClient httpClient, string accessToken) + private static async Task CreateAliasAsync(HttpClient httpClient, string accessToken) { var guid = Guid.NewGuid().ToString(); var teamName = string.Empty; @@ -226,7 +221,7 @@ private static string CreateAlias(HttpClient httpClient, string accessToken) do { var teamNameTemp = $"msteams_{guid.Substring(0, 8)}{guid.Substring(9, 4)}"; - var collection = GraphHelper.GetAsync>(httpClient, $"v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified') and (mailNickname eq '{teamNameTemp}')", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, $"v1.0/groups?$filter=groupTypes/any(c:c+eq+'Unified') and (mailNickname eq '{teamNameTemp}')", accessToken); if (collection != null) { if (!collection.Items.Any()) teamName = teamNameTemp; @@ -236,50 +231,50 @@ private static string CreateAlias(HttpClient httpClient, string accessToken) return teamName; } - public static Team UpdateTeam(HttpClient httpClient, string accessToken, string groupId, Team team) + public static async Task UpdateTeamAsync(HttpClient httpClient, string accessToken, string groupId, Team team) { - return GraphHelper.PatchAsync(httpClient, accessToken, $"v1.0/teams/{groupId}", team).GetAwaiter().GetResult(); + return await GraphHelper.PatchAsync(httpClient, accessToken, $"v1.0/teams/{groupId}", team); } - public static Group UpdateGroup(HttpClient httpClient, string accessToken, string groupId, Group group) + public static async Task UpdateGroupAsync(HttpClient httpClient, string accessToken, string groupId, Group group) { - return GraphHelper.PatchAsync(httpClient, accessToken, $"v1.0/groups/{groupId}", group).GetAwaiter().GetResult(); + return await GraphHelper.PatchAsync(httpClient, accessToken, $"v1.0/groups/{groupId}", group); } - public static void SetTeamPicture(HttpClient httpClient, string accessToken, string groupId, byte[] bytes, string contentType) + public static async Task SetTeamPictureAsync(HttpClient httpClient, string accessToken, string groupId, byte[] bytes, string contentType) { var byteArrayContent = new ByteArrayContent(bytes); byteArrayContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(contentType); - GraphHelper.PutAsync(httpClient, $"v1.0/groups/{groupId}/photo/$value", accessToken, byteArrayContent).GetAwaiter().GetResult(); + await GraphHelper.PutAsync(httpClient, $"v1.0/groups/{groupId}/photo/$value", accessToken, byteArrayContent); } - public static HttpResponseMessage SetTeamArchivedState(HttpClient httpClient, string accessToken, string groupId, bool archived, bool? setSiteReadOnly) + public static async Task SetTeamArchivedStateAsync(HttpClient httpClient, string accessToken, string groupId, bool archived, bool? setSiteReadOnly) { if (archived) { StringContent content = new StringContent(JsonSerializer.Serialize(setSiteReadOnly.HasValue ? new { shouldSetSpoSiteReadOnlyForMembers = setSiteReadOnly } : null)); content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); - return GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/archive", accessToken, content).GetAwaiter().GetResult(); + return await GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/archive", accessToken, content); } else { StringContent content = new StringContent(""); content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); - return GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/unarchive", accessToken, content).GetAwaiter().GetResult(); + return await GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/unarchive", accessToken, content); } } #endregion #region Users - public static void AddUser(HttpClient httpClient, string accessToken, string groupId, string upn, string role) + public static async Task AddUserAsync(HttpClient httpClient, string accessToken, string groupId, string upn, string role) { - var user = GraphHelper.GetAsync(httpClient, $"v1.0/users/{upn}", accessToken).GetAwaiter().GetResult(); + var user = await GraphHelper.GetAsync(httpClient, $"v1.0/users/{upn}", accessToken); // check if the user is a member bool isMember = false; try { - var members = GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/members?$filter=Id eq '{user.Id}'&$select=Id", accessToken).GetAwaiter().GetResult(); + var members = await GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/members?$filter=Id eq '{user.Id}'&$select=Id", accessToken); isMember = members.Items.Any(); } catch (GraphException) @@ -288,7 +283,7 @@ public static void AddUser(HttpClient httpClient, string accessToken, string gro bool isOwner = false; try { - var owners = GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/owners?$filter=Id eq '{user.Id}'&$select=Id", accessToken).GetAwaiter().GetResult(); + var owners = await GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/owners?$filter=Id eq '{user.Id}'&$select=Id", accessToken); isOwner = owners.Items.Any(); } catch (GraphException) @@ -309,17 +304,17 @@ public static void AddUser(HttpClient httpClient, string accessToken, string gro { if (!isMember) { - GraphHelper.PostAsync(httpClient, $"v1.0/groups/{groupId}/members/$ref", accessToken, stringContent).GetAwaiter().GetResult(); + await GraphHelper.PostAsync(httpClient, $"v1.0/groups/{groupId}/members/$ref", accessToken, stringContent); } - GraphHelper.PostAsync(httpClient, $"v1.0/groups/{groupId}/owners/$ref", accessToken, stringContent).GetAwaiter().GetResult(); + await GraphHelper.PostAsync(httpClient, $"v1.0/groups/{groupId}/owners/$ref", accessToken, stringContent); } else { - GraphHelper.PostAsync(httpClient, $"v1.0/groups/{groupId}/members/$ref", accessToken, stringContent).GetAwaiter().GetResult(); + await GraphHelper.PostAsync(httpClient, $"v1.0/groups/{groupId}/members/$ref", accessToken, stringContent); } } - public static List GetUsers(HttpClient httpClient, string accessToken, string groupId, string role) + public static async Task> GetUsersAsync(HttpClient httpClient, string accessToken, string groupId, string role) { var selectedRole = role != null ? role.ToLower() : null; var owners = new List(); @@ -327,7 +322,7 @@ public static List GetUsers(HttpClient httpClient, string accessToken, str var members = new List(); if (selectedRole != "guest") { - owners = GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/owners?$select=Id,displayName,userPrincipalName,userType", accessToken).GetAwaiter().GetResult().Items.Select(t => new User() + owners = (await GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/owners?$select=Id,displayName,userPrincipalName,userType", accessToken)).Items.Select(t => new User() { Id = t.Id, DisplayName = t.DisplayName, @@ -337,7 +332,7 @@ public static List GetUsers(HttpClient httpClient, string accessToken, str } if (selectedRole != "owner") { - var users = GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/members?$select=Id,displayName,userPrincipalName,userType", accessToken).GetAwaiter().GetResult().Items; + var users = (await GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/members?$select=Id,displayName,userPrincipalName,userType", accessToken)).Items; HashSet hashSet = new HashSet(owners.Select(u => u.Id)); foreach (var user in users) { @@ -404,24 +399,24 @@ public static async Task> GetUsersAsync(HttpClient httpClient, } } - public static void DeleteUser(HttpClient httpClient, string accessToken, string groupId, string upn, string role) + public static async Task DeleteUserAsync(HttpClient httpClient, string accessToken, string groupId, string upn, string role) { - var user = GraphHelper.GetAsync(httpClient, $"v1.0/users/{upn}?$select=Id", accessToken).GetAwaiter().GetResult(); + var user = await GraphHelper.GetAsync(httpClient, $"v1.0/users/{upn}?$select=Id", accessToken); if (user != null) { // check if the user is an owner - var owners = GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/owners?$select=Id", accessToken).GetAwaiter().GetResult(); + var owners = await GraphHelper.GetAsync>(httpClient, $"v1.0/groups/{groupId}/owners?$select=Id", accessToken); if (owners.Items.Any() && owners.Items.FirstOrDefault(u => u.Id.Equals(user.Id, StringComparison.OrdinalIgnoreCase)) != null) { if (owners.Items.Count() == 1) { throw new PSInvalidOperationException("Last owner cannot be removed"); } - GraphHelper.DeleteAsync(httpClient, $"v1.0/groups/{groupId}/owners/{user.Id}/$ref", accessToken).GetAwaiter().GetResult(); + await GraphHelper.DeleteAsync(httpClient, $"v1.0/groups/{groupId}/owners/{user.Id}/$ref", accessToken); } if (!role.Equals("owner", StringComparison.OrdinalIgnoreCase)) { - GraphHelper.DeleteAsync(httpClient, $"v1.0/groups/{groupId}/members/{user.Id}/$ref", accessToken).GetAwaiter().GetResult(); + await GraphHelper.DeleteAsync(httpClient, $"v1.0/groups/{groupId}/members/{user.Id}/$ref", accessToken); } } } @@ -429,9 +424,9 @@ public static void DeleteUser(HttpClient httpClient, string accessToken, string #endregion #region Channel - public static IEnumerable GetChannels(string accessToken, HttpClient httpClient, string groupId) + public static async Task> GetChannelsAsync(string accessToken, HttpClient httpClient, string groupId) { - var collection = GraphHelper.GetAsync>(httpClient, $"beta/teams/{groupId}/channels", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, $"beta/teams/{groupId}/channels", accessToken); if (collection != null) { return collection.Items; @@ -442,12 +437,12 @@ public static IEnumerable GetChannels(string accessToken, HttpClien } } - public static HttpResponseMessage DeleteChannel(string accessToken, HttpClient httpClient, string groupId, string channelId) + public static async Task DeleteChannelAsync(string accessToken, HttpClient httpClient, string groupId, string channelId) { - return GraphHelper.DeleteAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}", accessToken).GetAwaiter().GetResult(); + return await GraphHelper.DeleteAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}", accessToken); } - public static TeamChannel AddChannel(string accessToken, HttpClient httpClient, string groupId, string displayName, string description, bool isPrivate, string ownerUPN) + public static async Task AddChannelAsync(string accessToken, HttpClient httpClient, string groupId, string displayName, string description, bool isPrivate, string ownerUPN) { var channel = new TeamChannel() { @@ -461,32 +456,32 @@ public static TeamChannel AddChannel(string accessToken, HttpClient httpClient, if (isPrivate) { channel.Type = "#Microsoft.Teams.Core.channel"; - var user = GraphHelper.GetAsync(httpClient, $"v1.0/users/{ownerUPN}", accessToken).GetAwaiter().GetResult(); + var user = await GraphHelper.GetAsync(httpClient, $"v1.0/users/{ownerUPN}", accessToken); channel.Members = new List(); channel.Members.Add(new TeamChannelMember() { Roles = new List { "owner" }, UserIdentifier = $"https://graph.microsoft.com/beta/users/('{user.Id}')" }); - return GraphHelper.PostAsync(httpClient, $"beta/teams/{groupId}/channels", channel, accessToken).GetAwaiter().GetResult(); + return await GraphHelper.PostAsync(httpClient, $"beta/teams/{groupId}/channels", channel, accessToken); } else { - return GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels", channel, accessToken).GetAwaiter().GetResult(); + return await GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels", channel, accessToken); } } - public static void PostMessage(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamChannelMessage message) + public static async Task PostMessageAsync(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamChannelMessage message) { - GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/messages", message, accessToken).GetAwaiter().GetResult(); + await GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/messages", message, accessToken); } - public static List GetMessages(HttpClient httpClient, string accessToken, string groupId, string channelId, bool includeDeleted = false) + public static async Task> GetMessagesAsync(HttpClient httpClient, string accessToken, string groupId, string channelId, bool includeDeleted = false) { List messages = new List(); - var collection = GraphHelper.GetAsync>(httpClient, $"beta/teams/{groupId}/channels/{channelId}/messages", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, $"beta/teams/{groupId}/channels/{channelId}/messages", accessToken); if (collection != null) { messages.AddRange(collection.Items); while (collection != null && !string.IsNullOrEmpty(collection.NextLink)) { - collection = GraphHelper.GetAsync>(httpClient, collection.NextLink, accessToken).GetAwaiter().GetResult(); + collection = await GraphHelper.GetAsync>(httpClient, collection.NextLink, accessToken); if (collection != null) { messages.AddRange(collection.Items); @@ -503,16 +498,16 @@ public static List GetMessages(HttpClient httpClient, string } } - public static TeamChannel UpdateChannel(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamChannel channel) + public static async Task UpdateChannelAsync(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamChannel channel) { - return GraphHelper.PatchAsync(httpClient, accessToken, $"beta/teams/{groupId}/channels/{channelId}", channel).GetAwaiter().GetResult(); + return await GraphHelper.PatchAsync(httpClient, accessToken, $"beta/teams/{groupId}/channels/{channelId}", channel); } #endregion #region Tabs - public static IEnumerable GetTabs(string accessToken, HttpClient httpClient, string groupId, string channelId) + public static async Task> GetTabsAsync(string accessToken, HttpClient httpClient, string groupId, string channelId) { - var collection = GraphHelper.GetAsync>(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs", accessToken); if (collection != null) { return collection.Items; @@ -520,23 +515,23 @@ public static IEnumerable GetTabs(string accessToken, HttpClient httpCl return null; } - public static TeamTab GetTab(string accessToken, HttpClient httpClient, string groupId, string channelId, string tabId) + public static async Task GetTabAsync(string accessToken, HttpClient httpClient, string groupId, string channelId, string tabId) { - return GraphHelper.GetAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs/{tabId}", accessToken).GetAwaiter().GetResult(); + return await GraphHelper.GetAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs/{tabId}", accessToken); } - public static HttpResponseMessage DeleteTab(string accessToken, HttpClient httpClient, string groupId, string channelId, string tabId) + public static async Task DeleteTabAsync(string accessToken, HttpClient httpClient, string groupId, string channelId, string tabId) { - return GraphHelper.DeleteAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs/{tabId}", accessToken).GetAwaiter().GetResult(); + return await GraphHelper.DeleteAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs/{tabId}", accessToken); } - public static void UpdateTab(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamTab tab) + public static async Task UpdateTabAsync(HttpClient httpClient, string accessToken, string groupId, string channelId, TeamTab tab) { tab.Configuration = null; - GraphHelper.PatchAsync(httpClient, accessToken, $"v1.0/teams/{groupId}/channels/{channelId}/tabs/{tab.Id}", tab).GetAwaiter().GetResult(); + await GraphHelper.PatchAsync(httpClient, accessToken, $"v1.0/teams/{groupId}/channels/{channelId}/tabs/{tab.Id}", tab); } - public static TeamTab AddTab(HttpClient httpClient, string accessToken, string groupId, string channelId, string displayName, TeamTabType tabType, string teamsAppId, string entityId, string contentUrl, string removeUrl, string websiteUrl) + public static async Task AddTabAsync(HttpClient httpClient, string accessToken, string groupId, string channelId, string displayName, TeamTabType tabType, string teamsAppId, string entityId, string contentUrl, string removeUrl, string websiteUrl) { TeamTab tab = new TeamTab(); switch (tabType) @@ -649,14 +644,14 @@ public static TeamTab AddTab(HttpClient httpClient, string accessToken, string g } tab.DisplayName = displayName; tab.TeamsApp = $"https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/{tab.TeamsAppId}"; - return GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs", tab, accessToken).GetAwaiter().GetResult(); + return await GraphHelper.PostAsync(httpClient, $"v1.0/teams/{groupId}/channels/{channelId}/tabs", tab, accessToken); } #endregion #region Apps - public static IEnumerable GetApps(string accessToken, HttpClient httpClient) + public static async Task> GetAppsAsync(string accessToken, HttpClient httpClient) { - var collection = GraphHelper.GetAsync>(httpClient, $"v1.0/appCatalogs/teamsApps", accessToken).GetAwaiter().GetResult(); + var collection = await GraphHelper.GetAsync>(httpClient, $"v1.0/appCatalogs/teamsApps", accessToken); if (collection != null) { return collection.Items; @@ -664,11 +659,11 @@ public static IEnumerable GetApps(string accessToken, HttpClient httpCl return null; } - public static TeamApp AddApp(HttpClient httpClient, string accessToken, byte[] bytes) + public static async Task AddAppAsync(HttpClient httpClient, string accessToken, byte[] bytes) { var byteArrayContent = new ByteArrayContent(bytes); byteArrayContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/zip"); - var response = GraphHelper.PostAsync(httpClient, "v1.0/appCatalogs/teamsApps", accessToken, byteArrayContent).GetAwaiter().GetResult(); + var response = await GraphHelper.PostAsync(httpClient, "v1.0/appCatalogs/teamsApps", accessToken, byteArrayContent); if (!response.IsSuccessStatusCode) { if (GraphHelper.TryGetGraphException(response, out GraphException exception)) @@ -684,16 +679,16 @@ public static TeamApp AddApp(HttpClient httpClient, string accessToken, byte[] b return null; } - public static HttpResponseMessage UpdateApp(HttpClient httpClient, string accessToken, byte[] bytes, string appId) + public static async Task UpdateAppAsync(HttpClient httpClient, string accessToken, byte[] bytes, string appId) { var byteArrayContent = new ByteArrayContent(bytes); byteArrayContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/zip"); - return GraphHelper.PutAsync(httpClient, $"v1.0/appCatalogs/teamsApps/{appId}", accessToken, byteArrayContent).GetAwaiter().GetResult(); + return await GraphHelper.PutAsync(httpClient, $"v1.0/appCatalogs/teamsApps/{appId}", accessToken, byteArrayContent); } - public static HttpResponseMessage DeleteApp(HttpClient httpClient, string accessToken, string appId) + public static async Task DeleteAppAsync(HttpClient httpClient, string accessToken, string appId) { - return GraphHelper.DeleteAsync(httpClient, $"v1.0/appCatalogs/teamsApps/{appId}", accessToken).GetAwaiter().GetResult(); + return await GraphHelper.DeleteAsync(httpClient, $"v1.0/appCatalogs/teamsApps/{appId}", accessToken); } #endregion } From 18ee88b368560acf73620792462b5277eba1bf60 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Fri, 17 Jul 2020 10:38:43 +0200 Subject: [PATCH 19/35] fixed compilation issues --- Commands/Base/PnPConnection.cs | 2 +- Commands/Model/GraphToken.cs | 34 +++++++++------------- Commands/Model/OfficeManagementApiToken.cs | 2 -- 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/Commands/Base/PnPConnection.cs b/Commands/Base/PnPConnection.cs index 983c8c8ec..5f8a64e2c 100644 --- a/Commands/Base/PnPConnection.cs +++ b/Commands/Base/PnPConnection.cs @@ -1,6 +1,5 @@ using Microsoft.ApplicationInsights; using Microsoft.Identity.Client; -using Microsoft.IdentityModel.SecurityTokenService; using Microsoft.SharePoint.Client; using OfficeDevPnP.Core.Extensions; using PnP.PowerShell.Commands.Enums; @@ -18,6 +17,7 @@ using System.Security.Cryptography.X509Certificates; using System.Web; using TextCopy; +using PnP.PowerShell.CmdletHelpAttributes; namespace PnP.PowerShell.Commands.Base { diff --git a/Commands/Model/GraphToken.cs b/Commands/Model/GraphToken.cs index d875895b5..5ca9cacce 100644 --- a/Commands/Model/GraphToken.cs +++ b/Commands/Model/GraphToken.cs @@ -148,30 +148,24 @@ public static GenericToken AcquireApplicationTokenInteractive(string clientId, s } - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); - } - - AuthenticationResult tokenResult = null; + if (publicClientApplication == null) + { + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); + } - //if (publicClientApplication == null) - //{ - // publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}organizations/").WithDefaultRedirectUri().Build(); + AuthenticationResult tokenResult = null; - //} - var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = publicClientApplication.AcquireTokenInteractive(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).ExecuteAsync(cancellationToken).GetAwaiter().GetResult(); - } - return new GraphToken(tokenResult.AccessToken); + try + { + tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); } + catch + { + tokenResult = publicClientApplication.AcquireTokenInteractive(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).ExecuteAsync().GetAwaiter().GetResult(); + } + return new GraphToken(tokenResult.AccessToken); } public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, Action callBackAction) diff --git a/Commands/Model/OfficeManagementApiToken.cs b/Commands/Model/OfficeManagementApiToken.cs index 4c1be233e..263833708 100644 --- a/Commands/Model/OfficeManagementApiToken.cs +++ b/Commands/Model/OfficeManagementApiToken.cs @@ -1,10 +1,8 @@ using Microsoft.Identity.Client; -using SharePointPnP.PowerShell.CmdletHelpAttributes; using System; using System.Linq; using System.Security; using System.Security.Cryptography.X509Certificates; -using System.Threading.Tasks; namespace PnP.PowerShell.Commands.Model { From bc2931be36ee485bd6c95349eceaa4f5eb133510 Mon Sep 17 00:00:00 2001 From: Koen Zomers Date: Sat, 18 Jul 2020 09:47:03 +0200 Subject: [PATCH 20/35] Adding placeholders for August release --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8246a66a..c5380ff28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## [3.24.2008.0] not yet released +### Changed + + +### Added + + +### Contributors + ## [3.23.2007.1] From d589d31ed56da03e8602e7d6156c653cad38f16a Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Mon, 20 Jul 2020 11:12:23 +0200 Subject: [PATCH 21/35] fixes issue with token handling and tenant templates --- Commands/Base/ConnectOnline.cs | 4 +- Commands/Base/DisconnectOnline.cs | 2 +- Commands/Base/PnPConnection.cs | 12 +- Commands/Base/PnPConnectionHelper.cs | 8 +- Commands/Base/RequestAccessToken.cs | 2 +- Commands/Base/TokenHandling.cs | 94 +++++-- Commands/Model/GenericToken.cs | 251 +++++++++++++++++- .../Tenant/ApplyTenantTemplate.cs | 13 +- 8 files changed, 334 insertions(+), 52 deletions(-) diff --git a/Commands/Base/ConnectOnline.cs b/Commands/Base/ConnectOnline.cs index bb5b2b88d..704a59ce7 100644 --- a/Commands/Base/ConnectOnline.cs +++ b/Commands/Base/ConnectOnline.cs @@ -1110,14 +1110,14 @@ private PnPConnection ConnectAadWithScope(PSCredential credentials) // If we have Office 365 scopes, get a token for those first if (officeManagementApiScopes.Length > 0) { - var officeManagementApiToken = credentials == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(PnPConnection.DeviceLoginClientId, officeManagementApiScopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPConnection.DeviceLoginClientId, officeManagementApiScopes, credentials.UserName, credentials.Password); + var officeManagementApiToken = credentials == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, credentials.UserName, credentials.Password); connection = PnPConnection.GetConnectionWithToken(officeManagementApiToken, TokenAudience.OfficeManagementApi, Host, InitializationType.InteractiveLogin, credentials, disableTelemetry: NoTelemetry.ToBool()); } // If we have Graph scopes, get a token for it if (graphScopes.Length > 0) { - var graphToken = credentials == null ? GraphToken.AcquireApplicationTokenInteractive(PnPConnection.DeviceLoginClientId, graphScopes) : GraphToken.AcquireDelegatedTokenWithCredentials(PnPConnection.DeviceLoginClientId, graphScopes, credentials.UserName, credentials.Password); + var graphToken = credentials == null ? GraphToken.AcquireApplicationTokenInteractive(PnPConnection.PnPManagementShellClientId, graphScopes) : GraphToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, graphScopes, credentials.UserName, credentials.Password); // If there's a connection already, add the AAD token to it, otherwise set up a new connection with it if (connection != null) diff --git a/Commands/Base/DisconnectOnline.cs b/Commands/Base/DisconnectOnline.cs index de0b07251..cfb551328 100644 --- a/Commands/Base/DisconnectOnline.cs +++ b/Commands/Base/DisconnectOnline.cs @@ -83,7 +83,7 @@ internal static bool DisconnectProvidedService(PnPConnection connection) GraphToken.ClearCaches(); OfficeManagementApiToken.ClearCaches(); - + GenericToken.ClearCaches(); connection.Context = null; connection = null; return true; diff --git a/Commands/Base/PnPConnection.cs b/Commands/Base/PnPConnection.cs index b94e5c05b..a4ab2b5a8 100644 --- a/Commands/Base/PnPConnection.cs +++ b/Commands/Base/PnPConnection.cs @@ -28,9 +28,7 @@ public class PnPConnection /// /// ClientId of the application registered in Azure Active Directory which should be used for the device oAuth flow /// - internal const string DeviceLoginClientId = "31359c7f-bd7e-475c-86db-fdb8c937548e"; - //private const string MSALPnPPowerShellClientId = "bb0c5778-9d5c-41ea-a4a8-8cd417b3ab71"; - //private const string MSALPnPPowerShellClientId = DeviceLoginClientId; + internal const string PnPManagementShellClientId = "31359c7f-bd7e-475c-86db-fdb8c937548e"; #endregion #region Properties @@ -178,7 +176,7 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(Scopes).ToArray(); // Take the remaining scopes and try requesting them from the Microsoft Graph API var scopes = Scopes.Except(officeManagementApiScopes).ToArray(); - token = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.DeviceLoginClientId, scopes, DeviceLoginCallback(null, false)); + token = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, scopes, DeviceLoginCallback(null, false)); } else { @@ -199,7 +197,7 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles var scopes = Scopes.Except(officeManagementApiScopes).ToArray(); if (scopes.Length > 0) { - token = PSCredential == null ? GraphToken.AcquireApplicationTokenInteractive(DeviceLoginClientId, scopes) : GraphToken.AcquireDelegatedTokenWithCredentials(DeviceLoginClientId, scopes, PSCredential.UserName, PSCredential.Password); + token = PSCredential == null ? GraphToken.AcquireApplicationTokenInteractive(PnPManagementShellClientId, scopes) : GraphToken.AcquireDelegatedTokenWithCredentials(PnPManagementShellClientId, scopes, PSCredential.UserName, PSCredential.Password); } else { @@ -227,7 +225,7 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles // Take the remaining scopes and try requesting them from the Microsoft Graph API if (scopes.Length > 0) { - token = PSCredential == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(DeviceLoginClientId, scopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(DeviceLoginClientId, scopes, PSCredential.UserName, PSCredential.Password); + token = PSCredential == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(PnPManagementShellClientId, scopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPManagementShellClientId, scopes, PSCredential.UserName, PSCredential.Password); } else { @@ -596,7 +594,7 @@ internal PnPConnection(ClientContext context, GenericToken tokenResult, Connecti PnPVersionTag = pnpVersionTag; Url = (new Uri(url)).AbsoluteUri; ConnectionMethod = ConnectionMethod.AccessToken; - ClientId = DeviceLoginClientId; + ClientId = PnPManagementShellClientId; Tenant = tokenResult.ParsedToken.Claims.FirstOrDefault(c => c.Type == "tid").Value; context.ExecutingWebRequest += (sender, args) => { diff --git a/Commands/Base/PnPConnectionHelper.cs b/Commands/Base/PnPConnectionHelper.cs index e87f712a4..bbfc1aab6 100644 --- a/Commands/Base/PnPConnectionHelper.cs +++ b/Commands/Base/PnPConnectionHelper.cs @@ -156,7 +156,7 @@ internal static PnPConnection InstantiateDeviceLoginConnection(string url, bool var scopes = new[] { $"{connectionUri.Scheme}://{connectionUri.Host}//.default" }; // the second double slash is not a typo. var context = new ClientContext(url); - var tokenResult = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.DeviceLoginClientId, scopes, PnPConnection.DeviceLoginCallback(host, launchBrowser)); + var tokenResult = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, scopes, PnPConnection.DeviceLoginCallback(host, launchBrowser)); var spoConnection = new PnPConnection(context, tokenResult, ConnectionType.O365, minimalHealthScore, retryCount, retryWait, null, url.ToString(), tenantAdminUrl, PnPPSVersionTag, host, disableTelemetry, InitializationType.DeviceLogin); spoConnection.Scopes = scopes; @@ -177,7 +177,7 @@ internal static PnPConnection InstantiateGraphAccessTokenConnection(string acces internal static PnPConnection InstantiateGraphDeviceLoginConnection(bool launchBrowser, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, Action messageCallback, Action progressCallback, Func cancelRequest, PSHost host, bool disableTelemetry) { - var tokenResult = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.DeviceLoginClientId, new[] { "Group.Read.All", "openid", "email", "profile", "Group.ReadWrite.All", "User.Read.All", "Directory.ReadWrite.All" }, PnPConnection.DeviceLoginCallback(host, launchBrowser)); + var tokenResult = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, new[] { "Group.Read.All", "openid", "email", "profile", "Group.ReadWrite.All", "User.Read.All", "Directory.ReadWrite.All" }, PnPConnection.DeviceLoginCallback(host, launchBrowser)); var spoConnection = new PnPConnection(tokenResult, ConnectionMethod.GraphDeviceLogin, ConnectionType.O365, minimalHealthScore, retryCount, retryWait, PnPPSVersionTag, host, disableTelemetry, InitializationType.GraphDeviceLogin); spoConnection.Scopes = new[] { "Group.Read.All", "openid", "email", "profile", "Group.ReadWrite.All", "User.Read.All", "Directory.ReadWrite.All" }; return spoConnection; @@ -186,7 +186,7 @@ internal static PnPConnection InstantiateGraphDeviceLoginConnection(bool launchB private static GenericToken GetTokenResult(Uri connectionUri, Dictionary returnData, Action messageCallback, Action progressCallback, Func cancelRequest) { HttpClient client = new HttpClient(); - var body = new StringContent($"resource={connectionUri.Scheme}://{connectionUri.Host}&client_id={PnPConnection.DeviceLoginClientId}&grant_type=device_code&code={returnData["device_code"]}"); + var body = new StringContent($"resource={connectionUri.Scheme}://{connectionUri.Host}&client_id={PnPConnection.PnPManagementShellClientId}&grant_type=device_code&code={returnData["device_code"]}"); body.Headers.ContentType.MediaType = "application/x-www-form-urlencoded"; var responseMessage = client.PostAsync("https://login.microsoftonline.com/common/oauth2/token", body).GetAwaiter().GetResult(); @@ -201,7 +201,7 @@ private static GenericToken GetTokenResult(Uri connectionUri, Dictionary public class GenericToken { + private static IPublicClientApplication publicClientApplication; + private static IConfidentialClientApplication confidentialClientApplication; + /// /// Token which can be used to access the API /// @@ -56,14 +63,14 @@ public class GenericToken /// /// The type of the token, e.g. Application or Generic /// - public TokenType TokenType { get; protected set; } + public TokenType TokenType { get; protected set; } /// /// Instantiates a new token /// /// Accesstoken of which to instantiate a new token public GenericToken(string accesstoken) { - if(string.IsNullOrWhiteSpace(accesstoken)) + if (string.IsNullOrWhiteSpace(accesstoken)) { throw new ArgumentNullException(nameof(accesstoken)); } @@ -73,12 +80,12 @@ public GenericToken(string accesstoken) AccessToken = accesstoken; ExpiresOn = ParsedToken.ValidTo.ToLocalTime(); - Audiences = ParsedToken.Audiences.ToArray(); + Audiences = ParsedToken.Audiences.ToArray(); TenantId = Guid.TryParse(ParsedToken.Claims.FirstOrDefault(c => c.Type == "tid").Value, out Guid tenandIdGuid) ? (Guid?)tenandIdGuid : null; var rolesList = new List(); rolesList.AddRange(ParsedToken.Claims.Where(c => c.Type.Equals("roles", StringComparison.InvariantCultureIgnoreCase)).Select(c => c.Value)); - foreach(var scope in ParsedToken.Claims.Where(c => c.Type.Equals("scp", StringComparison.InvariantCultureIgnoreCase))) + foreach (var scope in ParsedToken.Claims.Where(c => c.Type.Equals("scp", StringComparison.InvariantCultureIgnoreCase))) { rolesList.AddRange(scope.Value.Split(' ')); } @@ -105,7 +112,7 @@ public static GenericToken AcquireV1Token(string tenant, string clientId, string { var body = $"grant_type=password&client_id={clientId}&username={HttpUtility.UrlEncode(username)}&password={HttpUtility.UrlEncode(password)}&resource={resource}"; var response = HttpHelper.MakePostRequestForString($"https://login.microsoftonline.com/{tenant}/oauth2/token", body, "application/x-www-form-urlencoded"); - using(var jdoc = JsonDocument.Parse(response)) + using (var jdoc = JsonDocument.Parse(response)) { return new GenericToken(jdoc.RootElement.GetProperty("access_token").GetString()); } @@ -133,10 +140,238 @@ public static GenericToken AcquireV2Token(string tenant, string clientId, string { return new GenericToken(jdoc.RootElement.GetProperty("access_token").GetString()); } - //var json = JToken.Parse(response); - //var accessToken = json["access_token"].ToString(); + } - //return new GenericToken(accessToken); + public static GenericToken AcquireApplicationToken(string tenant, string clientId, string authority, string[] scopes, X509Certificate2 certificate) + { + if (string.IsNullOrEmpty(tenant)) + { + throw new ArgumentNullException(nameof(tenant)); + } + if (string.IsNullOrEmpty(clientId)) + { + throw new ArgumentNullException(nameof(clientId)); + } + if (certificate == null) + { + throw new ArgumentNullException(nameof(certificate)); + } + AuthenticationResult tokenResult = null; + + if (confidentialClientApplication == null) + { + confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithAuthority(authority).WithCertificate(certificate).Build(); + } + + var account = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + + try + { + tokenResult = confidentialClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); + } + catch + { + tokenResult = confidentialClientApplication.AcquireTokenForClient(scopes).ExecuteAsync().GetAwaiter().GetResult(); + } + + return new GenericToken(tokenResult.AccessToken); + } + + /// + /// Tries to acquire an application Microsoft Graph Access Token + /// + /// Name of the tenant to acquire the token for (i.e. contoso.onmicrosoft.com). Required. + /// ClientId to use to acquire the token. Required. + /// Client Secret to use to acquire the token. Required. + /// instance with the token + public static GenericToken AcquireApplicationToken(string tenant, string clientId, string authority, string[] scopes, string clientSecret) + { + if (string.IsNullOrEmpty(tenant)) + { + throw new ArgumentNullException(nameof(tenant)); + } + if (string.IsNullOrEmpty(clientId)) + { + throw new ArgumentNullException(nameof(clientId)); + } + if (string.IsNullOrEmpty(clientSecret)) + { + throw new ArgumentNullException(nameof(clientSecret)); + } + + AuthenticationResult tokenResult = null; + + if (confidentialClientApplication == null) + { + confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithAuthority(authority).WithClientSecret(clientSecret).Build(); + } + + var account = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + + try + { + tokenResult = confidentialClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); + } + catch + { + tokenResult = confidentialClientApplication.AcquireTokenForClient(scopes).ExecuteAsync().GetAwaiter().GetResult(); + } + return new GenericToken(tokenResult.AccessToken); + } + + /// + /// Tries to acquire an application Microsoft Graph Access Token for the provided scopes interactively by allowing the user to log in + /// + /// ClientId to use to acquire the token. Required. + /// Array with scopes that should be requested access to. Required. + /// instance with the token + public static GenericToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) + { + if (string.IsNullOrEmpty(clientId)) + { + throw new ArgumentNullException(nameof(clientId)); + } + if (scopes == null || scopes.Length == 0) + { + throw new ArgumentNullException(nameof(scopes)); + } + + + if (publicClientApplication == null) + { + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); + } + + AuthenticationResult tokenResult = null; + + var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + + try + { + tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); + } + catch + { + tokenResult = publicClientApplication.AcquireTokenInteractive(scopes).ExecuteAsync().GetAwaiter().GetResult(); + } + return new GenericToken(tokenResult.AccessToken); + } + + public static GenericToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, string authority, Action callBackAction) + { + if (string.IsNullOrEmpty(clientId)) + { + throw new ArgumentNullException(nameof(clientId)); + } + if (scopes == null || scopes.Length == 0) + { + throw new ArgumentNullException(nameof(scopes)); + } + + + if (publicClientApplication == null) + { + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).Build(); + } + + AuthenticationResult tokenResult = null; + + if (publicClientApplication == null) + { + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority(authority).Build(); + + } + var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + + try + { + tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); + } + catch + { + var builder = publicClientApplication.AcquireTokenWithDeviceCode(scopes, result => + { + if (callBackAction != null) + { + callBackAction(result); + } + return Task.FromResult(0); + }); + tokenResult = builder.ExecuteAsync().GetAwaiter().GetResult(); + } + return new GenericToken(tokenResult.AccessToken); + } + /// + /// Tries to acquire a delegated Microsoft Graph Access Token for the provided scopes using the provided credentials + /// + /// ClientId to use to acquire the token. Required. + /// Array with scopes that should be requested access to. Required. + /// The username to authenticate with. Required. + /// The password to authenticate with. Required. + /// instance with the token + public static GenericToken AcquireDelegatedTokenWithCredentials(string clientId, string[] scopes, string authority, string username, SecureString securePassword) + { + if (string.IsNullOrEmpty(clientId)) + { + throw new ArgumentNullException(nameof(clientId)); + } + if (scopes == null || scopes.Length == 0) + { + throw new ArgumentNullException(nameof(scopes)); + } + if (string.IsNullOrEmpty(username)) + { + throw new ArgumentNullException(nameof(username)); + } + if (securePassword == null || securePassword.Length == 0) + { + throw new ArgumentNullException(nameof(securePassword)); + } + + AuthenticationResult tokenResult = null; + + if (publicClientApplication == null) + { + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority(authority).Build(); + + } + var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); + try + { + tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); + } + catch + { + tokenResult = publicClientApplication.AcquireTokenByUsernamePassword(scopes, username, securePassword).ExecuteAsync().GetAwaiter().GetResult(); + } + + return new GenericToken(tokenResult.AccessToken); + } + + public static void ClearCaches() + { + if (publicClientApplication != null) + { + var accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); + + // clear the cache + while (accounts.Any()) + { + publicClientApplication.RemoveAsync(accounts.First()); + accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); + } + } + if (confidentialClientApplication != null) + { + var accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); + + // clear the cache + while (accounts.Any()) + { + confidentialClientApplication.RemoveAsync(accounts.First()); + accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); + } + } } } } diff --git a/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs b/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs index b10c87362..b93ee3bf1 100644 --- a/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs +++ b/Commands/Provisioning/Tenant/ApplyTenantTemplate.cs @@ -299,12 +299,15 @@ protected override void ExecuteCmdlet() // Get Azure AD Token if (PnPConnection.CurrentConnection != null) { - var graphAccessToken = PnPConnection.CurrentConnection.TryGetAccessToken(Enums.TokenAudience.MicrosoftGraph); - if (graphAccessToken != null) + if (resource.Equals("graph.microsoft.com", StringComparison.OrdinalIgnoreCase)) { - // Authenticated using -Graph or using another way to retrieve the accesstoken with Connect-PnPOnline - return Task.FromResult(graphAccessToken); - } + var graphAccessToken = PnPConnection.CurrentConnection.TryGetAccessToken(Enums.TokenAudience.MicrosoftGraph); + if (graphAccessToken != null) + { + // Authenticated using -Graph or using another way to retrieve the accesstoken with Connect-PnPOnline + return Task.FromResult(graphAccessToken); + } + } } if (PnPConnection.CurrentConnection.PSCredential != null) From 6970f99b33259fda0d2d9ac2115c63c178ce0a5a Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Mon, 20 Jul 2020 13:19:49 +0200 Subject: [PATCH 22/35] refactored token handling --- Commands/Base/DisconnectOnline.cs | 4 +- Commands/Model/GraphToken.cs | 209 +-------------------- Commands/Model/OfficeManagementApiToken.cs | 167 +--------------- 3 files changed, 19 insertions(+), 361 deletions(-) diff --git a/Commands/Base/DisconnectOnline.cs b/Commands/Base/DisconnectOnline.cs index cfb551328..d26181368 100644 --- a/Commands/Base/DisconnectOnline.cs +++ b/Commands/Base/DisconnectOnline.cs @@ -55,6 +55,9 @@ protected override void ProcessRecord() throw new InvalidOperationException(Properties.Resources.NoConnectionToDisconnect); } + // clear credentials + PnPConnection.CurrentConnection = null; + var provider = SessionState.Provider.GetAll().FirstOrDefault(p => p.Name.Equals(SPOProvider.PSProviderName, StringComparison.InvariantCultureIgnoreCase)); if (provider != null) { @@ -80,7 +83,6 @@ internal static bool DisconnectProvidedService(PnPConnection connection) { return false; } - GraphToken.ClearCaches(); OfficeManagementApiToken.ClearCaches(); GenericToken.ClearCaches(); diff --git a/Commands/Model/GraphToken.cs b/Commands/Model/GraphToken.cs index ce0ea6f9f..c9b60044c 100644 --- a/Commands/Model/GraphToken.cs +++ b/Commands/Model/GraphToken.cs @@ -20,8 +20,6 @@ namespace PnP.PowerShell.Commands.Model /// public class GraphToken : GenericToken { - private static IPublicClientApplication publicClientApplication; - private static IConfidentialClientApplication confidentialClientApplication; /// /// The resource identifier for Microsoft Graph API tokens /// @@ -53,39 +51,9 @@ public GraphToken(string accesstoken) : base(accesstoken) /// ClientId to use to acquire the token. Required. /// Certificate to use to acquire the token. Required. /// instance with the token - public static GenericToken AcquireApplicationToken(string tenant, string clientId, X509Certificate2 certificate) + public static GraphToken AcquireApplicationToken(string tenant, string clientId, X509Certificate2 certificate) { - if (string.IsNullOrEmpty(tenant)) - { - throw new ArgumentNullException(nameof(tenant)); - } - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (certificate == null) - { - throw new ArgumentNullException(nameof(certificate)); - } - AuthenticationResult tokenResult = null; - - if (confidentialClientApplication == null) - { - confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}{tenant}").WithCertificate(certificate).Build(); - } - - var account = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - try - { - tokenResult = confidentialClientApplication.AcquireTokenSilent(new[] { $"{ResourceIdentifier}/{DefaultScope}" }, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = confidentialClientApplication.AcquireTokenForClient(new[] { $"{ResourceIdentifier}/{DefaultScope}" }).ExecuteAsync().GetAwaiter().GetResult(); - } - - return new GraphToken(tokenResult.AccessToken); + return new GraphToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, certificate).AccessToken); } /// @@ -95,39 +63,9 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// ClientId to use to acquire the token. Required. /// Client Secret to use to acquire the token. Required. /// instance with the token - public static GenericToken AcquireApplicationToken(string tenant, string clientId, string clientSecret) + public static GraphToken AcquireApplicationToken(string tenant, string clientId, string clientSecret) { - if (string.IsNullOrEmpty(tenant)) - { - throw new ArgumentNullException(nameof(tenant)); - } - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (string.IsNullOrEmpty(clientSecret)) - { - throw new ArgumentNullException(nameof(clientSecret)); - } - - AuthenticationResult tokenResult = null; - - if (confidentialClientApplication == null) - { - confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}{tenant}").WithClientSecret(clientSecret).Build(); - } - - var account = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - try - { - tokenResult = confidentialClientApplication.AcquireTokenSilent(new[] { $"{ResourceIdentifier}/{DefaultScope}" }, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = confidentialClientApplication.AcquireTokenForClient(new[] { $"{ResourceIdentifier}/{DefaultScope}" }).ExecuteAsync().GetAwaiter().GetResult(); - } - return new GraphToken(tokenResult.AccessToken); + return new GraphToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, clientSecret).AccessToken); } /// @@ -136,36 +74,9 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// ClientId to use to acquire the token. Required. /// Array with scopes that should be requested access to. Required. /// instance with the token - public static GenericToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) + public static new GraphToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) { - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (scopes == null || scopes.Length == 0) - { - throw new ArgumentNullException(nameof(scopes)); - } - - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); - } - - AuthenticationResult tokenResult = null; - - var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = publicClientApplication.AcquireTokenInteractive(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).ExecuteAsync().GetAwaiter().GetResult(); - } - return new GraphToken(tokenResult.AccessToken); + return new GraphToken(GenericToken.AcquireApplicationTokenInteractive(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).AccessToken); } public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, Action callBackAction) @@ -174,47 +85,7 @@ public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, str // Take the remaining scopes and try requesting them from the Microsoft Graph API scopes = scopes.Except(officeManagementApiScopes).ToArray(); - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (scopes == null || scopes.Length == 0) - { - throw new ArgumentNullException(nameof(scopes)); - } - - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).Build(); - } - - AuthenticationResult tokenResult = null; - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}organizations/").Build(); - - } - var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - var builder = publicClientApplication.AcquireTokenWithDeviceCode(scopes, result => - { - if (callBackAction != null) - { - callBackAction(result); - } - return Task.FromResult(0); - }); - tokenResult = builder.ExecuteAsync().GetAwaiter().GetResult(); - } - return new GraphToken(tokenResult.AccessToken); + return new GraphToken(AcquireApplicationTokenDeviceLogin(clientId, scopes, $"{OAuthBaseUrl}organizations", callBackAction).AccessToken); } /// /// Tries to acquire a delegated Microsoft Graph Access Token for the provided scopes using the provided credentials @@ -224,73 +95,13 @@ public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, str /// The username to authenticate with. Required. /// The password to authenticate with. Required. /// instance with the token - public static GenericToken AcquireDelegatedTokenWithCredentials(string clientId, string[] scopes, string username, SecureString securePassword) + public static GraphToken AcquireDelegatedTokenWithCredentials(string clientId, string[] scopes, string username, SecureString securePassword) { var officeManagementApiScopes = Enum.GetNames(typeof(OfficeManagementApiPermission)).Select(s => s.Replace("_", ".")).Intersect(scopes).ToArray(); // Take the remaining scopes and try requesting them from the Microsoft Graph API scopes = scopes.Except(officeManagementApiScopes).ToArray(); - - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (scopes == null || scopes.Length == 0) - { - throw new ArgumentNullException(nameof(scopes)); - } - if (string.IsNullOrEmpty(username)) - { - throw new ArgumentNullException(nameof(username)); - } - if (securePassword == null || securePassword.Length == 0) - { - throw new ArgumentNullException(nameof(securePassword)); - } - - AuthenticationResult tokenResult = null; - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}organizations/").Build(); - - } - var account = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(scopes, account.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = publicClientApplication.AcquireTokenByUsernamePassword(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), username, securePassword).ExecuteAsync().GetAwaiter().GetResult(); - } - - return new GraphToken(tokenResult.AccessToken); - } - - public static void ClearCaches() - { - if (publicClientApplication != null) - { - var accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - - // clear the cache - while (accounts.Any()) - { - publicClientApplication.RemoveAsync(accounts.First()); - accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - } - } - if(confidentialClientApplication != null) - { - var accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - - // clear the cache - while (accounts.Any()) - { - confidentialClientApplication.RemoveAsync(accounts.First()); - accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - } - } + + return new GraphToken(AcquireDelegatedTokenWithCredentials(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{OAuthBaseUrl}organizations/", username, securePassword).AccessToken); } } } diff --git a/Commands/Model/OfficeManagementApiToken.cs b/Commands/Model/OfficeManagementApiToken.cs index c0827ae68..60bfa4538 100644 --- a/Commands/Model/OfficeManagementApiToken.cs +++ b/Commands/Model/OfficeManagementApiToken.cs @@ -11,9 +11,6 @@ namespace PnP.PowerShell.Commands.Model /// public class OfficeManagementApiToken : GenericToken { - private static IPublicClientApplication publicClientApplication; - private static IConfidentialClientApplication confidentialClientApplication; - /// /// The resource identifier for Microsoft Office 365 Management API tokens /// @@ -35,7 +32,7 @@ public class OfficeManagementApiToken : GenericToken /// Accesstoken of which to instantiate a new token public OfficeManagementApiToken(string accesstoken) : base(accesstoken) { - TokenAudience = Enums.TokenAudience.MicrosoftGraph; + TokenAudience = Enums.TokenAudience.OfficeManagementApi; } /// @@ -47,37 +44,7 @@ public OfficeManagementApiToken(string accesstoken) : base(accesstoken) /// instance with the token public static GenericToken AcquireApplicationToken(string tenant, string clientId, X509Certificate2 certificate) { - if (string.IsNullOrEmpty(tenant)) - { - throw new ArgumentNullException(nameof(tenant)); - } - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (certificate == null) - { - throw new ArgumentNullException(nameof(certificate)); - } - - if (confidentialClientApplication == null) - { - confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}{tenant}").WithCertificate(certificate).Build(); - } - var accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - AuthenticationResult tokenResult = null; - - try - { - tokenResult = confidentialClientApplication.AcquireTokenSilent(new[] { $"{ResourceIdentifier}/{DefaultScope}" }, accounts.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = confidentialClientApplication.AcquireTokenForClient(new[] { $"{ResourceIdentifier}/{DefaultScope}" }).ExecuteAsync().GetAwaiter().GetResult(); - } - - return new OfficeManagementApiToken(tokenResult.AccessToken); + return new OfficeManagementApiToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, certificate).AccessToken); } /// @@ -89,38 +56,7 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// instance with the token public static GenericToken AcquireApplicationToken(string tenant, string clientId, string clientSecret) { - if (string.IsNullOrEmpty(tenant)) - { - throw new ArgumentNullException(nameof(tenant)); - } - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (string.IsNullOrEmpty(clientSecret)) - { - throw new ArgumentNullException(nameof(clientSecret)); - } - - if (confidentialClientApplication == null) - { - confidentialClientApplication = ConfidentialClientApplicationBuilder.Create(clientId).WithAuthority($"{OAuthBaseUrl}{tenant}").WithClientSecret(clientSecret).Build(); - } - - var accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - AuthenticationResult tokenResult = null; - - try - { - tokenResult = confidentialClientApplication.AcquireTokenSilent(new[] { $"{ResourceIdentifier}/{DefaultScope}" }, accounts.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = confidentialClientApplication.AcquireTokenForClient(new[] { $"{ResourceIdentifier}/{DefaultScope}" }).ExecuteAsync().GetAwaiter().GetResult(); - } - - return new OfficeManagementApiToken(tokenResult.AccessToken); + return new OfficeManagementApiToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, clientSecret).AccessToken); } /// @@ -129,36 +65,9 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// ClientId to use to acquire the token. Required. /// Array with scopes that should be requested access to. Required. /// instance with the token - public static GenericToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) + public static new GenericToken AcquireApplicationTokenInteractive(string clientId, string[] scopes) { - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (scopes == null || scopes.Length == 0) - { - throw new ArgumentNullException(nameof(scopes)); - } - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithRedirectUri("https://login.microsoftonline.com/common/oauth2/nativeclient").Build(); - } - - var accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - AuthenticationResult tokenResult = null; - - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(new[] { $"{ResourceIdentifier}/{DefaultScope}" }, accounts.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = publicClientApplication.AcquireTokenInteractive(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).ExecuteAsync().GetAwaiter().GetResult(); - } - - return new OfficeManagementApiToken(tokenResult.AccessToken); + return new OfficeManagementApiToken(GenericToken.AcquireApplicationTokenInteractive(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).AccessToken); } /// @@ -171,71 +80,7 @@ public static GenericToken AcquireApplicationTokenInteractive(string clientId, s /// instance with the token public static GenericToken AcquireDelegatedTokenWithCredentials(string clientId, string[] scopes, string username, SecureString securePassword) { - if (string.IsNullOrEmpty(clientId)) - { - throw new ArgumentNullException(nameof(clientId)); - } - if (scopes == null || scopes.Length == 0) - { - throw new ArgumentNullException(nameof(scopes)); - } - if (string.IsNullOrEmpty(username)) - { - throw new ArgumentNullException(nameof(username)); - } - if (securePassword == null || securePassword.Length == 0) - { - throw new ArgumentNullException(nameof(securePassword)); - } - - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId) - // Delegated Graph token using credentials is only possible against organizational tenants - .WithAuthority($"{OAuthBaseUrl}organizations/") - .Build(); - } - - var accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult(); - - AuthenticationResult tokenResult = null; - - try - { - tokenResult = publicClientApplication.AcquireTokenSilent(new[] { $"{ResourceIdentifier}/{DefaultScope}" }, accounts.First()).ExecuteAsync().GetAwaiter().GetResult(); - } - catch - { - tokenResult = publicClientApplication.AcquireTokenByUsernamePassword(scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), username, securePassword).ExecuteAsync().GetAwaiter().GetResult(); - } - return new OfficeManagementApiToken(tokenResult.AccessToken); - } - - public static void ClearCaches() - { - if (publicClientApplication != null) - { - var accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - - // clear the cache - while (accounts.Any()) - { - publicClientApplication.RemoveAsync(accounts.First()); - accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - } - } - if (confidentialClientApplication != null) - { - var accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - - // clear the cache - while (accounts.Any()) - { - confidentialClientApplication.RemoveAsync(accounts.First()); - accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); - } - } + return new OfficeManagementApiToken(GenericToken.AcquireDelegatedTokenWithCredentials(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{OAuthBaseUrl}organizations/", username, securePassword).AccessToken); } } } From ef91dca5d1e984b621ffedde5695324b6470c4b0 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Mon, 20 Jul 2020 13:39:39 +0200 Subject: [PATCH 23/35] Fixed case of multiple auth sessions in a row when using different scopes --- Commands/Base/DisconnectOnline.cs | 4 ++-- Commands/Model/GenericToken.cs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Commands/Base/DisconnectOnline.cs b/Commands/Base/DisconnectOnline.cs index d26181368..71f548cf4 100644 --- a/Commands/Base/DisconnectOnline.cs +++ b/Commands/Base/DisconnectOnline.cs @@ -83,8 +83,8 @@ internal static bool DisconnectProvidedService(PnPConnection connection) { return false; } - GraphToken.ClearCaches(); - OfficeManagementApiToken.ClearCaches(); + //GraphToken.ClearCaches(); + //OfficeManagementApiToken.ClearCaches(); GenericToken.ClearCaches(); connection.Context = null; connection = null; diff --git a/Commands/Model/GenericToken.cs b/Commands/Model/GenericToken.cs index 4c64a277d..3ecddbaef 100644 --- a/Commands/Model/GenericToken.cs +++ b/Commands/Model/GenericToken.cs @@ -239,7 +239,7 @@ public static GenericToken AcquireApplicationTokenInteractive(string clientId, s if (publicClientApplication == null) { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithDefaultRedirectUri().Build(); + publicClientApplication = PublicClientApplicationBuilder.Create(clientId).WithRedirectUri("https://login.microsoftonline.com/common/oauth2/nativeclient").Build(); } AuthenticationResult tokenResult = null; @@ -360,6 +360,7 @@ public static void ClearCaches() publicClientApplication.RemoveAsync(accounts.First()); accounts = publicClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); } + publicClientApplication = null; } if (confidentialClientApplication != null) { @@ -371,6 +372,7 @@ public static void ClearCaches() confidentialClientApplication.RemoveAsync(accounts.First()); accounts = confidentialClientApplication.GetAccountsAsync().GetAwaiter().GetResult().ToList(); } + confidentialClientApplication = null; } } } From 597341fb438ab029adc16d4c7b6c2328b330bbcb Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Mon, 20 Jul 2020 13:58:49 +0200 Subject: [PATCH 24/35] fixed interactive login with only scopes by utilizing device login flow --- Commands/Base/ConnectOnline.cs | 15 +++++++++++---- Commands/Base/TokenHandling.cs | 5 +---- Commands/Model/OfficeManagementApiToken.cs | 5 +++++ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Commands/Base/ConnectOnline.cs b/Commands/Base/ConnectOnline.cs index 704a59ce7..29902f72e 100644 --- a/Commands/Base/ConnectOnline.cs +++ b/Commands/Base/ConnectOnline.cs @@ -174,8 +174,8 @@ public class ConnectOnline : BasePSCmdlet private const string ParameterSet_APPONLYAADCER = "App-Only with Azure Active Directory using X502 certificates"; private const string ParameterSet_APPONLYAADThumb = "App-Only with Azure Active Directory using certificate from certificate store by thumbprint"; private const string ParameterSet_SPOMANAGEMENT = "SPO Management Shell Credentials"; - private const string ParameterSet_DEVICELOGIN = "PnP O365 Management Shell / DeviceLogin"; - private const string ParameterSet_GRAPHDEVICELOGIN = "PnP Office 365 Management Shell to the Microsoft Graph"; + private const string ParameterSet_DEVICELOGIN = "PnP Management Shell / DeviceLogin"; + private const string ParameterSet_GRAPHDEVICELOGIN = "PnP Management Shell to the Microsoft Graph"; private const string ParameterSet_AADWITHSCOPE = "Azure Active Directory using Scopes"; private const string ParameterSet_GRAPHWITHAAD = "Microsoft Graph using Azure Active Directory"; private const string SPOManagementClientId = "9bc3ab49-b65d-410a-85ad-de819febfddc"; @@ -1110,15 +1110,22 @@ private PnPConnection ConnectAadWithScope(PSCredential credentials) // If we have Office 365 scopes, get a token for those first if (officeManagementApiScopes.Length > 0) { +#if !PNPPSCORE var officeManagementApiToken = credentials == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, credentials.UserName, credentials.Password); +#else + var officeManagementApiToken = credentials == null ? OfficeManagementApiToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, PnPConnection.DeviceLoginCallback(this.Host, true)) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, credentials.UserName, credentials.Password); +#endif connection = PnPConnection.GetConnectionWithToken(officeManagementApiToken, TokenAudience.OfficeManagementApi, Host, InitializationType.InteractiveLogin, credentials, disableTelemetry: NoTelemetry.ToBool()); } // If we have Graph scopes, get a token for it if (graphScopes.Length > 0) { +#if !PNPPSCORE var graphToken = credentials == null ? GraphToken.AcquireApplicationTokenInteractive(PnPConnection.PnPManagementShellClientId, graphScopes) : GraphToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, graphScopes, credentials.UserName, credentials.Password); - +#else + var graphToken = credentials == null ? GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, graphScopes, PnPConnection.DeviceLoginCallback(this.Host, true)) : GraphToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, graphScopes, credentials.UserName, credentials.Password); +#endif // If there's a connection already, add the AAD token to it, otherwise set up a new connection with it if (connection != null) { @@ -1132,7 +1139,7 @@ private PnPConnection ConnectAadWithScope(PSCredential credentials) connection.Scopes = Scopes; return connection; #else - return null; + return null; #endif } diff --git a/Commands/Base/TokenHandling.cs b/Commands/Base/TokenHandling.cs index 2e218b574..3dcbb74cf 100644 --- a/Commands/Base/TokenHandling.cs +++ b/Commands/Base/TokenHandling.cs @@ -1,8 +1,5 @@ -using Microsoft.Extensions.Options; -using Microsoft.SharePoint.Client; -using OfficeDevPnP.Core.Utilities; +using Microsoft.SharePoint.Client; using PnP.PowerShell.Commands.Model; -using System.Text.Json; using System.Web; namespace PnP.PowerShell.Commands.Base diff --git a/Commands/Model/OfficeManagementApiToken.cs b/Commands/Model/OfficeManagementApiToken.cs index 60bfa4538..94240ee10 100644 --- a/Commands/Model/OfficeManagementApiToken.cs +++ b/Commands/Model/OfficeManagementApiToken.cs @@ -70,6 +70,11 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI return new OfficeManagementApiToken(GenericToken.AcquireApplicationTokenInteractive(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray()).AccessToken); } + public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, Action callBackAction) + { + return new GraphToken(AcquireApplicationTokenDeviceLogin(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{OAuthBaseUrl}organizations", callBackAction).AccessToken); + } + /// /// Tries to acquire a delegated Office 365 Management API Access Token for the provided scopes using the provided credentials /// From 4034828f595ef876ca9ebc9d131719a45bc5bb2a Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Mon, 20 Jul 2020 14:28:07 +0200 Subject: [PATCH 25/35] Token handling cleanup --- Commands/Model/GenericToken.cs | 10 ++++++++++ Commands/Model/GraphToken.cs | 18 ++++-------------- Commands/Model/OfficeManagementApiToken.cs | 18 ++++-------------- 3 files changed, 18 insertions(+), 28 deletions(-) diff --git a/Commands/Model/GenericToken.cs b/Commands/Model/GenericToken.cs index 3ecddbaef..1b41b7be3 100644 --- a/Commands/Model/GenericToken.cs +++ b/Commands/Model/GenericToken.cs @@ -21,6 +21,16 @@ public class GenericToken private static IPublicClientApplication publicClientApplication; private static IConfidentialClientApplication confidentialClientApplication; + /// + /// The default authority + /// + public static string BaseAuthority = "https://login.microsoftonline.com/"; + + /// + /// The name of the default scope + /// + public static string DefaultScope = ".default"; + /// /// Token which can be used to access the API /// diff --git a/Commands/Model/GraphToken.cs b/Commands/Model/GraphToken.cs index c9b60044c..87d0d50e3 100644 --- a/Commands/Model/GraphToken.cs +++ b/Commands/Model/GraphToken.cs @@ -25,16 +25,6 @@ public class GraphToken : GenericToken /// public const string ResourceIdentifier = "https://graph.microsoft.com"; - /// - /// The name of the default scope - /// - private const string DefaultScope = ".default"; - - /// - /// The base URL to request a token from - /// - private const string OAuthBaseUrl = "https://login.microsoftonline.com/"; - /// /// Instantiates a new Graph token /// @@ -53,7 +43,7 @@ public GraphToken(string accesstoken) : base(accesstoken) /// instance with the token public static GraphToken AcquireApplicationToken(string tenant, string clientId, X509Certificate2 certificate) { - return new GraphToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, certificate).AccessToken); + return new GraphToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{BaseAuthority}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, certificate).AccessToken); } /// @@ -65,7 +55,7 @@ public static GraphToken AcquireApplicationToken(string tenant, string clientId, /// instance with the token public static GraphToken AcquireApplicationToken(string tenant, string clientId, string clientSecret) { - return new GraphToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, clientSecret).AccessToken); + return new GraphToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{BaseAuthority}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, clientSecret).AccessToken); } /// @@ -85,7 +75,7 @@ public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, str // Take the remaining scopes and try requesting them from the Microsoft Graph API scopes = scopes.Except(officeManagementApiScopes).ToArray(); - return new GraphToken(AcquireApplicationTokenDeviceLogin(clientId, scopes, $"{OAuthBaseUrl}organizations", callBackAction).AccessToken); + return new GraphToken(AcquireApplicationTokenDeviceLogin(clientId, scopes, $"{BaseAuthority}organizations", callBackAction).AccessToken); } /// /// Tries to acquire a delegated Microsoft Graph Access Token for the provided scopes using the provided credentials @@ -101,7 +91,7 @@ public static GraphToken AcquireDelegatedTokenWithCredentials(string clientId, s // Take the remaining scopes and try requesting them from the Microsoft Graph API scopes = scopes.Except(officeManagementApiScopes).ToArray(); - return new GraphToken(AcquireDelegatedTokenWithCredentials(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{OAuthBaseUrl}organizations/", username, securePassword).AccessToken); + return new GraphToken(AcquireDelegatedTokenWithCredentials(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{BaseAuthority}organizations/", username, securePassword).AccessToken); } } } diff --git a/Commands/Model/OfficeManagementApiToken.cs b/Commands/Model/OfficeManagementApiToken.cs index 94240ee10..704a0a113 100644 --- a/Commands/Model/OfficeManagementApiToken.cs +++ b/Commands/Model/OfficeManagementApiToken.cs @@ -16,16 +16,6 @@ public class OfficeManagementApiToken : GenericToken /// public const string ResourceIdentifier = "https://manage.office.com"; - /// - /// The name of the default scope - /// - private const string DefaultScope = ".default"; - - /// - /// The base URL to request a token from - /// - private const string OAuthBaseUrl = "https://login.microsoftonline.com/"; - /// /// Instantiates a new Office 365 Management API token /// @@ -44,7 +34,7 @@ public OfficeManagementApiToken(string accesstoken) : base(accesstoken) /// instance with the token public static GenericToken AcquireApplicationToken(string tenant, string clientId, X509Certificate2 certificate) { - return new OfficeManagementApiToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, certificate).AccessToken); + return new OfficeManagementApiToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{BaseAuthority}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, certificate).AccessToken); } /// @@ -56,7 +46,7 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI /// instance with the token public static GenericToken AcquireApplicationToken(string tenant, string clientId, string clientSecret) { - return new OfficeManagementApiToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{OAuthBaseUrl}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, clientSecret).AccessToken); + return new OfficeManagementApiToken(GenericToken.AcquireApplicationToken(tenant, clientId, $"{BaseAuthority}{tenant}", new[] { $"{ResourceIdentifier}/{DefaultScope}" }, clientSecret).AccessToken); } /// @@ -72,7 +62,7 @@ public static GenericToken AcquireApplicationToken(string tenant, string clientI public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, string[] scopes, Action callBackAction) { - return new GraphToken(AcquireApplicationTokenDeviceLogin(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{OAuthBaseUrl}organizations", callBackAction).AccessToken); + return new GraphToken(AcquireApplicationTokenDeviceLogin(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{BaseAuthority}organizations", callBackAction).AccessToken); } /// @@ -85,7 +75,7 @@ public static GraphToken AcquireApplicationTokenDeviceLogin(string clientId, str /// instance with the token public static GenericToken AcquireDelegatedTokenWithCredentials(string clientId, string[] scopes, string username, SecureString securePassword) { - return new OfficeManagementApiToken(GenericToken.AcquireDelegatedTokenWithCredentials(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{OAuthBaseUrl}organizations/", username, securePassword).AccessToken); + return new OfficeManagementApiToken(GenericToken.AcquireDelegatedTokenWithCredentials(clientId, scopes.Select(s => $"{ResourceIdentifier}/{s}").ToArray(), $"{BaseAuthority}organizations/", username, securePassword).AccessToken); } } } From dc719d022b3d56e73fb1ac3a6d4d97fb19c2920b Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Thu, 23 Jul 2020 10:00:08 +0200 Subject: [PATCH 26/35] Added SetTeamifyPromptHidden cmdlet --- CHANGELOG.md | 2 +- Commands/PnP.PowerShell.Commands.csproj | 1 + Commands/Site/SetTeamifyPromptHidden.cs | 35 +++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Commands/Site/SetTeamifyPromptHidden.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index c5380ff28..dc6448dcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added - +- Added Set-PnPTeamifyPromptHidden to hide the teamify prompt on a group connected Team Site (modern team site) ### Contributors diff --git a/Commands/PnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj index 6549b9483..b4b76b599 100644 --- a/Commands/PnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -944,6 +944,7 @@ + diff --git a/Commands/Site/SetTeamifyPromptHidden.cs b/Commands/Site/SetTeamifyPromptHidden.cs new file mode 100644 index 000000000..7a79481df --- /dev/null +++ b/Commands/Site/SetTeamifyPromptHidden.cs @@ -0,0 +1,35 @@ +#if !ONPREMISES +using OfficeDevPnP.Core.Sites; +using PnP.PowerShell.CmdletHelpAttributes; +using System.Management.Automation; +using System.Runtime.Remoting.Contexts; + +namespace PnP.PowerShell.Commands.Site +{ + [Cmdlet(VerbsCommon.Set, "PnPTeamifyPromptHidden")] + [CmdletHelp("Hides the teamify prompt on a modern Team site.", + DetailedDescription = "This command allows to hide the teamify prompt which shows in the navigation of a newly created Microsoft 365 group connected team site.", + SupportedPlatform = CmdletSupportedPlatform.Online, + Category = CmdletHelpCategory.Sites)] + [CmdletExample( + Code = @"PS:> Set-PnPTeamifyPromptHidden", + Remarks = @"This hides the teamify prompt for the current site.", SortOrder = 1)] + public class SetTeamifyPromptHidden : PnPSharePointCmdlet + { + + protected override void ExecuteCmdlet() + { + var hidden = SiteCollection.IsTeamifyPromptHiddenAsync(ClientContext).GetAwaiter().GetResult(); + if (!hidden) + { + SiteCollection.HideTeamifyPromptAsync(ClientContext).GetAwaiter().GetResult(); + + } else + { + WriteWarning("Teamify prompt was already hidden"); + } + + } + } +} +#endif \ No newline at end of file From 71dbcf0ac30976a5cec5de90be185e825c37d610 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Fri, 24 Jul 2020 12:59:20 +0200 Subject: [PATCH 27/35] updated token retrieval callback to be async --- .../Site/ApplyProvisioningTemplate.cs | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs b/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs index 27357055e..2dee4c7d3 100644 --- a/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs +++ b/Commands/Provisioning/Site/ApplyProvisioningTemplate.cs @@ -367,30 +367,31 @@ protected override void ExecuteCmdlet() applyingInformation.ProvisionFieldsToSubWebs = ProvisionFieldsToSubWebs; #if !ONPREMISES - using (var provisioningContext = new PnPProvisioningContext((resource, scope) => - { - // Get Azure AD Token - if (PnPConnection.CurrentConnection != null) - { - var graphAccessToken = PnPConnection.CurrentConnection.TryGetAccessToken(Enums.TokenAudience.MicrosoftGraph); - if(graphAccessToken != null) - { - // Authenticated using -Graph or using another way to retrieve the accesstoken with Connect-PnPOnline - return Task.FromResult(graphAccessToken); - } - } - - if (PnPConnection.CurrentConnection.PSCredential != null) - { - // Using normal credentials - return Task.FromResult(TokenHandler.AcquireToken(resource, null)); - } - else - { - // No token... - return null; - } - })) + using (var provisioningContext = new PnPProvisioningContext(async (resource, scope) => + { + // Get Azure AD Token + if (PnPConnection.CurrentConnection != null) + { + var graphAccessToken = PnPConnection.CurrentConnection.TryGetAccessToken(Enums.TokenAudience.MicrosoftGraph); + if (graphAccessToken != null) + { + // Authenticated using -Graph or using another way to retrieve the accesstoken with Connect-PnPOnline + return await Task.FromResult(graphAccessToken); + + } + } + + if (PnPConnection.CurrentConnection.PSCredential != null) + { + // Using normal credentials + return await Task.FromResult(TokenHandler.AcquireToken(resource, null)); + } + else + { + // No token... + return await Task.FromResult(null); + } + })) { #endif SelectedWeb.ApplyProvisioningTemplate(provisioningTemplate, applyingInformation); From 663df018b8a127a3f3237d477c0b56abfdb14b04 Mon Sep 17 00:00:00 2001 From: Mikael Svenson Date: Tue, 4 Aug 2020 11:11:12 +0200 Subject: [PATCH 28/35] Updated Get/Set-PnPSearchSettings to set search placeholder text for the SPO nav bar search box --- CHANGELOG.md | 2 +- Commands/Search/GetSearchSettings.cs | 6 +++-- Commands/Search/SetSearchSettings.cs | 37 ++++++++++++++++++++++++++-- 3 files changed, 40 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5380ff28..b489d1f57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Added - +- Updated `Get/Set-PnPSearchSettings` with an option `-SearchBoxPlaceholderText` to set search placeholder text for the SPO nav bar search box ### Contributors diff --git a/Commands/Search/GetSearchSettings.cs b/Commands/Search/GetSearchSettings.cs index fbbe53575..cfe96c6d2 100644 --- a/Commands/Search/GetSearchSettings.cs +++ b/Commands/Search/GetSearchSettings.cs @@ -17,8 +17,8 @@ public class GetSearchSettings : PnPWebCmdlet { protected override void ExecuteCmdlet() { - ClientContext.Web.EnsureProperties(w => w.SearchScope, w => w.SearchBoxInNavBar); - ClientContext.Site.EnsureProperty(s => s.SearchBoxInNavBar); + ClientContext.Web.EnsureProperties(w => w.SearchScope, w => w.SearchBoxInNavBar, w => w.SearchBoxPlaceholderText); + ClientContext.Site.EnsureProperties(s => s.SearchBoxInNavBar, s => s.SearchBoxPlaceholderText); string siteUrl = ClientContext.Web.GetSiteCollectionSearchCenterUrl(); string webUrl = ClientContext.Web.GetWebSearchCenterUrl(urlOnly: true); @@ -29,6 +29,8 @@ protected override void ExecuteCmdlet() res.Properties.Add(new PSNoteProperty("Site Search Scope", ClientContext.Web.SearchScope)); res.Properties.Add(new PSNoteProperty("Site collection search box visibility", ClientContext.Site.SearchBoxInNavBar)); res.Properties.Add(new PSNoteProperty("Site search box visibility", ClientContext.Web.SearchBoxInNavBar)); + res.Properties.Add(new PSNoteProperty("Site collection search box placeholder text", ClientContext.Site.SearchBoxPlaceholderText)); + res.Properties.Add(new PSNoteProperty("Site search box placeholder text", ClientContext.Web.SearchBoxPlaceholderText)); WriteObject(res); } } diff --git a/Commands/Search/SetSearchSettings.cs b/Commands/Search/SetSearchSettings.cs index cfdbb5ca2..c728c7dce 100644 --- a/Commands/Search/SetSearchSettings.cs +++ b/Commands/Search/SetSearchSettings.cs @@ -36,15 +36,30 @@ namespace PnP.PowerShell.Commands.Search Remarks = "Redirect classic search to a custom URL", SortOrder = 5)] + [CmdletExample( + Code = @"PS:> Set-PnPSearchSettings -SearchBoxPlaceholderText ""Search for contracts""", + Remarks = "Set a custom placeholder text in the search box for the site", + SortOrder = 6)] + + [CmdletExample( + Code = @"PS:> Set-PnPSearchSettings -SearchBoxPlaceholderText """"", + Remarks = "Clear the custom placeholder text in the search box and revert to the default text", + SortOrder = 7)] + + [CmdletExample( + Code = @"PS:> Set-PnPSearchSettings -SearchBoxPlaceholderText ""Search for contracts"" -Scope Site", + Remarks = "Set a custom placeholder text in the search box for the site collection", + SortOrder = 8)] + [CmdletExample( Code = @"PS:> Set-PnPSearchSettings -SearchScope Tenant", Remarks = "Set default behavior of the suite bar search box to show tenant wide results instead of site or hub scoped results", - SortOrder = 6)] + SortOrder = 9)] [CmdletExample( Code = @"PS:> Set-PnPSearchSettings -SearchScope Hub", Remarks = "Set default behavior of the suite bar search box to show hub results instead of site results on an associated hub site", - SortOrder = 7)] + SortOrder = 10)] public class SetSearchSettings : PnPWebCmdlet { @@ -56,6 +71,10 @@ public class SetSearchSettings : PnPWebCmdlet HelpMessage = "Set the URL where the search box should redirect to.")] public string SearchPageUrl; + [Parameter(Mandatory = false, ParameterSetName = ParameterAttribute.AllParameterSets, + HelpMessage = "Set the text to show in the search box.")] + public string SearchBoxPlaceholderText; + [Parameter(Mandatory = false, ParameterSetName = ParameterAttribute.AllParameterSets, HelpMessage = "Set the search scope of the suite bar search box. Possible values: DefaultScope, Tenant, Hub, Site")] public SearchScopeType? SearchScope; @@ -74,6 +93,12 @@ protected override void ExecuteCmdlet() SearchPageUrl = string.Empty; } + bool hasSearchPlaceholderText = ParameterSpecified(nameof(SearchBoxPlaceholderText)); + if (hasSearchPlaceholderText && SearchBoxPlaceholderText == null) + { + SearchBoxPlaceholderText = string.Empty; + } + if (!Force && SearchBoxInNavBar.HasValue && SearchBoxInNavBar.Value == SearchBoxInNavBarType.Hidden) { var url = ClientContext.Url; @@ -109,6 +134,10 @@ protected override void ExecuteCmdlet() { ClientContext.Web.SetSiteCollectionSearchCenterUrl(SearchPageUrl); } + if (hasSearchPlaceholderText) + { + ClientContext.Site.SetSearchBoxPlaceholderText(SearchBoxPlaceholderText); + } if (SearchScope.HasValue && ClientContext.Site.RootWeb.SearchScope != SearchScope.Value) { ClientContext.Site.RootWeb.SearchScope = SearchScope.Value; @@ -125,6 +154,10 @@ protected override void ExecuteCmdlet() { ClientContext.Web.SetWebSearchCenterUrl(SearchPageUrl); } + if (hasSearchPlaceholderText) + { + ClientContext.Web.SetSearchBoxPlaceholderText(SearchBoxPlaceholderText); + } if (SearchScope.HasValue && ClientContext.Web.SearchScope != SearchScope.Value) { ClientContext.Web.SearchScope = SearchScope.Value; From cd957565eb114e51be3f8fea04702cc934818f42 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 4 Aug 2020 17:15:55 +0200 Subject: [PATCH 29/35] Reverted packagename to SharePointPnPPowerShell[version] --- .../ModuleManifestGenerator.cs | 2 +- PostBuild.ps1 | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ModuleFilesGenerator/ModuleManifestGenerator.cs b/ModuleFilesGenerator/ModuleManifestGenerator.cs index 58344fdc8..f58e88ba1 100644 --- a/ModuleFilesGenerator/ModuleManifestGenerator.cs +++ b/ModuleFilesGenerator/ModuleManifestGenerator.cs @@ -68,7 +68,7 @@ internal void Generate() } // Create Module Manifest - var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\PnPPowerShell{spVersion}.psd1"; + var psd1Path = $"{new FileInfo(_assemblyPath).Directory}\\ModuleFiles\\SharePointPnPPowerShell{spVersion}.psd1"; var cmdletsToExportString = string.Join(",", _cmdlets.Select(c => "'" + c.FullCommand + "'")); string aliasesToExportString = null; diff --git a/PostBuild.ps1 b/PostBuild.ps1 index bf6c80314..2bd740c04 100644 --- a/PostBuild.ps1 +++ b/PostBuild.ps1 @@ -9,15 +9,15 @@ if($ConfigurationName -like "Debug*") } else { if($ConfigurationName -like "Debug15") { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2013" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2013" } elseif($ConfigurationName -like "Debug16") { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2016" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2016" } elseif($ConfigurationName -like "Debug19") { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2019" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2019" } else { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShellOnline" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShellOnline" } } # Module folder there? @@ -42,19 +42,19 @@ if($ConfigurationName -like "Debug*") switch($ConfigurationName) { "Debug15" { - Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2013.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2013.psd1" -Destination "$DestinationFolder" Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2013.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Debug16" { - Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2016.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2016.psd1" -Destination "$DestinationFolder" Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2016.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Debug19" { - Copy-Item "$TargetDir\ModuleFiles\PnPPowerShell2019.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShell2019.psd1" -Destination "$DestinationFolder" Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.2019.Commands.Format.ps1xml" -Destination "$DestinationFolder" } "Debug" { - Copy-Item "$TargetDir\ModuleFiles\PnPPowerShellOnline.psd1" -Destination "$DestinationFolder" + Copy-Item "$TargetDir\ModuleFiles\SharePointPnPPowerShellOnline.psd1" -Destination "$DestinationFolder" Copy-Item "$TargetDir\ModuleFiles\PnP.PowerShell.Online.Commands.Format.ps1xml" -Destination "$DestinationFolder" } } @@ -75,19 +75,19 @@ if($ConfigurationName -like "Debug*") { "Release15" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2013" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2013" } "Release16" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2016" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2016" } "Release19" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShell2019" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShell2019" } "Release" { - $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\PnPPowerShellOnline" + $DestinationFolder = "$documentsFolder\WindowsPowerShell\Modules\SharePointPnPPowerShellOnline" } } } From 2f6b3191e7a0d509bd8f75e9f14e09e23cf0ce09 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Tue, 4 Aug 2020 17:18:39 +0200 Subject: [PATCH 30/35] August cleanup --- CHANGELOG.md | 9 +- Commands/Base/AsyncCmdlet.cs | 476 ---------------------- Commands/Base/ConnectOnline.cs | 35 +- Commands/Base/PnPAdminCmdlet.cs | 18 +- Commands/Base/PnPConnectionHelper.cs | 46 ++- Commands/Model/GenericToken.cs | 6 - Commands/PnP.PowerShell.Commands.csproj | 6 +- Commands/Properties/Resources.Designer.cs | 2 +- Commands/Properties/Resources.resx | 2 +- Commands/Taxonomy/SetTermGroup.cs | 112 +++++ Commands/Taxonomy/SetTermSet.cs | 279 +++++++++++++ Commands/Utilities/BrowserHelper.cs | 3 +- Commands/Utilities/TeamsUtility.cs | 1 - Commands/packages.config | 2 +- 14 files changed, 472 insertions(+), 525 deletions(-) delete mode 100644 Commands/Base/AsyncCmdlet.cs create mode 100644 Commands/Taxonomy/SetTermGroup.cs create mode 100644 Commands/Taxonomy/SetTermSet.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index dc6448dcd..ebc762533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,14 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## [3.24.2008.0] not yet released - -### Changed - +## [3.24.2008.0] ### Added +- Added Set-PnPTermGroup cmdlet to update an existing taxonomy term group. - Added Set-PnPTeamifyPromptHidden to hide the teamify prompt on a group connected Team Site (modern team site) +### Changed +- Changed the client id of the application used behind the scenes when authenticating to a tenant where Legacy Authentication has been turned off. We now by default utilize the PnP Management Shell application. If you have not provided consent you will be prompted with a message on how to provide consent. + ### Contributors diff --git a/Commands/Base/AsyncCmdlet.cs b/Commands/Base/AsyncCmdlet.cs deleted file mode 100644 index 8a2e06c88..000000000 --- a/Commands/Base/AsyncCmdlet.cs +++ /dev/null @@ -1,476 +0,0 @@ -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Management.Automation; -using System.Text; -using System.Threading; -using System.Threading.Tasks; - -namespace PnP.PowerShell.Commands.Base -{ - public abstract class AsyncCmdlet : PSCmdlet - { - protected int BoundedCapacity { get; set; } - - protected AsyncCmdlet(int boundedCapacity = 50) - { - this.BoundedCapacity = Math.Max(1, boundedCapacity); - } - - #region sealed overrides - protected sealed override void BeginProcessing() - { - AsyncCmdletSynchronizationContext.Async(BeginProcessingAsync, BoundedCapacity); - } - - protected sealed override void ProcessRecord() - { - AsyncCmdletSynchronizationContext.Async(ProcessRecordAsync, BoundedCapacity); - } - - protected sealed override void EndProcessing() - { - AsyncCmdletSynchronizationContext.Async(EndProcessingAsync, BoundedCapacity); - } - - protected sealed override void StopProcessing() - { - AsyncCmdletSynchronizationContext.Async(StopProcessingAsync, BoundedCapacity); - } - - #endregion sealed overrides - - #region intercepted methods - public new void WriteDebug(string text) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteDebug, text)); - } - - public new void WriteError(ErrorRecord errorRecord) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteError, errorRecord)); - } - - public new void WriteObject(object sendToPipeline) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteObject, sendToPipeline)); - } - - public new void WriteObject(object sendToPipeline, bool enumerateCollection) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteObject, sendToPipeline, enumerateCollection)); - } - - public new void WriteProgress(ProgressRecord progressRecord) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteProgress, progressRecord)); - } - - public new void WriteVerbose(string text) - { - var workItem = new MarshalItemAction(base.WriteVerbose, text); - AsyncCmdletSynchronizationContext.PostItem(workItem); - } - - public new void WriteWarning(string text) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteWarning, text)); - } - - public new void WriteCommandDetail(string text) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.WriteCommandDetail, text)); - } - - public new bool ShouldProcess(string target) - { - var workItem = new MarshalItemFunc(base.ShouldProcess, target); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(); - } - - public new bool ShouldProcess(string target, string action) - { - var workItem = new MarshalItemFunc(base.ShouldProcess, target, action); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(); - } - - public new bool ShouldProcess(string verboseDescription, string verboseWarning, string caption) - { - var workItem = new MarshalItemFunc(base.ShouldProcess, verboseDescription, - verboseWarning, caption); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(); - } - - public new bool ShouldProcess(string verboseDescription, string verboseWarning, string caption, - out ShouldProcessReason shouldProcessReason) - { - var workItem = new MarshalItemFuncOut( - base.ShouldProcess, verboseDescription, verboseWarning, caption); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(out shouldProcessReason); - } - - public new bool ShouldContinue(string query, string caption) - { - var workItem = new MarshalItemFunc(base.ShouldContinue, query, caption); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(); - } - - public new bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll) - { - var workItem = new MarshalItemFuncRef(base.ShouldContinue, query, caption, - yesToAll, noToAll); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(ref yesToAll, ref noToAll); - } - - public new bool TransactionAvailable() - { - var workItem = new MarshalItemFunc(base.TransactionAvailable); - AsyncCmdletSynchronizationContext.PostItem(workItem); - return workItem.WaitForResult(); - } - - public new void ThrowTerminatingError(ErrorRecord errorRecord) - { - AsyncCmdletSynchronizationContext.PostItem(new MarshalItemAction(base.ThrowTerminatingError, errorRecord)); - } - - #endregion - - #region async processing methods - - protected virtual Task BeginProcessingAsync() - { - return Task.FromResult(0); - } - - - protected virtual Task EndProcessingAsync() - { - return Task.FromResult(0); - } - - - protected virtual Task ProcessRecordAsync() - { - return Task.FromResult(0); - } - - - protected virtual Task StopProcessingAsync() - { - return Task.FromResult(0); - } - - #endregion async processing methods - - private class AsyncCmdletSynchronizationContext : SynchronizationContext, IDisposable - { - private BlockingCollection workItems; - private static AsyncCmdletSynchronizationContext currentAsyncCmdletContext; - - private AsyncCmdletSynchronizationContext(int boundedCapacity) - { - this.workItems = new BlockingCollection(boundedCapacity); - } - - public static void Async(Func handler, int boundedCapacity) - { - var previousContext = SynchronizationContext.Current; - - try - { - using (var synchronizationContext = new AsyncCmdletSynchronizationContext(boundedCapacity)) - { - SetSynchronizationContext(synchronizationContext); - currentAsyncCmdletContext = synchronizationContext; - - var task = handler(); - if (task == null) - { - return; - } - - var waitable = task.ContinueWith(t => synchronizationContext.Complete(), scheduler: TaskScheduler.Default); - - synchronizationContext.ProcessQueue(); - - waitable.GetAwaiter().GetResult(); - } - } - finally - { - SetSynchronizationContext(previousContext); - currentAsyncCmdletContext = previousContext as AsyncCmdletSynchronizationContext; - } - } - - internal static void PostItem(MarshalItem item) - { - currentAsyncCmdletContext.Post(item); - } - - public void Dispose() - { - if (this.workItems != null) - { - this.workItems.Dispose(); - this.workItems = null; - } - } - - private void EnsureNotDisposed() - { - if (this.workItems == null) - { - throw new ObjectDisposedException(nameof(AsyncCmdletSynchronizationContext)); - } - } - - private void Complete() - { - EnsureNotDisposed(); - - this.workItems.CompleteAdding(); - } - - private void ProcessQueue() - { - MarshalItem workItem; - while (this.workItems.TryTake(out workItem, Timeout.Infinite)) - { - workItem.Invoke(); - } - } - - public override void Post(SendOrPostCallback callback, object state) - { - if (callback == null) - { - throw new ArgumentNullException(nameof(callback)); - } - - Post(new MarshalItemAction(s => callback(s), state)); - } - - private void Post(MarshalItem item) - { - EnsureNotDisposed(); - - this.workItems.Add(item); - } - } - - #region items - internal abstract class MarshalItem - { - internal abstract void Invoke(); - } - - abstract class MarshalItemFuncBase : MarshalItem - { - private TRet retVal; - private readonly Task retValTask; - - protected MarshalItemFuncBase() - { - this.retValTask = new Task(() => this.retVal); - } - - internal sealed override void Invoke() - { - this.retVal = this.InvokeFunc(); - this.retValTask.Start(); - } - - internal TRet WaitForResult() - { - this.retValTask.Wait(); - return this.retValTask.Result; - } - - internal abstract TRet InvokeFunc(); - } - class MarshalItemAction : MarshalItem - { - private readonly Action action; - private readonly T arg1; - - internal MarshalItemAction(Action action, T arg1) - { - this.action = action; - this.arg1 = arg1; - } - - internal override void Invoke() - { - this.action(this.arg1); - } - } - class MarshalItemAction : MarshalItem - { - private readonly Action action; - private readonly T1 arg1; - private readonly T2 arg2; - - internal MarshalItemAction(Action action, T1 arg1, T2 arg2) - { - this.action = action; - this.arg1 = arg1; - this.arg2 = arg2; - } - - internal override void Invoke() - { - this.action(this.arg1, this.arg2); - } - } - class MarshalItemFunc : MarshalItemFuncBase - { - private readonly Func func; - - internal MarshalItemFunc(Func func) - { - this.func = func; - } - - internal override TRet InvokeFunc() - { - return this.func(); - } - } - class MarshalItemFunc : MarshalItemFuncBase - { - private readonly Func func; - private readonly T1 arg1; - - internal MarshalItemFunc(Func func, T1 arg1) - { - this.func = func; - this.arg1 = arg1; - } - - internal override TRet InvokeFunc() - { - return this.func(this.arg1); - } - } - class MarshalItemFunc : MarshalItemFuncBase - { - private readonly Func func; - private readonly T1 arg1; - private readonly T2 arg2; - - internal MarshalItemFunc(Func func, T1 arg1, T2 arg2) - { - this.func = func; - this.arg1 = arg1; - this.arg2 = arg2; - } - - internal override TRet InvokeFunc() - { - return this.func(this.arg1, this.arg2); - } - } - class MarshalItemFunc : MarshalItemFuncBase - { - private readonly Func func; - private readonly T1 arg1; - private readonly T2 arg2; - private readonly T3 arg3; - - internal MarshalItemFunc(Func func, T1 arg1, T2 arg2, T3 arg3) - { - this.func = func; - this.arg1 = arg1; - this.arg2 = arg2; - this.arg3 = arg3; - } - - internal override TRet InvokeFunc() - { - return this.func(this.arg1, this.arg2, this.arg3); - } - } - class MarshalItemFuncOut : MarshalItem - { - private readonly FuncOut func; - private readonly T1 arg1; - private readonly T2 arg2; - private readonly T3 arg3; - - internal delegate TRet FuncOut(T1 t1, T2 t2, T3 t3, out TOut tout); - - private TRet retVal; - private TOut outVal; - private readonly Task retValTask; - - internal MarshalItemFuncOut(FuncOut func, T1 arg1, T2 arg2, T3 arg3) - { - this.func = func; - this.arg1 = arg1; - this.arg2 = arg2; - this.arg3 = arg3; - this.retValTask = new Task(() => this.retVal); - } - - internal override void Invoke() - { - this.retVal = this.func(this.arg1, this.arg2, this.arg3, out this.outVal); - this.retValTask.Start(); - } - - internal TRet WaitForResult(out TOut val) - { - this.retValTask.Wait(); - val = this.outVal; - return this.retValTask.Result; - } - } - class MarshalItemFuncRef : MarshalItem - { - internal delegate TRet FuncRef(T1 t1, T2 t2, ref TRef1 tref1, ref TRef2 tref2); - - private readonly Task retValTask; - private readonly FuncRef func; - private readonly T1 arg1; - private readonly T2 arg2; - private TRef1 arg3; - private TRef2 arg4; - private TRet retVal; - - internal MarshalItemFuncRef(FuncRef func, T1 arg1, T2 arg2, TRef1 arg3, TRef2 arg4) - { - this.func = func; - this.arg1 = arg1; - this.arg2 = arg2; - this.arg3 = arg3; - this.arg4 = arg4; - this.retValTask = new Task(() => this.retVal); - } - - internal override void Invoke() - { - this.retVal = this.func(this.arg1, this.arg2, ref this.arg3, ref this.arg4); - this.retValTask.Start(); - } - - // ReSharper disable RedundantAssignment - internal TRet WaitForResult(ref TRef1 ref1, ref TRef2 ref2) - { - this.retValTask.Wait(); - ref1 = this.arg3; - ref2 = this.arg4; - return this.retValTask.Result; - } - // ReSharper restore RedundantAssignment - } - #endregion items - } -} diff --git a/Commands/Base/ConnectOnline.cs b/Commands/Base/ConnectOnline.cs index 29902f72e..ead680a5e 100644 --- a/Commands/Base/ConnectOnline.cs +++ b/Commands/Base/ConnectOnline.cs @@ -19,6 +19,7 @@ using PnP.PowerShell.Commands.Model; using Resources = PnP.PowerShell.Commands.Properties.Resources; using System.Collections.Generic; +using OfficeDevPnP.Core.Utilities; #if !PNPPSCORE using System.Security.Cryptography; #endif @@ -888,29 +889,8 @@ private PnPConnection ConnectDeviceLogin() { Url += "/"; } - var connection = PnPConnectionHelper.InstantiateDeviceLoginConnection(Url, LaunchBrowser, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, (message) => - { - WriteWarning(message); - }, - (progress) => - { - Host.UI.Write(progress); - }, - () => - { - if (Host.Name == "ConsoleHost") - { - if (Console.KeyAvailable) - { - var cki = Console.ReadKey(true); - if (cki.Key == ConsoleKey.C && cki.Modifiers == ConsoleModifiers.Control) - { - return true; - } - } - } - return false; - }, Host, NoTelemetry); + var connection = PnPConnectionHelper.InstantiateDeviceLoginConnection(Url, LaunchBrowser, MinimalHealthScore, RetryCount, RetryWait, RequestTimeout, TenantAdminUrl, Host, NoTelemetry); + if (Host.Name == "ConsoleHost") { Console.TreatControlCAsInput = ctrlCAsInput; @@ -1111,6 +1091,15 @@ private PnPConnection ConnectAadWithScope(PSCredential credentials) if (officeManagementApiScopes.Length > 0) { #if !PNPPSCORE + //if (credentials == null) + //{ + // TokenManager.InitializeAsync(TokenManager.CLIENTID_PNPMANAGEMENTSHELL, officeManagementApiScopes.Select(s => $"https://manage.office.com/{s}").ToArray(), cacheIdentifierName: "OfficeManagementApi").GetAwaiter().GetResult(); + //} + //else + //{ + // TokenManager.InitializeAsync(TokenManager.CLIENTID_PNPMANAGEMENTSHELL, officeManagementApiScopes.Select(s => $"https://manage.office.com/{s}").ToArray(), credentials.UserName, credentials.Password, cacheIdentifierName: "OfficeManagementApi").GetAwaiter().GetResult(); + //} + var officeManagementApiToken = credentials == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, credentials.UserName, credentials.Password); #else var officeManagementApiToken = credentials == null ? OfficeManagementApiToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, PnPConnection.DeviceLoginCallback(this.Host, true)) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, officeManagementApiScopes, credentials.UserName, credentials.Password); diff --git a/Commands/Base/PnPAdminCmdlet.cs b/Commands/Base/PnPAdminCmdlet.cs index a8588caeb..d754abd71 100644 --- a/Commands/Base/PnPAdminCmdlet.cs +++ b/Commands/Base/PnPAdminCmdlet.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using System.Management.Automation; using Microsoft.Online.SharePoint.TenantAdministration; using Microsoft.SharePoint.Client; using PnP.PowerShell.Commands.Enums; @@ -39,6 +40,7 @@ protected override void BeginProcessing() throw new InvalidOperationException(Resources.NoSharePointConnection); } + PnPConnection.CurrentConnection.CacheContext(); if (PnPConnection.CurrentConnection.TenantAdminUrl != null && @@ -57,6 +59,7 @@ protected override void BeginProcessing() { _baseUri = new Uri($"{uri.Scheme}://{uri.Authority}"); } + IsDeviceLogin(PnPConnection.CurrentConnection.TenantAdminUrl); PnPConnection.CurrentConnection.CloneContext(PnPConnection.CurrentConnection.TenantAdminUrl); } else @@ -69,7 +72,7 @@ protected override void BeginProcessing() _baseUri = new Uri($"{uri.Scheme}://{uri.Authority}"); var adminUrl = $"https://{uriParts[0]}-admin.{string.Join(".", uriParts.Skip(1))}"; - + IsDeviceLogin(adminUrl); PnPConnection.CurrentConnection.Context = PnPConnection.CurrentConnection.CloneContext(adminUrl); } @@ -77,12 +80,23 @@ protected override void BeginProcessing() { _baseUri = new Uri( - $"{uri.Scheme}://{uriParts[0].ToLower().Replace("-admin", "")}{(uriParts.Length > 1 ? $".{string.Join(".", uriParts.Skip(1))}" : string.Empty )}{(!uri.IsDefaultPort ? ":" + uri.Port : "")}"); + $"{uri.Scheme}://{uriParts[0].ToLower().Replace("-admin", "")}{(uriParts.Length > 1 ? $".{string.Join(".", uriParts.Skip(1))}" : string.Empty)}{(!uri.IsDefaultPort ? ":" + uri.Port : "")}"); } } } + private void IsDeviceLogin(string tenantAdminUrl) + { + if (PnPConnection.CurrentConnection.ConnectionMethod == Model.ConnectionMethod.DeviceLogin) + { + if (tenantAdminUrl != PnPConnection.CurrentConnection.Url) + { + throw new PSInvalidOperationException($"You used a device login connection to authenticate to SharePoint. We do not support automatically switching context to the tenant administration site which is required to execute this cmdlet. Please use Connect-PnPOnline and connect to '{tenantAdminUrl}' with the appropriate connection parameters"); + } + } + } + protected override void EndProcessing() { base.EndProcessing(); diff --git a/Commands/Base/PnPConnectionHelper.cs b/Commands/Base/PnPConnectionHelper.cs index bbfc1aab6..4c7243a5e 100644 --- a/Commands/Base/PnPConnectionHelper.cs +++ b/Commands/Base/PnPConnectionHelper.cs @@ -150,14 +150,26 @@ private static PnPConnection InstantiateHighTrustConnection(ClientContext contex #endif #endif - internal static PnPConnection InstantiateDeviceLoginConnection(string url, bool launchBrowser, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, Action messageCallback, Action progressCallback, Func cancelRequest, PSHost host, bool disableTelemetry) + internal static PnPConnection InstantiateDeviceLoginConnection(string url, bool launchBrowser, int minimalHealthScore, int retryCount, int retryWait, int requestTimeout, string tenantAdminUrl, PSHost host, bool disableTelemetry) { var connectionUri = new Uri(url); - var scopes = new[] { $"{connectionUri.Scheme}://{connectionUri.Host}//.default" }; // the second double slash is not a typo. + var scopes = new[] { $"{connectionUri.Scheme}://{connectionUri.Authority}//.default" }; // the second double slash is not a typo. var context = new ClientContext(url); - - var tokenResult = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, scopes, PnPConnection.DeviceLoginCallback(host, launchBrowser)); + GenericToken tokenResult = null; + try + { + tokenResult = GraphToken.AcquireApplicationTokenDeviceLogin(PnPConnection.PnPManagementShellClientId, scopes, PnPConnection.DeviceLoginCallback(host, launchBrowser)); + } + catch (MsalUiRequiredException ex) + { + if (ex.Classification == UiRequiredExceptionClassification.ConsentRequired) + { + host.UI.WriteLine("You need to provide consent to the PnP Management Shell application for your tenant. The easiest way to do this is by issueing: 'Connect-PnPOnline -Url [yoursiteur] -PnPManagementShell -LaunchBrowser'. Make sure to authenticate as a Azure administrator allowing to provide consent to the application. Follow the steps provided."); + throw ex; + } + } var spoConnection = new PnPConnection(context, tokenResult, ConnectionType.O365, minimalHealthScore, retryCount, retryWait, null, url.ToString(), tenantAdminUrl, PnPPSVersionTag, host, disableTelemetry, InitializationType.DeviceLogin); + //var spoConnection = new PnPConnection(context, ConnectionType.O365, url.ToString(), tenantAdminUrl, PnPPSVersionTag, host, disableTelemetry, InitializationType.DeviceLogin); spoConnection.Scopes = scopes; if (spoConnection != null) @@ -581,11 +593,31 @@ internal static PnPConnection InstantiateSPOnlineConnection(Uri url, PSCredentia catch (NotSupportedException) { // legacy auth? - using (var authManager = new OfficeDevPnP.Core.AuthenticationManager()) + // acquire a token through the credential flow + var scopes = new[] { $"{url.Scheme}://{url.Authority}//.default" }; + try + { + var genericToken = GenericToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, scopes, $"{GenericToken.BaseAuthority}organizations/", credentials.UserName, credentials.Password); + context.ExecutingWebRequest += (sender, args) => + { + var accessToken = GenericToken.AcquireDelegatedTokenWithCredentials(PnPConnection.PnPManagementShellClientId, scopes, $"{GenericToken.BaseAuthority}organizations/", credentials.UserName, credentials.Password).AccessToken; + args.WebRequestExecutor.RequestHeaders["Authorization"] = "Bearer " + accessToken; + }; + context.Credentials = null; + } + catch (MsalUiRequiredException ex) { - context = PnPClientContext.ConvertFrom(authManager.GetAzureADCredentialsContext(url.ToString(), credentials.UserName, credentials.Password)); - context.ExecuteQueryRetry(); + if (ex.Classification == UiRequiredExceptionClassification.ConsentRequired) + { + host.UI.WriteLine("You need to provide consent to the PnP Management Shell application for your tenant. The easiest way to do this is by issueing: 'Connect-PnPOnline -Url [yoursiteur] -PnPManagementShell -LaunchBrowser'. Make sure to authenticate as an user with appropriate access rights to to provide consent to the application. Follow the steps provided."); + throw ex; + } } + //using (var authManager = new OfficeDevPnP.Core.AuthenticationManager()) + //{ + // context = PnPClientContext.ConvertFrom(authManager.GetAzureADCredentialsContext(url.ToString(), credentials.UserName, credentials.Password, AzureEnvironment.Production, KnownClientId.PnPManagementShell)); + // context.ExecuteQueryRetry(); + //} } #endif catch (ClientRequestException) diff --git a/Commands/Model/GenericToken.cs b/Commands/Model/GenericToken.cs index 1b41b7be3..997f3cf39 100644 --- a/Commands/Model/GenericToken.cs +++ b/Commands/Model/GenericToken.cs @@ -278,12 +278,6 @@ public static GenericToken AcquireApplicationTokenDeviceLogin(string clientId, s throw new ArgumentNullException(nameof(scopes)); } - - if (publicClientApplication == null) - { - publicClientApplication = PublicClientApplicationBuilder.Create(clientId).Build(); - } - AuthenticationResult tokenResult = null; if (publicClientApplication == null) diff --git a/Commands/PnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj index b4b76b599..a86bc9ef1 100644 --- a/Commands/PnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -459,8 +459,8 @@ ..\packages\Microsoft.Graph.Core.1.9.0\lib\net45\Microsoft.Graph.Core.dll - - ..\packages\Microsoft.Identity.Client.4.16.1\lib\net45\Microsoft.Identity.Client.dll + + ..\packages\Microsoft.Identity.Client.4.17.0\lib\net461\Microsoft.Identity.Client.dll ..\packages\Microsoft.IdentityModel.6.1.7600.16394\lib\net35\Microsoft.IdentityModel.dll @@ -953,6 +953,8 @@ + + diff --git a/Commands/Properties/Resources.Designer.cs b/Commands/Properties/Resources.Designer.cs index 181cac469..b726b5991 100644 --- a/Commands/Properties/Resources.Designer.cs +++ b/Commands/Properties/Resources.Designer.cs @@ -386,7 +386,7 @@ internal static string NoContextPresent { } /// - /// Looks up a localized string similar to The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument but not -SPOManagementShell or -PnPOManagementShell to connect.. + /// Looks up a localized string similar to The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect.. /// internal static string NoSharePointConnection { get { diff --git a/Commands/Properties/Resources.resx b/Commands/Properties/Resources.resx index 5b6829372..9a7e4fe6a 100644 --- a/Commands/Properties/Resources.resx +++ b/Commands/Properties/Resources.resx @@ -151,7 +151,7 @@ No list found with id, title or url '{0}' - The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument but not -SPOManagementShell or -PnPOManagementShell to connect. + The current connection holds no SharePoint context. Please use one of the Connect-PnPOnline commands which uses the -Url argument to connect. No connection to disconnect diff --git a/Commands/Taxonomy/SetTermGroup.cs b/Commands/Taxonomy/SetTermGroup.cs new file mode 100644 index 000000000..8b22b1fcd --- /dev/null +++ b/Commands/Taxonomy/SetTermGroup.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq.Expressions; +using System.Management.Automation; +using System.Security.Cryptography; +using Microsoft.SharePoint.Client; +using Microsoft.SharePoint.Client.Taxonomy; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; + +namespace PnP.PowerShell.Commands.Taxonomy +{ + [Cmdlet(VerbsCommon.Set, "PnPTermGroup", SupportsShouldProcess = false)] + [CmdletHelp(@"Updates a taxonomy Term Group", + Category = CmdletHelpCategory.Taxonomy, + OutputType = typeof(TermGroup), + OutputTypeLink = "https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.taxonomy.termgroup.aspx")] + [CmdletExample( + Code = @"PS:> Set-PnPTermGroup -Identity ""My TermGroup"" -Name ""My New TermGroup Name""", + Remarks = @"Changes the name of the specified ermgroup to 'My New TermGroup Name'", + SortOrder = 0)] + [CmdletExample( + Code = @"PS:> Set-PnPTermGroup -Identity ab2af486-e097-4b4a-9444-527b251f1f8d -Name ""My New TermGroup Name""", + Remarks = @"Changes the name of the specified ermgroup to 'My New TermGroup Name'", + SortOrder = 2)] + public class SetTermGroup : PnPSharePointCmdlet + { + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0, HelpMessage = "Name of the taxonomy term group to retrieve.")] + public TaxonomyItemPipeBind Identity; + + [Parameter(Mandatory = false, HelpMessage = "Term store to check; if not specified the default term store is used.")] + public GenericObjectNameIdPipeBind TermStore; + + [Parameter(Mandatory = false)] + public string Name { get; set; } + + [Parameter(Mandatory = false)] + public string Description { get; set; } + + protected override void ExecuteCmdlet() + { + var taxonomySession = TaxonomySession.GetTaxonomySession(ClientContext); + // Get Term Store + TermStore termStore = null; + if (TermStore == null) + { + termStore = taxonomySession.GetDefaultSiteCollectionTermStore(); + } + else + { + if (TermStore.StringValue != null) + { + termStore = taxonomySession.TermStores.GetByName(TermStore.StringValue); + } + else if (TermStore.IdValue != Guid.Empty) + { + termStore = taxonomySession.TermStores.GetById(TermStore.IdValue); + } + else + { + if (TermStore.Item != null) + { + termStore = TermStore.Item; + } + } + } + // Get Group + if (termStore != null) + { + TermGroup group = null; + if (Identity.Id != Guid.Empty) + { + group = termStore.Groups.GetById(Identity.Id); + } + else + { + group = termStore.Groups.GetByName(Identity.Title); + } + ClientContext.Load(group); + ClientContext.ExecuteQueryRetry(); + + if (group.ServerObjectIsNull.Value != false) + { + bool updateRequired = false; + if(ParameterSpecified(nameof(Name))) + { + group.Name = Name; + updateRequired = true; + } + if(ParameterSpecified(nameof(Description))) + { + group.Description = Description; + updateRequired = true; + } + if(updateRequired) + { + termStore.CommitAll(); + ClientContext.ExecuteQuery(); + } + WriteObject(group); + } else + { + throw new PSArgumentException("Group not found"); + } + } + else + { + WriteError(new ErrorRecord(new ArgumentException("Cannot find termstore"), "INCORRECTTERMSTORE", ErrorCategory.ObjectNotFound, TermStore)); + } + } + + } +} diff --git a/Commands/Taxonomy/SetTermSet.cs b/Commands/Taxonomy/SetTermSet.cs new file mode 100644 index 000000000..fe4041095 --- /dev/null +++ b/Commands/Taxonomy/SetTermSet.cs @@ -0,0 +1,279 @@ +using System; +using System.Collections; +using System.Linq; +using System.Linq.Expressions; +using System.Management.Automation; +using Microsoft.SharePoint.Client; +using Microsoft.SharePoint.Client.Taxonomy; +using OfficeDevPnP.Core.Extensions; +using PnP.PowerShell.CmdletHelpAttributes; +using PnP.PowerShell.Commands.Base.PipeBinds; + +namespace PnP.PowerShell.Commands.Taxonomy +{ + [Cmdlet(VerbsCommon.Set, "PnPTermSet", SupportsShouldProcess = false)] + [CmdletHelp(@"Updates a taxonomy term set", + Category = CmdletHelpCategory.Taxonomy, + OutputType = typeof(TermSet), + OutputTypeLink = "https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.taxonomy.termset.aspx")] + [CmdletExample( + Code = @"PS:> Set-PnPTermSet -TermGroup ""Corporate"" -Identity ""Finance"" -Name ""Financial""", + Remarks = @"Updates the termset called ""Finance"" and renames it to ""Financial""", + SortOrder = 0)] + public class SetTermSet : PnPSharePointCmdlet + { + [Parameter(Mandatory = false, HelpMessage = "The Id or Name of a termset")] + public GenericObjectNameIdPipeBind Identity; + + [Parameter(Mandatory = true, ValueFromPipeline = true, Position = 0, HelpMessage = "Name of the term group to check.")] + public TermGroupPipeBind TermGroup; + + [Parameter(Mandatory = false, HelpMessage = "Term store to check; if not specified the default term store is used.")] + public GenericObjectNameIdPipeBind TermStore; + + [Parameter(Mandatory = false, HelpMessage = "Term store to check; if not specified the default term store is used.")] + public string Name; + + [Parameter(Mandatory = false, HelpMessage = "Term store to check; if not specified the default term store is used.")] + public string Description; + + [Parameter(Mandatory = false, HelpMessage = "Term store to check; if not specified the default term store is used.")] + public string Owner; + + [Parameter(Mandatory = false, HelpMessage = "Term store to check; if not specified the default term store is used.")] + public string Contact; + + [Parameter(Mandatory = false, HelpMessage = "Sets custom properties for this term set. Notice setting this will replace all existing custom properties.")] + public Hashtable CustomProperties; + + [Parameter(Mandatory = false, HelpMessage = "Adds a new Stakeholder for this termset")] + public string StakeholderToAdd; + + [Parameter(Mandatory = false, HelpMessage = "Deletes an existing Stakeholder for this termset")] + public string StakeholderToDelete; + + [Parameter(Mandatory = false, HelpMessage = "Sets if the term set is avialble for tagging")] + public bool IsAvailableForTagging; + + [Parameter(Mandatory = false, HelpMessage = "Sets if the termset is open for term creation")] + public bool IsOpenForTermCreation; + + [Parameter(Mandatory = false, HelpMessage = "Sets if the termset is to be used for site navigation")] + public bool UseForSiteNavigation; + + [Parameter(Mandatory = false, HelpMessage = "Sets if the termset is to be used for faceted navigation")] + public bool UseForFacetedNavigation; + + [Parameter(Mandatory = false, HelpMessage = "Sets the target page for terms in this termset")] + public string SetTargetPageForTerms; + + [Parameter(Mandatory = false, HelpMessage = "Removes the target page for terms in this termset")] + public SwitchParameter RemoveTargetPageforTerms; + + [Parameter(Mandatory = false, HelpMessage = "Sets the page for categories in this termset")] + public string SetCatalogItemPageForCategories; + + [Parameter(Mandatory = false, HelpMessage = "Removes the page for categories in this termset")] + public SwitchParameter RemoveCatalogItemPageForCategories; + protected override void ExecuteCmdlet() + { + var taxonomySession = TaxonomySession.GetTaxonomySession(ClientContext); + // Get Term Store + TermStore termStore = null; + if (TermStore == null) + { + termStore = taxonomySession.GetDefaultSiteCollectionTermStore(); + } + else + { + if (TermStore.StringValue != null) + { + termStore = taxonomySession.TermStores.GetByName(TermStore.StringValue); + } + else if (TermStore.IdValue != Guid.Empty) + { + termStore = taxonomySession.TermStores.GetById(TermStore.IdValue); + } + else + { + if (TermStore.Item != null) + { + termStore = TermStore.Item; + } + } + } + + TermGroup termGroup = null; + + if (TermGroup.Id != Guid.Empty) + { + termGroup = termStore.Groups.GetById(TermGroup.Id); + } + else if (!string.IsNullOrEmpty(TermGroup.Name)) + { + termGroup = termStore.Groups.GetByName(TermGroup.Name); + } + if (Identity != null) + { + var termSet = default(TermSet); + if (Identity.IdValue != Guid.Empty) + { + termSet = termGroup.TermSets.GetById(Identity.IdValue); + } + else + { + termSet = termGroup.TermSets.GetByName(Identity.StringValue); + } + + ClientContext.Load(termSet, t => t.CustomProperties); + ClientContext.ExecuteQueryRetry(); + if (termSet.ServerObjectIsNull.Value == false) + { + bool updateRequired = false; + if (ParameterSpecified(nameof(Name))) + { + termSet.Name = Name; + updateRequired = true; + } + if (ParameterSpecified(nameof(Description))) + { + termSet.Description = Description; + updateRequired = true; + } + if (ParameterSpecified(nameof(Owner))) + { + termSet.Owner = Owner; + updateRequired = true; + } + if (ParameterSpecified(nameof(Contact))) + { + termSet.Contact = Contact; + updateRequired = true; + } + if (ParameterSpecified(nameof(CustomProperties))) + { + var enumerator = termSet.CustomProperties.GetEnumerator(); + while (enumerator.MoveNext()) + { + var prop = enumerator.Current; + if (!prop.Key.StartsWith("_Sys_")) + { + termSet.DeleteCustomProperty(prop.Key); + } + } + + foreach (var entry in CustomProperties.Cast().ToDictionary(kvp => (string)kvp.Key, kvp => (string)kvp.Value)) + { + termSet.SetCustomProperty(entry.Key, entry.Value); + } + updateRequired = true; + } + if (ParameterSpecified(nameof(StakeholderToAdd))) + { + termSet.AddStakeholder(StakeholderToAdd); + updateRequired = true; + } + if (ParameterSpecified(nameof(StakeholderToDelete))) + { + termSet.DeleteStakeholder(StakeholderToDelete); + updateRequired = true; + } + if (ParameterSpecified(nameof(IsAvailableForTagging))) + { + termSet.IsAvailableForTagging = IsAvailableForTagging; + updateRequired = true; + } + if (ParameterSpecified(nameof(IsOpenForTermCreation))) + { + termSet.IsOpenForTermCreation = IsOpenForTermCreation; + updateRequired = true; + } + if (ParameterSpecified(nameof(UseForSiteNavigation))) + { + if (UseForSiteNavigation) + { + if (!termSet.CustomProperties.ContainsKey("_Sys_Nav_IsNavigationTermSet")) + { + termSet.SetCustomProperty("_Sys_Nav_IsNavigationTermSet", "True"); + updateRequired = true; + } + } + else + { + if (termSet.CustomProperties.ContainsKey("_Sys_Nav_IsNavigationTermSet")) + { + termSet.DeleteCustomProperty("_Sys_Nav_IsNavigationTermSet"); + updateRequired = true; + } + } + } + if (ParameterSpecified(nameof(UseForFacetedNavigation))) + { + if (UseForFacetedNavigation) + { + if (!termSet.CustomProperties.ContainsKey("_Sys_Facet_IsFacetedTermSet")) + { + termSet.SetCustomProperty("_Sys_Facet_IsFacetedTermSet", "True"); + updateRequired = true; + } + } + else + { + if (termSet.CustomProperties.ContainsKey("_Sys_Facet_IsFacetedTermSet")) + { + termSet.DeleteCustomProperty("_Sys_Facet_IsFacetedTermSet"); + updateRequired = true; + } + } + } + if (ParameterSpecified(nameof(SetTargetPageForTerms)) && ParameterSpecified(nameof(RemoveTargetPageforTerms))) + { + throw new PSArgumentException("Cannot both set and remove the target page for this termset. Either use SetTargetPageForTerms or RemoveTargetPageForTerms"); + } + else + { + if (ParameterSpecified(nameof(SetTargetPageForTerms))) + { + termSet.SetCustomProperty("_Sys_Nav_TargetUrlForChildTerms", SetTargetPageForTerms); + updateRequired = true; + } + if(ParameterSpecified(nameof(RemoveTargetPageforTerms))) + { + termSet.DeleteCustomProperty("_Sys_Nav_TargetUrlForChildTerms"); + updateRequired = true; + } + } + + if (ParameterSpecified(nameof(SetCatalogItemPageForCategories)) && ParameterSpecified(nameof(RemoveCatalogItemPageForCategories))) + { + throw new PSArgumentException("Cannot both set and remove the catalog page for this termset. Either use SetCatalogItemPageForCategories or RemoveCatalogItemPageForCategories"); + } + else + { + if (ParameterSpecified(nameof(SetCatalogItemPageForCategories))) + { + termSet.SetCustomProperty("_Sys_Nav_CatalogTargetUrlForChildTerms", SetTargetPageForTerms); + updateRequired = true; + } + if (ParameterSpecified(nameof(RemoveCatalogItemPageForCategories))) + { + termSet.DeleteCustomProperty("_Sys_Nav_CatalogTargetUrlForChildTerms"); + updateRequired = true; + } + } + + if (updateRequired) + { + termStore.CommitAll(); + ClientContext.ExecuteQuery(); + } + } + else + { + throw new PSArgumentException("Cannot find termset"); + } + } + } + + } +} diff --git a/Commands/Utilities/BrowserHelper.cs b/Commands/Utilities/BrowserHelper.cs index 95233299e..70cb7fbde 100644 --- a/Commands/Utilities/BrowserHelper.cs +++ b/Commands/Utilities/BrowserHelper.cs @@ -33,7 +33,8 @@ public static void LaunchBrowser(string url) form.ResumeLayout(false); browser.Navigated += (sender, args) => { - if (browser.Url.AbsoluteUri.Equals("https://login.microsoftonline.com/common/login", StringComparison.InvariantCultureIgnoreCase) || browser.Url.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/reprocess", StringComparison.InvariantCultureIgnoreCase)) + if (browser.Url.AbsoluteUri.Equals("https://login.microsoftonline.com/common/login", StringComparison.InvariantCultureIgnoreCase) || browser.Url.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/Consent/Set",StringComparison.InvariantCultureIgnoreCase)) + // ||browser.Url.AbsoluteUri.StartsWith("https://login.microsoftonline.com/common/reprocess", StringComparison.InvariantCultureIgnoreCase)) { form.Close(); } diff --git a/Commands/Utilities/TeamsUtility.cs b/Commands/Utilities/TeamsUtility.cs index b0b5628b3..3f4366835 100644 --- a/Commands/Utilities/TeamsUtility.cs +++ b/Commands/Utilities/TeamsUtility.cs @@ -132,7 +132,6 @@ private static async Task ParseTeamJsonAsync(string accessToken, HttpClien throw ex; } #endif - return null; } } diff --git a/Commands/packages.config b/Commands/packages.config index 11c18bf9a..94d1da130 100644 --- a/Commands/packages.config +++ b/Commands/packages.config @@ -18,7 +18,7 @@ - + From b5f7c58e24570398ff3360e7dddd6554333fd645 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 5 Aug 2020 16:57:27 +0200 Subject: [PATCH 31/35] fixed dotnet standard compilation issue --- Commands/Utilities/TeamsUtility.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Commands/Utilities/TeamsUtility.cs b/Commands/Utilities/TeamsUtility.cs index 3f4366835..1426ce4a3 100644 --- a/Commands/Utilities/TeamsUtility.cs +++ b/Commands/Utilities/TeamsUtility.cs @@ -131,6 +131,7 @@ private static async Task ParseTeamJsonAsync(string accessToken, HttpClien { throw ex; } + return null; #endif } } From 44cfd22de116c4189a39c5c1d16d7672fb24cd43 Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 5 Aug 2020 16:57:49 +0200 Subject: [PATCH 32/35] updated version check endpoint --- Commands/Base/PnPConnectionHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Base/PnPConnectionHelper.cs b/Commands/Base/PnPConnectionHelper.cs index 4c7243a5e..0092b0a1c 100644 --- a/Commands/Base/PnPConnectionHelper.cs +++ b/Commands/Base/PnPConnectionHelper.cs @@ -30,9 +30,9 @@ internal class PnPConnectionHelper { #if DEBUG - private static readonly Uri VersionCheckUrl = new Uri("https://raw.githubusercontent.com/SharePoint/PnP-PowerShell/dev/version.txt"); + private static readonly Uri VersionCheckUrl = new Uri("https://raw.githubusercontent.com/pnp/PnP-PowerShell/dev/version.txt"); #else - private static readonly Uri VersionCheckUrl = new Uri("https://raw.githubusercontent.com/SharePoint/PnP-PowerShell/master/version.txt"); + private static readonly Uri VersionCheckUrl = new Uri("https://raw.githubusercontent.com/pnp/PnP-PowerShell/master/version.txt"); #endif private static bool VersionChecked; From 780f216e7f47f6d144c98ba405a9f1cee0436e5e Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Wed, 5 Aug 2020 16:58:03 +0200 Subject: [PATCH 33/35] Remove unneeded using statement --- Commands/Site/SetTeamifyPromptHidden.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Commands/Site/SetTeamifyPromptHidden.cs b/Commands/Site/SetTeamifyPromptHidden.cs index 7a79481df..00983719b 100644 --- a/Commands/Site/SetTeamifyPromptHidden.cs +++ b/Commands/Site/SetTeamifyPromptHidden.cs @@ -2,7 +2,6 @@ using OfficeDevPnP.Core.Sites; using PnP.PowerShell.CmdletHelpAttributes; using System.Management.Automation; -using System.Runtime.Remoting.Contexts; namespace PnP.PowerShell.Commands.Site { From ded7642214ef3c51beeb58262f26937b61bc3c98 Mon Sep 17 00:00:00 2001 From: Bert Jansen Date: Mon, 10 Aug 2020 18:11:32 +0200 Subject: [PATCH 34/35] Updated modernization binaries --- .../SharePointPnP.Modernization.Framework.dll | Bin 850944 -> 850944 bytes .../SharePointPnP.Modernization.Framework.dll | Bin 830856 -> 830848 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Binaries/SharePointPnP.Modernization.Framework.dll b/Binaries/SharePointPnP.Modernization.Framework.dll index fc5f60f04b3fd74a80108ca8dcb1114ee0eefafe..00ab66e719e0f0d18f959834aa86f0c8a42fb6fa 100644 GIT binary patch delta 77523 zcma&P2Y6M*7WX~->_Q4Hgx-=skS-uyid5-6giw^;1R*F@fs>FBKu|gxqzlrKUIbKn zM?t!Trj&qGLAvn$*UXxeqq*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80bdt@p{pR z;pA-5?X~X5hhlPgvTb#nDy4zfz+)oE9wuG1t(0$!odM-RE%T|jCM8)C9TU0fa4C6{ ze6M7SzL@Xc1V8CM#CA;NG@OWM>bAoZ?&)_iwiVv310=c_+~LW#r{7ZDzJl$Th;*n$ zx8<>qaK^siO~(1SM{GK_V7?TitppahmpTw8;!~K1y8n(v4J=_ z8)L(<-6J**+cA;zv2D@q3*N=5T(633$3#TgQZ8e*r93`Nb8%|7MBc%&y~;_Q^IZ*2 z@F!gg+xhPBF<9yzbYtmz>wU+d-!mSh>CF_AP*`WD@;aDM`?a-U$^;hngb z3@koWfQn{gQFzkjv7PVcDlbs}mGX1gwz>gWDCWD7*iJ1M9utx6!c&Iy9hj3{Y>CKr zOymeG7<0=n!1h`ve1G}l*p7+F_QCQOv2FC;!1m$tBPQU_spWTL+gW}KmX9yWU&nUe z_-ELDQ!d-O_+eN*9|p%eF55o_x8=i1>T@V#Gv|j=^@1{%2r&t=koY zF(NMd2-U|#?gF>ywl4lxEo0MSS1d&>5!sGVy(O{+)1}o(biTV3`YLxFw)5R9*gomr z#C@mz52rX ztvF$?vX`E#daU2}j`MdLI`)ys&VvtZfBl^mL*6O-)$m>S>Q|FYMk2cmXujO5zHux5 zk3^EmxqseSw&Kq_%g;En{BT)M>O8mq!joJ2?z4H*Cc diff --git a/Binaries/release/SharePointPnP.Modernization.Framework.dll b/Binaries/release/SharePointPnP.Modernization.Framework.dll index afb5cfb0e8ea89a9e602e205aa4f975800a07d73..28b2c8650137429e5b50148c39e1e7933f5f465a 100644 GIT binary patch delta 23280 zcmciKdt6P~|3C0`&R%Od=}3slJ@+J>5@JFKA>UHwmFgg^B03n4V)_It0r-n;skzkdIGKaYpcW9B)pb=hmJz4qmtBkH-JgOjbs>s|0Np<;o=|gf2)loqy_wQwvoVpAtl?4 zq*21W5ToP9ak@5o8}r66-SYOOP+I)Y6aMH4BcwVfB^x=hP!%doRmd%0JqfYkBxIwL zu0^=FKEqqD>+(HiWUD@5b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fR z9&WuhuBTH@wGRt?5(Y9zt|qL9KIL! NRmGFvi7g-g`5%?o$(R5D From 4fad1ea4d9a66078ed30487317e01bf0c4b8843c Mon Sep 17 00:00:00 2001 From: Erwin van Hunen Date: Mon, 10 Aug 2020 19:29:29 +0200 Subject: [PATCH 35/35] Updated project --- Commands/PnP.PowerShell.Commands.csproj | 27 ++++++++----------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/Commands/PnP.PowerShell.Commands.csproj b/Commands/PnP.PowerShell.Commands.csproj index a86bc9ef1..7143da313 100644 --- a/Commands/PnP.PowerShell.Commands.csproj +++ b/Commands/PnP.PowerShell.Commands.csproj @@ -11,8 +11,8 @@ {1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0} Library Properties - SharePointPnP.PowerShell.Commands - SharePointPnP.PowerShell.Online.Commands + PnP.PowerShell.Commands + PnP.PowerShell.Online.Commands v4.6.1 512 @@ -30,8 +30,8 @@ {1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0} Library Properties - SharePointPnP.PowerShell.Commands - SharePointPnP.PowerShell.2013.Commands + PnP.PowerShell.Commands + PnP.PowerShell.2013.Commands v4.6.1 512 @@ -49,8 +49,8 @@ {1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0} Library Properties - SharePointPnP.PowerShell.Commands - SharePointPnP.PowerShell.2016.Commands + PnP.PowerShell.Commands + PnP.PowerShell.2016.Commands v4.6.1 512 @@ -68,8 +68,8 @@ {1DDE6F0A-CA49-419A-9CE8-A6CA02F43CE0} Library Properties - SharePointPnP.PowerShell.Commands - SharePointPnP.PowerShell.2019.Commands + PnP.PowerShell.Commands + PnP.PowerShell.2019.Commands v4.6.1 512 @@ -134,14 +134,6 @@ prompt MinimumRecommendedRules.ruleset - - PnP.PowerShell.Commands - - - - - - true @@ -163,9 +155,6 @@ prompt MinimumRecommendedRules.ruleset - - PnP.PowerShell.Online.Commands -