Good day!
I\'ve found this solution here: VS2010 Web Publish command line version of File System deploy
C:\\Windows\\Microsoft.NET\\Framework\\v4.0.3
This might work (which I found here):
msbuild solution.sln /p:Configuration=Release;DeployOnBuild=true;DeployTarget=Package;_PackageTempDir=..\publish
However, it gave me the following error when I tried to run it (which I'm still working to fix):
C:\[path]\[config]\csautoparameterize\original\web.config(40): error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.