-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathhMSBuild.targets
More file actions
33 lines (25 loc) · 1.34 KB
/
hMSBuild.targets
File metadata and controls
33 lines (25 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?><!-- https://github.com/3F/hMSBuild -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<hMSBuildRootPkg>$(MSBuildThisFileDirectory)..\..\</hMSBuildRootPkg> <!-- dotnet and native: [root]\build\*\hMSBuild.targets -->
<hMSBuildBat>$(hMSBuildRootPkg)hMSBuild.bat</hMSBuildBat>
<hMSBuildFullBat>$(hMSBuildRootPkg)hMSBuild.full.bat</hMSBuildFullBat>
</PropertyGroup>
<PropertyGroup>
<hMSBuildCopyToOutput Condition="'$(hMSBuildCopyToOutput)'==''">true</hMSBuildCopyToOutput>
<hMSBuildResolvePublish Condition="'$(hMSBuildResolvePublish)'==''">$(hMSBuildCopyToOutput)</hMSBuildResolvePublish>
</PropertyGroup>
<ItemGroup>
<hMSBuildDistFiles Include="$(hMSBuildBat)" Condition="Exists('$(hMSBuildBat)')" />
</ItemGroup>
<Target Condition="'$(hMSBuildCopyToOutput)'=='true'"
Name="hMSBuildAfterBuild" AfterTargets="AfterBuild">
<Copy SourceFiles="@(hMSBuildDistFiles)"
DestinationFolder="$(TargetDir)\"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="true" />
</Target>
<ItemGroup Condition="'$(hMSBuildResolvePublish)'=='true'">
<ResolvedFileToPublish Include="@(hMSBuildDistFiles)" RelativePath="%(Filename)%(Extension)"/>
</ItemGroup>
</Project>