-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSdk.Plugin.target
21 lines (21 loc) · 1.63 KB
/
Sdk.Plugin.target
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Target Name="CustomAfterBuild" AfterTargets="Build">
<!-- Declaring MSBuild property -->
<PropertyGroup>
<IsPluginPackagerNotCompiled>True</IsPluginPackagerNotCompiled>
<IsPluginPackagerNotCompiled Condition="Exists('..\CDP4PluginPackager\bin\$(Configuration)\$(TargetFramework)\CDP4PluginPackager.exe')">False</IsPluginPackagerNotCompiled>
<ShouldPack></ShouldPack>
<ShouldPack Condition=" '$(Configuration)|$(Platform)' == '$(Configuration)|AnyCPU' ">pack</ShouldPack>
</PropertyGroup>
<!-- Debug information on the tool being present -->
<Message Importance="High" Condition="$(IsPluginPackagerNotCompiled)" Text="------ PluginPackager tool is not present --MSBuild-- running ------ " />
<Message Importance="High" Condition="!$(IsPluginPackagerNotCompiled)" Text="------ PluginPackager tool is present ------ " />
<!-- Compile tool if not already -->
<Exec Condition="$(IsPluginPackagerNotCompiled)" Command=""$(MSBuildToolsPath)\MSBuild.exe" ..\CDP4PluginPackager\CDP4PluginPackager.csproj" YieldDuringToolExecution="True" ConsoleToMSBuild="False" EchoOff="True" />
<!-- at last running the tool -->
<Message Importance="High" Text="------ PluginPackager tool Started ------ " />
<Exec Command=""..\CDP4PluginPackager\bin\$(Configuration)\$(TargetFramework)\CDP4PluginPackager.exe" $(ShouldPack) config:$(Configuration) framework:$(TargetFramework)" YieldDuringToolExecution="True" ConsoleToMSBuild="True" />
<Message Importance="High" Text="------ PluginPackager tool has completed ------ " />
</Target>
</Project>