Answered by:
MSB3073: The command exited with code 3

Question
-
When i use MSBuild.exe to build this project i am getting the below error. same get build success in VS 2008.
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(895,9): error MSB3073: The command "..\JS\Minify\ajaxmin.exe -JS -xml ..\JS\Minify\jsinput.xml -CLOBBER" exited with code 3.
Any suggetion to fix this...........
Friday, July 6, 2012 10:44 AM
Answers
-
Hi Sara_5,
I think there are something wrong in the PropertyGroup. You can modify your pre-build where you can found it from Properties->Build Events->Pre-Build Event.
Modify it and try again.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by Sara_5 Wednesday, July 11, 2012 11:38 AM
Wednesday, July 11, 2012 6:58 AM
All replies
-
Hi Sara_5,
Did you msbuild default .*proj of your project in MSBuild.exe?
If not, can you list the content of the .*proj you ran?
Is a C++ project you created? If yes, I think this blog is helpful to you:
http://blogs.msdn.com/b/vcblog/archive/2010/03/02/visual-studio-2010-c-project-upgrade-guide.aspx
More information we need to help you.
Thank you for your understanding and support.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us
Monday, July 9, 2012 1:49 AM -
Is the below details will help....
Code from *.csproj which i am tring to Build.
-------------------------------------------------------
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>False</AutoAssignPort>
<DevelopmentServerPort>64477</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<PropertyGroup>
<PreBuildEvent>..\JS\Minify\ajaxmin.exe -JS -xml ..\JS\Minify\jsinput.xml -CLOBBER</PreBuildEvent>
</PropertyGroup>
</Project>
Monday, July 9, 2012 10:32 AM -
Hi Sara_5,
I think there are something wrong in the PropertyGroup. You can modify your pre-build where you can found it from Properties->Build Events->Pre-Build Event.
Modify it and try again.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by Sara_5 Wednesday, July 11, 2012 11:38 AM
Wednesday, July 11, 2012 6:58 AM -
Yes, i updated pre-Build Event as per Below. and it works fine!
$(ProjectDir)\JS\Minify\ajaxmin.exe -JS -xml $(ProjectDir)\JS\Minify\jsinput.xml -CLOBBER
Thanks!
Wednesday, July 11, 2012 11:40 AM -
Thanks. You helped me solves a problem.Monday, January 7, 2013 4:58 PM
-
or post build event:)
Nemo Chen
Monday, July 27, 2015 9:35 AM