From 3433c7a9838424b4baa361b1fa66f68a0484c152 Mon Sep 17 00:00:00 2001 From: Brad Wilson Date: Fri, 31 Jul 2015 10:09:47 -0700 Subject: [PATCH] Update RefactoringEssentials.nuspec to support project.json-based projects in addition to packages.config-based projects --- RefactoringEssentials/RefactoringEssentials.nuspec | 2 +- RefactoringEssentials/tools/install.ps1 | 2 +- RefactoringEssentials/tools/uninstall.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RefactoringEssentials/RefactoringEssentials.nuspec b/RefactoringEssentials/RefactoringEssentials.nuspec index e732791a..685f5457 100644 --- a/RefactoringEssentials/RefactoringEssentials.nuspec +++ b/RefactoringEssentials/RefactoringEssentials.nuspec @@ -20,7 +20,7 @@ - + diff --git a/RefactoringEssentials/tools/install.ps1 b/RefactoringEssentials/tools/install.ps1 index 20f6e6d0..6c15fec2 100644 --- a/RefactoringEssentials/tools/install.ps1 +++ b/RefactoringEssentials/tools/install.ps1 @@ -1,6 +1,6 @@ param($installPath, $toolsPath, $package, $project) -$analyzerPath = join-path $toolsPath "analyzers" +$analyzerPath = join-path (split-Path -path $toolsPath -parent) "analyzers\dotnet" $analyzerFilePath = join-path $analyzerPath "RefactoringEssentials.dll" $project.Object.AnalyzerReferences.Add("$analyzerFilePath") \ No newline at end of file diff --git a/RefactoringEssentials/tools/uninstall.ps1 b/RefactoringEssentials/tools/uninstall.ps1 index f0e35255..df00ca4e 100644 --- a/RefactoringEssentials/tools/uninstall.ps1 +++ b/RefactoringEssentials/tools/uninstall.ps1 @@ -1,6 +1,6 @@ param($installPath, $toolsPath, $package, $project) -$analyzerPath = join-path $toolsPath "analyzers" +$analyzerPath = join-path (split-Path -path $toolsPath -parent) "analyzers\dotnet" $analyzerFilePath = join-path $analyzerPath "RefactoringEssentials.dll" $project.Object.AnalyzerReferences.Remove("$analyzerFilePath") \ No newline at end of file