Skip to content

Commit

Permalink
Fix localdevenv in 1st Party Apps (W1) project (#27338)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to AlAppExtensions please read our pull request guideline
below
* https://github.com/microsoft/ALAppExtensions/blob/main/CONTRIBUTING.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Fix localdevenv in 1st Party Apps (W1) project. Running the
NewBCContainer override will unpublish all the existing 1st party apps.
If we don't we'll run into issues like:
`Publishing failed due to 'Cannot install the extension API Reports -
Finance by Microsoft 26.0.0.0 because a newer version 26.0.24098.0 was
already installed.'.`

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#550722](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/550722)
  • Loading branch information
aholstrup1 authored Sep 27, 2024
1 parent 064e865 commit bebe953
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Build/projects/1st Party Apps (W1)/.AL-Go/NewBcContainer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Param(
[Hashtable]$parameters
)

if ("$env:GITHUB_RUN_ID" -eq "") {
$script = Join-Path $PSScriptRoot "../../../scripts/NewBcContainer.ps1" -Resolve
. $script -parameters $parameters
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"doNotPublishApps": false,
"useCompilerFolder": false
}

0 comments on commit bebe953

Please sign in to comment.