17
17
<None Include =" BuildRegistryScript.ps1" />
18
18
<None Include =" Licenses\License.rtf" />
19
19
<None Include =" PreInnoSetupConfiguration.ps1" />
20
+ <Content Include =" ..\packages\EasyHook.2.7.6684\content\net40\**" CopyToPublishDirectory =" PreserveNewest" Link =" %(Filename)%(Extension)" />
20
21
</ItemGroup >
21
22
<ItemGroup >
22
23
<ProjectReference Include =" ..\Rubberduck.API\Rubberduck.API.csproj" />
36
37
<HintPath >OleWoo\olewoo_interop.dll</HintPath >
37
38
</Reference >
38
39
</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 =" & '$(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 " $(PowershellCommand)" " ConsoleToMsBuild =" true" />
51
+ <Message Text =" Ran InnoSetupConfig" Importance =" normal" />
52
+ </Target >
40
53
<Target Name =" Register" AfterTargets =" PostBuildEvent" >
41
54
<GetFrameworkSdkPath >
42
55
<Output TaskParameter =" Path" PropertyName =" SdkPath" />
50
63
<Exec Command =" %25SystemRoot%25\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -command " $(PowershellCommand)" " ConsoleToMsBuild =" true" />
51
64
<Message Text =" Ran Registration script" Importance =" normal" />
52
65
</Target >
53
- <Target Name =" InnoSetupConfig" BeforeTargets =" PreBuildEvent" >
54
- <CreateProperty Value =" & '$(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 " $(PowershellCommand)" " ConsoleToMsBuild =" true" />
58
- <Message Text =" Ran InnoSetupConfig" Importance =" normal" />
59
- </Target >
60
66
</Project >
0 commit comments