I\'ve inherited a very large VS2012 web site project (not web application) and am trying to automate it\'s deployment. There are tons of circular references in the project s
While Sayed Ibrahim Hashimi's answer did help me somewhat, here is what I found to be neccessary for VS2012:
After installing the Azure SDK, I created a file publish profile, which created a PublishProfiles
folder in the Properties
folder of my project. Inside this new folder, two xml files named my_sample_PublishProfile_Foo.pubxml
and my_sample_PublishProfile_Foo.pubxml.user
where created.
Using the .pubxml, I am able to publish with msbuild
like this:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "C:\...\UI.csproj" /p:DeployOnBuild=true /p:PublishProfile="C:\...\PublishProfiles\my_sample_PublishProfile_Foo.pubxml" /p:VisualStudioVersion=11.0
Remember to run the batch file that contains this script with Administrator privileges.