Skip to content

Commit 1991a0c

Browse files
authored
Merge pull request #4518 from bclothier/FixEasyHookCopy
Add a check for easy hook's nuget package from nuget cache
2 parents d3a1111 + 7f10696 commit 1991a0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Rubberduck.Deployment/Rubberduck.Deployment.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
<None Include="BuildRegistryScript.ps1" />
1818
<None Include="Licenses\License.rtf" />
1919
<None Include="PreInnoSetupConfiguration.ps1" />
20+
21+
<!-- EasyHook nuget may be not be within the solution so we need to check different places. The PreserveNewest should hopefully avoid repetitive (but harmless) copying -->
2022
<Content Include="..\packages\EasyHook.2.7.6684\content\net40\**" CopyToPublishDirectory="PreserveNewest" Link="%(Filename)%(Extension)" />
23+
<Content Include="$(USERPROFILE)\.nuget\packages\easyHook\2.7.6684\content\net40\**" CopyToPublishDirectory="PreserveNewest" Link="%(Filename)%(Extension)" />
2124
</ItemGroup>
2225
<ItemGroup>
2326
<ProjectReference Include="..\Rubberduck.API\Rubberduck.API.csproj" />
@@ -29,6 +32,11 @@
2932
<ProjectReference Include="..\Rubberduck.SmartIndenter\Rubberduck.SmartIndenter.csproj" />
3033
<ProjectReference Include="..\Rubberduck.VBEEditor\Rubberduck.VBEditor.csproj" />
3134
</ItemGroup>
35+
<ItemGroup>
36+
<PackageReference Include="EasyHook" Version="2.7.6684">
37+
<CopyToOutputDirectory>content/net40/*</CopyToOutputDirectory>
38+
</PackageReference>
39+
</ItemGroup>
3240
<ItemGroup>
3341
<Reference Include="olewoo">
3442
<HintPath>OleWoo\olewoo.dll</HintPath>

0 commit comments

Comments
 (0)