I'm using this command to build and deploy my site:
MSBuild myprj.sln
/P:Configuration=Debug
/P:DeployOnBuild=True
/P:MsDeployServiceUrl=http://myserver/MsDeployAgentService
/P:MSDeployPublishMethod=RemoteAgent
/P:DeployTarget=MSDeployPublish
/P:UserName=foo
/P:Password=bar
/P:DeployIisAppPath="Default Web Site\MyApp"
It works great, except I think I want to exclude a certain data file, say, ~/App_Data/data.xml
. I don't want data.xml
in my project since it's generated by the app or setup by the user (e.g. by renaming and configuring data.xml.orig
to data.xml
).
So what to do? Can I simply exclude it from MSDeploy or should I be handling this another way?