File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2212,6 +2212,14 @@ if (-not `$restartingInstance) {
2212
2212
}
2213
2213
}
2214
2214
2215
+ if ($Version.Major -ge 27 ) {
2216
+ Invoke-ScriptInBcContainer - containerName $containerName - scriptblock {
2217
+ Write-Host " Cleanup old dotnet core assemblies"
2218
+ Remove-Item - Path ' C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.*' - Recurse - Force - ErrorAction SilentlyContinue
2219
+ Remove-Item - Path ' C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.*' - Recurse - Force - ErrorAction SilentlyContinue
2220
+ }
2221
+ }
2222
+
2215
2223
if ($includeAL ) {
2216
2224
$dotnetAssembliesFolder = Join-Path $containerFolder " .netPackages"
2217
2225
New-Item - Path $dotnetAssembliesFolder - ItemType Directory - ErrorAction Ignore | Out-Null
You can’t perform that action at this time.
0 commit comments