<!-- Signing step --> <Target Name="MSISigningStep"> <!-- Select all MSI in the $(OutDir) for signing --> <CreateItem Include="$(OutDir)***.msi"> <Output ItemName="MSIFilesToSign" TaskParameter="Include" /> </CreateItem> <Message Text="No MSI files found for signing." Condition="'@(MSIFilesToSing)' == '' "/> <!-- Execute the sign command if any files found --> <Exec Command="&quot;C:Program FilesMicrosoft SDKsWindowsv6.0Abinsigntool.exe&quot;" + "sign &quot;%(MSIFilesToSign.Fullpath)&quot;" Condition="'@(MSIFilesToSing)' != '' "/> </Target>
CreateItem in MSBuild
Leave a reply