I want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built.
I use Visual Studio 2008.
On the computer where you have the ASP.NET project open in Visual Studio, right-click the project in Solution Explorer, and choose Publish. If you have previously configured any publishing profiles, the Publish pane appears. Click New or Create new profile. Select the option to import a profile.
Build compiles the source code into a (hopefully) runnable application. Publish takes the results of the build, along with any needed third-party libraries and puts it somewhere for other people to run it.
Well you could do it with MSBuild in a post-build event.
But are you sure you want to do this? It will slow you down, and you probably don't need to publish for every build? Why not just run the site in IIS instead of Cassini.
Step 1. Make sure that you have a web project.
Step 2. Go to View->Toolbars->Web One Click Publish.
The publish button web button on the toolbar will do what you want... build and publish in one step.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With