From a982d12a46d870ab695888939b6f970c2d6633b6 Mon Sep 17 00:00:00 2001 From: Emir Date: Tue, 2 Apr 2019 14:13:10 +0200 Subject: [PATCH] support for package references (PackageReference) in project files --- src/Transformer.VisualStudio/scripts/TransformerModule.psm1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Transformer.VisualStudio/scripts/TransformerModule.psm1 b/src/Transformer.VisualStudio/scripts/TransformerModule.psm1 index 1aa1229..b231dfb 100644 --- a/src/Transformer.VisualStudio/scripts/TransformerModule.psm1 +++ b/src/Transformer.VisualStudio/scripts/TransformerModule.psm1 @@ -1,6 +1,4 @@ -$sln_dir = Split-Path $dte.Solution.FullName -$package_folder = Get-ChildItem (Join-Path $sln_dir "packages") -Filter Transformer.VisualStudio* | select -ExpandProperty Fullname -Last 1 -$transformer_exe = Join-Path $package_folder "tools/transformer.exe" +$transformer_exe = Join-Path $PSScriptRoot "transformer.exe" function Switch-Environment { [CmdletBinding()]