Where to find "Publish Web Site"

Hi,

your examples and the help are not given any idea.

What have I to do to do a "Publish Web Site" (c# solution) and where to set the output path.

Thanks for help.

Christian

Hi Christian,

You can automate the creation part of a ClickOnce web application using the MSBuild action (or the Build VS.NET Solution action with “use MSBuild” enabled) , selecting the ‘publish’ target.

However, this will not copy the files to your publish url (if that’s what you mean by “output path”), as that is a feature of the VS2005 IDE which is not automatable.

The files for deployment will be located in the ‘publish’ folder in the same folder as the solution. You will need to do the deployment manually, or by using other FinalBuilder actions.

Regards,


Angus

Hi Angus,

the MSBuild action didnot accepted the *.sln file and the Build VS.Net Solution has no target “publish” - only “deploy” and that fails with “target ‘deploy’ does not exist”.

Regards

Christian

Hi Christian,

The MSBuild action can only be used for a web site that was created in Visual Studio as a “Web Application Project” ( http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx ).

For the standard web project type you will need to use the “Build VS.Net Solution” with the action set to “Build”.

Regards,
Paul.

Hi Christian,

My mistake, sorry. I should have explained that better.

The MSBuild action actually will accept a .sln file, the “failed to load project file” error is actually a bug. I’ll fix it, but it can be ignored safely.

Regards,

Angus

Well, maybe another option is to introduce a web deployment project. This is a downloadable (Microsoft) Visual Studio add-in. It gives you some extra options for 'compiling' a website.

Next to that, I think it is best practice to let FinalBuilder do all publish stuff.

Jaap.