This is the format MSBuild "MyProjectName.csproj" /T:Package /P:Configuration=Staging;PackageLocation="D:\Vishal\Package.zip" MSBuild "C:\Users\Karl\Documents\VSO Local Rep\RedPlanet\RPT Umbrella\RedPlanet\redPlanetWebsite\redPlanetWebsite\redPlanetWebsite.vbproj" /T:Package /P:Configuration=Debug;PackageLocation="c:\buildPackage\redplanet.zip" A reference to could not be added a reference to the component already exists in the project