Skip to content

Commit

Permalink
Fixing PSUseCorrectVariableNameCasing warnings in Reset-OrchardCoreApp
Browse files Browse the repository at this point in the history
  • Loading branch information
BenedekFarkas committed Jun 21, 2024
1 parent 533a3d5 commit 59eb43c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OrchardCore/Reset-OrchardCoreApp/Reset-OrchardCoreApp.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function Reset-OrchardCoreApp
{
$launchSettings = Get-Content $launchSettingsFilePath | ConvertFrom-Json

$applicationUrlSetting = $launchSettings.profiles."$SiteName".applicationUrl
$applicationUrlSetting = $launchSettings.profiles."$siteName".applicationUrl

if (-not [string]::IsNullOrEmpty($applicationUrlSetting))
{
Expand All @@ -255,7 +255,7 @@ function Reset-OrchardCoreApp
}
}

$environmentSetting = $launchSettings.profiles."$SiteName".environmentVariables.ASPNETCORE_ENVIRONMENT
$environmentSetting = $launchSettings.profiles."$siteName".environmentVariables.ASPNETCORE_ENVIRONMENT

if ([string]::IsNullOrEmpty($environmentSetting))
{
Expand Down Expand Up @@ -369,7 +369,7 @@ function Reset-OrchardCoreApp
function GetWebProjectDllPath([string] $WebProjectPath)
{
$siteName = Split-Path $WebProjectPath -Leaf
$webProjectDllPathPattern = "$WebProjectPath\bin\Debug\netcoreapp*\$SiteName.dll"
$webProjectDllPathPattern = "$WebProjectPath\bin\Debug\netcoreapp*\$siteName.dll"

# To avoid Resolve-Path from throwing exception if no path matches the pattern.
if (Test-Path $webProjectDllPathPattern)
Expand Down

0 comments on commit 59eb43c

Please sign in to comment.