From 5202e2e63b5eafa04da29c4d32f11bd789f92292 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Wed, 14 Jun 2023 15:29:31 +0100 Subject: [PATCH] Should be PluginFile not ProjectFile --- inc/uplugin.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/uplugin.ps1 b/inc/uplugin.ps1 index 6774228..5d33f3d 100644 --- a/inc/uplugin.ps1 +++ b/inc/uplugin.ps1 @@ -9,14 +9,14 @@ function Get-Uplugin-Filename { $projfile = "" if ($config -and $config.ProjectFile) { - if (-not [System.IO.Path]::IsPathRooted($config.ProjectFile)) { - $projfile = Join-Path $srcfolder $config.ProjectFile + if (-not [System.IO.Path]::IsPathRooted($config.PluginFile)) { + $projfile = Join-Path $srcfolder $config.PluginFile } else { - $projfile = Resolve-Path $config.ProjectFile + $projfile = Resolve-Path $config.PluginFile } if (-not (Test-Path $projfile)) { - throw "Invalid ProfileFile setting, $($config.ProjectFile) does not exist." + throw "Invalid ProfileFile setting, $($config.PluginFile) does not exist." } } else {