This should be simple in the Visual Studio 2010 I can right click my project and select "Publish..." I publish it to a folder on my computer and all the files created by that feature are the files I wish to deploy in my install. Is there a way to do this in finalbuilder?
If not is there a work around to accomplish the same thing?
Unfortunately the web site ‘Publish’ function in Visual Studio has been implemented in the VS IDE and is not available from the command line, which means we can’t call it from FinalBuilder. You will need to first use the MSBuild action to compile the web application, this will put the binaries and the content files in an output folder, then you can use other FinalBuilder actions to copy or upload the files to the web server.
Thanks for the reply I wanted just the files needed to run the web project in another folder so my install program will grab them. I guess I have to build that manually I'll have to exclude code files and debug files, include script files and images.
It sucks but if that's what I gottah do I'll take the time to build a batch program or vbscript to do this for all of my diffrent we applications.
I am using FinalBuilder to do something very similar to what you are trying to do. I’m using MS Web Deploy to publish my web sites. You can do this by specifying DeployOnBuild=True as a project property when building. This will generate a script to deploy the web site. It will be a .cmd file. Then, all you have to do is execute the file and it will publish your changes to your web site.
That's very close to what I am looking for, I thought I had it doing exactly what you said using DeployOnBuild=True and PackageAsSingleFile=False it worked once and created a folder in the obj\Release\Package\. This created all the files I was JUMPING FOR JOY because that’s what I wanted and have been working to get this in a command line for what seems like forever. However when I tried to move it to another folder by changing the project property "Location where Package will be created" under the tab "Package/Publish Web" it stopped working even after I reverted the code.
Strange eh? I work in a virtual machine because this happens more often than not so I'll roll back to an older snapshot.
Every notice Nick it's the simplest thing you want to accomplish cannot be done. I mean how hard is it to reproduce the feature of “Publish to a directory” from the command line, I'm not asking it to go over the web, I'm not asking to push to IIS, I just want to build it to a folder. I feel like an idiot.
I'll keep working at it for a bit long if you could provide any assistance in accomplishing what I can do in the GUI at the command line I would greatly appreciate it. If I figure it out I’ll add the command line here.
Assuming you've got a 'web application' project and not a 'web site' project, building the project using MSBuild will move all the files required to the run the website, including aspx, images, stylesheets, etc to a single location. I've attached an example project, have a look in the 'Output' folder after running the FinalBuilder project and you'll see a '_PublishedWebsites' folder, this folder contains all your site files.
In case it helps anybody, I have a MS Build action in FinalBuilder that will create the folder with just the files needed for deployment.
Here are the properties I set in the MS Build action property dialog…
Project File: MyProject.csproj Targets: Package Project Properties: _PackageTempDir: DirectoryToPutFiles Configuration: Debug or Release AutoParameterizationWebConfigConnectionStrings: False (needed if you use web.config transforms)
The build action is followed by a “Create Zip File” action where I put the contents of “DirectoryToPutFiles” into a zip file and then I put that into the folder where I put my build artifiacts.
Posted By Brian on 14 Dec 2011 07:53 PM In case it helps anybody, I have a MS Build action in FinalBuilder that will create the folder with just the files needed for deployment.