Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Project cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinvanhunen committed Feb 23, 2018
1 parent 98858b2 commit 08a5c5c
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 600 deletions.
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [2.24.1803.0 - Unreleased]
### Added
- Added Read-PnPProvisioningTemplate [Rename: see changed section]
- Added Invoke-PnPQuery [Rename: see changed section]
- Added Resolve-PnPFolder [Rename: see changed section]
- Added New-PnPAzureCertificate cmdlet
- Added Get-PnPAzureCertificate cmdlet
- Added Test-PnPOffice365GroupAliasIsUsed
- Added Remove-PnPStoredCredential
- Added Add-PnPStoredCredential
Expand All @@ -33,11 +38,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added Get-PnPRoleDefinition cmdlet
- Added Add-PnPRoleDefinition cmdlet
- Added Remove-PnPRoleDefinition cmdlet
- Added New-PnPAzureCertificate cmdlet
- Added Get-PnPAzureCertificate cmdlet
- Implemented .NET 2.0 Standard project to allow for cross-platform use with PowerShell 6.0

### Changed
- Updated Connect-PnPOnline to support connecting using PEM encoded certificate strings
- Fixed issue where it was not possible to use New-PnPSite when using Connect-PnPOnline with the -UseWebLogin parameter
- Fixed issue with Copy-PnPFile when copying to a location within the current web where metadata was not being retained
- Fixed issue with Add-PnPFile when a new file was uploaded and using the cmdlet also field values where set, the version would increase to 2.0 instead of the expected 1.0
Expand All @@ -52,9 +56,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Updated Remove-PnPNavigationNode cmdlet to support the -All parameter
- Updated Set-PnPList cmdlet to change moderation setting
- Updated Set-PnPFileCheckedIn to approve the file
- Updated Connect-PnPOnline to support connecting using PEM encoded certificate strings

### Deprecated
- Deprecated Load-PnPProvisioningTemplate, renaming it to Read-PnPProvisioningTemplate which follows the PowerShell approved verb standard. Load-PnPProvisioningTemplate has been added as an alias for Read-PnPProvisioningTemplate.
- Deprecated Execute-PnPQuery, renaming it to Invoke-PnPQuery which follows the PowerShell approved verb standard. Execute-PnPQuery has been added as an alias for Invoke-PnPQuery.
- Deprecated Ensure-PnPFolder, moving functionality to Resolve-PnPFolder which follows the PowerShell approved verb standard. Ensure-PnPFolder has been added as an alias for Resolve-PnPFolder.
- Documentation/Markdown generation has been removed from build, now points to docs.microsoft.com
- Deprecated Remove-PnPNavigationNode -Title and -Header parameters. Use the Identity parameter instead.
- Marked -WebTemplate parameter on Get-PnPTenantSite as obsolete. Use -Template instead.
- Deprecated Get-PnPAzureADManifestKeyCredentials. Use Get-PnPAzureCertificate instead.
Expand Down
31 changes: 0 additions & 31 deletions Commands/Base/ExecuteQuery.cs

This file was deleted.

31 changes: 0 additions & 31 deletions Commands/Files/EnsureFolder.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Commands/Provisioning/AddDataRowsToProvisioningTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected override void ExecuteCmdlet()
Path = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, Path);
}

var template = LoadProvisioningTemplate
var template = ReadProvisioningTemplate
.LoadProvisioningTemplateFromFile(Path,
TemplateProviderExtensions);

Expand Down
2 changes: 1 addition & 1 deletion Commands/Provisioning/AddFileToProvisioningTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected override void ProcessRecord()
Source = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, Source);
}
// Load the template
var template = LoadProvisioningTemplate
var template = ReadProvisioningTemplate
.LoadProvisioningTemplateFromFile(Path,
TemplateProviderExtensions);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected override void ExecuteCmdlet()
Path = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, Path);
}
// Load the template
var template = LoadProvisioningTemplate
var template = ReadProvisioningTemplate
.LoadProvisioningTemplateFromFile(Path,
TemplateProviderExtensions);

Expand Down
71 changes: 0 additions & 71 deletions Commands/Provisioning/LoadProvisioningTemplate.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override void ProcessRecord()
Path = System.IO.Path.Combine(SessionState.Path.CurrentFileSystemLocation.Path, Path);
}
// Load the template
ProvisioningTemplate template = LoadProvisioningTemplate
ProvisioningTemplate template = ReadProvisioningTemplate
.LoadProvisioningTemplateFromFile(Path,
TemplateProviderExtensions);

Expand Down
2 changes: 1 addition & 1 deletion Commands/Samples/GetContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ $ctx = Get-PnPContext
$w = $ctx.Web
$w.Lists.GetByTitle("TestList")
$ctx.Load($w)
Execute-PnPQuery # Or use $ctx.ExecuteQuery()
Invoke-PnPQuery # Or use $ctx.ExecuteQuery()
6 changes: 3 additions & 3 deletions Commands/SharePointPnP.PowerShell.Commands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@
<Compile Include="Base\GetContext.cs" />
<Compile Include="Base\GetStoredCredential.cs" />
<Compile Include="Base\GetHealthScore.cs" />
<Compile Include="Base\ExecuteQuery.cs" />
<Compile Include="Base\InvokeQuery.cs" />
<Compile Include="Base\DisconnectSPOnline.cs" />
<Compile Include="Base\PipeBinds\FieldPipeBind.cs" />
<Compile Include="Base\PipeBinds\ListPipeBind.cs" />
Expand Down Expand Up @@ -617,7 +617,7 @@
<Compile Include="InformationManagement\GetSiteClosure.cs" />
<Compile Include="InformationManagement\SetSiteClosure.cs" />
<Compile Include="Provisioning\AddFileToProvisioningTemplate.cs" />
<Compile Include="Provisioning\LoadProvisioningTemplate.cs" />
<Compile Include="Provisioning\ReadProvisioningTemplate.cs" />
<Compile Include="Provisioning\NewProvisioningTemplate.cs" />
<Compile Include="Components\PnPTemplatesGalleryResultItem.cs" />
<Compile Include="Components\ProvisioningTemplateInformation.cs" />
Expand Down Expand Up @@ -750,7 +750,7 @@
<Compile Include="Web\GetRequestAccessEmails.cs" />
<Compile Include="Principals\GetUser.cs" />
<Compile Include="Web\InvokeWebAction.cs" />
<Compile Include="Files\EnsureFolder.cs" />
<Compile Include="Files\ResolveFolder.cs" />
<Compile Include="Files\AddFolder.cs" />
<Compile Include="Web\RemovedIndexedProperty.cs" />
<Compile Include="Files\RemoveFile.cs" />
Expand Down
Loading

0 comments on commit 08a5c5c

Please sign in to comment.