MSBuild error: The command exited with code 255 due to post build event command

  • Thread starter Thread starter Ankit Raman
  • Start date Start date
A

Ankit Raman

Guest
Hi All,
I am working on Winforms projects. I am facing a build issue (in release mode) on Jenkins server which is running on a remote machine.
Below is the error on Jenkins log:
"D:\Nightly\DataStore.NET\Client\mainline\DataStoreClient.sln" (Rebuild target) (1) -> "D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj" (Rebuild target) (58) -> C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: The command "..............\Utilities\DeployDataLogicsPdfLibrary\bin\DeployDataLogicsPdfLibrary.exe "D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn..............\ThirdPartyControls\DataLogics\APDFL15.0.4\DLE" D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\bin\ [D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: rmdir /s /q "D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\bin\Aspose.Cells.dll" [D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn........\Utilities\VstoManifestGenerator\VstoManifestGenerator.exe D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\bin\Hitec.DataStore.Office.AddIn.Outlook.dll Release" exited with code 255. [D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj]
Please see the post build event command below:



I am working on Winforms projects. I am facing a build issue (in release mode) on Jenkins server which is running on a remote machine.

Below is the error on Jenkins log:


"D:\Nightly\DataStore.NET\Client\mainline\DataStoreClient.sln" (Rebuild target) (1) -> "D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj" (Rebuild target) (58) -> C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: The command "..............\Utilities\DeployDataLogicsPdfLibrary\bin\DeployDataLogicsPdfLibrary.exe "D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn..............\ThirdPartyControls\DataLogics\APDFL15.0.4\DLE" D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\bin\ [D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: rmdir /s /q "D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\bin\Aspose.Cells.dll" [D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn........\Utilities\VstoManifestGenerator\VstoManifestGenerator.exe D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\bin\Hitec.DataStore.Office.AddIn.Outlook.dll Release" exited with code 255. [D:\Nightly\DataStore.NET\Client\mainline\Applications\AddIns\Office\Outlook2010AddIn\Outlook2010AddIn.csproj]

Please see the post build event command below:

..\..\..\..\..\..\..\Utilities\DeployDataLogicsPdfLibrary\bin\DeployDataLogicsPdfLibrary.exe "$(ProjectDir)..\..\..\..\..\..\..\ThirdPartyControls\DataLogics\APDFL15.0.4\DLE" $(TargetDir)
rmdir /s /q "$(TargetDir)Aspose.Cells.dll"
$(ProjectDir)..\..\..\..\Utilities\VstoManifestGenerator\VstoManifestGenerator.exe $(TargetPath) $(ConfigurationName)

I don't have this issue on the local dev machine. So, I assume, I am missing something on the build machine or something I am missing on post build event command, but cannot figure out what.

Anyone know why this happened?

Thank You :)

Continue reading...
 
Back
Top