Skip to content

Commit 7523788

Browse files
committed
Make project copy required EasyHook files from contents.
1 parent c1bd830 commit 7523788

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

Rubberduck.Deployment/Rubberduck.Deployment.csproj

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<None Include="BuildRegistryScript.ps1" />
1818
<None Include="Licenses\License.rtf" />
1919
<None Include="PreInnoSetupConfiguration.ps1" />
20+
<Content Include="..\packages\EasyHook.2.7.6684\content\net40\**" CopyToPublishDirectory="PreserveNewest" Link="%(Filename)%(Extension)" />
2021
</ItemGroup>
2122
<ItemGroup>
2223
<ProjectReference Include="..\Rubberduck.API\Rubberduck.API.csproj" />
@@ -36,7 +37,19 @@
3637
<HintPath>OleWoo\olewoo_interop.dll</HintPath>
3738
</Reference>
3839
</ItemGroup>
39-
40+
<Target Name="CopyLinkedContentFiles" BeforeTargets="Build">
41+
<Copy SourceFiles="%(Content.Identity)"
42+
DestinationFiles="$(OutputPath)\%(Content.Link)"
43+
SkipUnchangedFiles="true"
44+
OverwriteReadOnlyFiles="true" />
45+
</Target>
46+
<Target Name="InnoSetupConfig" BeforeTargets="PreBuildEvent">
47+
<CreateProperty Value="&amp; '$(ProjectDir)PreInnoSetupConfiguration.ps1' -WorkingDir '$(ProjectDir)'">
48+
<Output TaskParameter="Value" PropertyName="PowershellCommand" />
49+
</CreateProperty>
50+
<Exec Command="%25SystemRoot%25\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -command &quot;$(PowershellCommand)&quot;" ConsoleToMsBuild="true" />
51+
<Message Text="Ran InnoSetupConfig" Importance="normal" />
52+
</Target>
4053
<Target Name="Register" AfterTargets="PostBuildEvent">
4154
<GetFrameworkSdkPath>
4255
<Output TaskParameter="Path" PropertyName="SdkPath" />
@@ -50,11 +63,4 @@
5063
<Exec Command="%25SystemRoot%25\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -command &quot;$(PowershellCommand)&quot;" ConsoleToMsBuild="true" />
5164
<Message Text="Ran Registration script" Importance="normal" />
5265
</Target>
53-
<Target Name="InnoSetupConfig" BeforeTargets="PreBuildEvent">
54-
<CreateProperty Value="&amp; '$(ProjectDir)PreInnoSetupConfiguration.ps1' -WorkingDir '$(ProjectDir)'">
55-
<Output TaskParameter="Value" PropertyName="PowershellCommand" />
56-
</CreateProperty>
57-
<Exec Command="%25SystemRoot%25\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -command &quot;$(PowershellCommand)&quot;" ConsoleToMsBuild="true" />
58-
<Message Text="Ran InnoSetupConfig" Importance="normal" />
59-
</Target>
6066
</Project>

0 commit comments

Comments
 (0)