From d3c2600f353a715216f6219453d6bdeef06a2a23 Mon Sep 17 00:00:00 2001 From: Freddy Kristiansen Date: Fri, 29 Mar 2024 14:28:51 +0100 Subject: [PATCH] Issue 3452 + Bump (#3453) Fixes #3452 Co-authored-by: freddydk --- AppHandling/Run-AlCops.ps1 | 24 +++--------------------- ReleaseNotes.txt | 3 +++ Version.txt | 2 +- 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/AppHandling/Run-AlCops.ps1 b/AppHandling/Run-AlCops.ps1 index 45720f715..c600a4e90 100644 --- a/AppHandling/Run-AlCops.ps1 +++ b/AppHandling/Run-AlCops.ps1 @@ -122,28 +122,10 @@ function Run-AlCops { } $artifactUrl = Get-BcContainerArtifactUrl -containerName $containerName - try { - $artifactVersion = [System.Version]$artifactUrl.Split('/')[4] - # unpack compiler - $latestSupportedRuntimeVersion = Invoke-ScriptInBcContainer -containerName $containerName -ScriptBlock { Param([string] $bcversion) - if (!(Test-Path "c:\build" -PathType Container)) { - $tempZip = Join-Path ([System.IO.Path]::GetTempPath()) "alc.zip" - Copy-item -Path (Get-Item -Path "c:\run\*.vsix").FullName -Destination $tempZip - Expand-Archive -Path $tempZip -DestinationPath "c:\build\vsix" - } - $dllPath = 'C:\build\vsix\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll' - if (-not (Test-Path $dllPath)) { - $dllPath = 'C:\build\vsix\extension\bin\win32\Microsoft.Dynamics.Nav.CodeAnalysis.dll' - } - Add-Type -Path $dllPath | Out-Null - [Microsoft.Dynamics.Nav.CodeAnalysis.ReleaseVersion]::LatestSupportedRuntimeVersions[$bcversion] - } -argumentList "$($artifactVersion.Major).$($artifactVersion.Minor)" - } - catch { - $latestSupportedRuntimeVersion = "" - } - + $artifactVersion = [System.Version]$artifactUrl.Split('/')[4] + $latestSupportedRuntimeVersion = RunAlTool -arguments @('GetLatestSupportedRuntimeVersion',"$($artifactVersion.Major).$($artifactVersion.Minor)") Write-Host "Latest Supported Runtime Version: $latestSupportedRuntimeVersion" + $global:_validationResult = @() $apps | ForEach-Object { $appFile = $_ diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 36058f4f5..61d6997b8 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,3 +1,6 @@ +6.0.13 +Issue 3452 Error when running Run-AlValidation : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. + 6.0.12 Issue 3432 New-BcContainerWizard stopped working after generic images with ltsc2016, ltsc2019 and ltsc2022 was introduced Make parameters in Copy-AppFilesToFolder mandatory diff --git a/Version.txt b/Version.txt index 50d85874e..23adf3e26 100644 --- a/Version.txt +++ b/Version.txt @@ -1 +1 @@ -6.0.12-dev +6.0.13-dev