Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Function Download-BcEnvironmentInstalledExtensionToFolder #3703

Open
zabcik opened this issue Oct 7, 2024 · 1 comment
Open

Missing Function Download-BcEnvironmentInstalledExtensionToFolder #3703

zabcik opened this issue Oct 7, 2024 · 1 comment
Assignees

Comments

@zabcik
Copy link
Contributor

zabcik commented Oct 7, 2024

Hello Freddy,

I would like to use a missing function 'SaaS\Download-BcEnvironmentInstalledExtensionToFolder', which downloads app symbols from a SaaS environment, similar to how a developer manually downloads symbols using Visual Studio Code.

This new function would handle cases where I need to compile workspace apps using a general compiler and a SaaS environment. It ensures that all PTE and AppSource symbols are downloaded from the environment.

This new function cover case when i need to compile workpace apps only using general compiler + SaaS environment . All PTE, AppSource symbols will be downloaded from environment.

There is provided function signature, and I will deliver the implementation in a Pull Request.

Thank you.

$appSymbolsFolder = Join-Path $compilerFolder 'symbols'
$authContext = New-BcAuthContext -includeDeviceLogin -tenantID $tenant
$bcAuthContext = Renew-BcAuthContext -bcAuthContext $authContext
$publishedApps = (Get-BcEnvironmentInstalledExtensions -bcAuthContext $bcAuthContext -environment $environment | ForEach-Object { @{ "Publisher" = $_.Publisher; "Name" = $_.displayName; "Id" = $_.Id; "Version" = [System.Version]::new($_.VersionMajor, $_.VersionMinor, $_.VersionBuild, $_.VersionRevision) } })
foreach ($app in $publishedApps) {
  Download-BcEnvironmentInstalledExtensionToFolder -bcAuthContext $bcAuthContext -environment $environment -appName $app.Name -appId $app.Id -appVersion $app.Version -appPublisher $app.Publisher -folder $appSymbolsFolder
}
Download-BcEnvironmentInstalledExtensionToFolder -bcAuthContext $bcAuthContext -environment $environment -appName "System" -appVersion "1.0.0.0" -appPublisher "Microsoft" -folder $appSymbolsFolder
@zabcik
Copy link
Contributor Author

zabcik commented Oct 7, 2024

PR: #3705

freddydk added a commit that referenced this issue Oct 15, 2024
) (#3705)

Add Missing Function Download-BcEnvironmentInstalledExtensionToFolder

@microsoft-github-policy-service agree

---------

Co-authored-by: Tomáš Žabčík <[email protected]>
Co-authored-by: Freddy Kristiansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants