From 96249c8d53507d906d89a969f191c40dbf7495dc Mon Sep 17 00:00:00 2001 From: Gautam Sheth Date: Tue, 15 Aug 2023 22:27:23 +0300 Subject: [PATCH 1/2] Mark PnPCompanyApp as obsolete. --- CHANGELOG.md | 1 + documentation/Publish-PnPCompanyApp.md | 1 + src/Commands/Admin/PublishCompanyApp.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2dd982f4..0c2c16214 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ### Changed - Improved `Set-PnPListItem` cmdlet handling of Purview labels. [#3340](https://github.com/pnp/powershell/pull/3340) +- The `Publish-PnPCompanyApp` cmdlet is now obsolete. It will be removed in the next version. ### Contributors diff --git a/documentation/Publish-PnPCompanyApp.md b/documentation/Publish-PnPCompanyApp.md index 173f0aab7..24ba7d634 100644 --- a/documentation/Publish-PnPCompanyApp.md +++ b/documentation/Publish-PnPCompanyApp.md @@ -10,6 +10,7 @@ title: Publish-PnPCompanyApp ## SYNOPSIS This cmdlet publishes a new company app to Microsoft Teams. +** This cmdlet is obsolete and will not be supported ** ## SYNTAX diff --git a/src/Commands/Admin/PublishCompanyApp.cs b/src/Commands/Admin/PublishCompanyApp.cs index f79dfdf56..3321fa19d 100644 --- a/src/Commands/Admin/PublishCompanyApp.cs +++ b/src/Commands/Admin/PublishCompanyApp.cs @@ -12,6 +12,7 @@ namespace PnP.PowerShell.Commands.Admin { + [Obsolete("This cmdlet will be removed in the next version.")] [Cmdlet(VerbsData.Publish, "PnPCompanyApp")] public class BuildCompanyApp : PnPAdminCmdlet { From 9520e8ac97ccfdba513a4621d6badc2b4710b074 Mon Sep 17 00:00:00 2001 From: Gautam Sheth Date: Tue, 15 Aug 2023 22:31:09 +0300 Subject: [PATCH 2/2] Update PublishCompanyApp.cs --- src/Commands/Admin/PublishCompanyApp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Admin/PublishCompanyApp.cs b/src/Commands/Admin/PublishCompanyApp.cs index 3321fa19d..51a765cef 100644 --- a/src/Commands/Admin/PublishCompanyApp.cs +++ b/src/Commands/Admin/PublishCompanyApp.cs @@ -12,7 +12,7 @@ namespace PnP.PowerShell.Commands.Admin { - [Obsolete("This cmdlet will be removed in the next version.")] + [Obsolete("This usage of this cmdlet is not supported anymore and will be removed in the next version.")] [Cmdlet(VerbsData.Publish, "PnPCompanyApp")] public class BuildCompanyApp : PnPAdminCmdlet {