I’m trying to publish a .Net web app using Powershell. I want to publish “all files in this project” but it only seems to be publishing “only files needed to run this application”. When I publish from Visual Studio 2010 it work fine.
Here’s my command:
& msbuild "$WebProjectFile" /verbosity:minimal "/t:ResolveReferences;_CopyWebApplication;publish" /p:Configuration=Release /p:OutDir="$PublishPath\bin\" /p:WebProjectOutputDir="$PublishPath"
Any ideas how I can do this?
alistek pointed me in the right direction and I ended up using Robocopy to copy the missing files:
Notes:
/NJH /NJS /NFL /NDLswitches are only used to stop Robocopy from spitting its progress to the screen