6

any idea which is the command for publish in msbuild corresponding to the one in VS2008? What I want is the resulting output to be the same, without that _PublishedWebSites subdirectory. Is this achievable from command line or I should use a build file?

Thanks.

Kent Fredric
  • 56,416
  • 14
  • 107
  • 150
Adrian Magdas
  • 613
  • 1
  • 8
  • 16

3 Answers3

11

Solved this by specifying WebProjectOutputDir property.
It looks something like this:
MSBuild.exe /t:Rebuild "MyTestProject.sln" /p:OutDir=c:\Project\bin\ /p:WebProjectOutputDir=C:\Project\ /p:Configuration=Debug

Adrian Magdas
  • 613
  • 1
  • 8
  • 16
0

You could take a look at the Vs2008 Web Deployment stuff. Underneath, it uses the AspNetCompiler Task, so you could hack that into you .*proj file.

kͩeͣmͮpͥ ͩ
  • 7,783
  • 26
  • 40