-
Notifications
You must be signed in to change notification settings - Fork 5
/
Plugin.target
21 lines (21 loc) · 1.57 KB
/
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 ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="AfterBuild">
<!-- Declaring MSBuild property -->
<PropertyGroup>
<IsPluginPackagerNotCompiled>True</IsPluginPackagerNotCompiled>
<IsPluginPackagerNotCompiled Condition="Exists('..\CDP4PluginPackager\bin\debug\net452\CDP4PluginPackager.exe')">False</IsPluginPackagerNotCompiled>
<ShouldPack></ShouldPack>
<ShouldPack Condition=" '$(Configuration)|$(Platform)' == 'Debug|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\debug\net452\CDP4PluginPackager.exe" $(ShouldPack)" YieldDuringToolExecution="True" ConsoleToMSBuild="True" />
<Message Importance="High" Text="------ PluginPackager tool has completed ------ " />
</Target>
</Project>