# Pubilsh a Website

**URL:** https://www.finalbuilder.com/forums/t/pubilsh-a-website/861
**Category:** Discussion
**Created:** [June 2, 2008, 6:41am UTC](https://www.finalbuilder.com/forums/t/pubilsh-a-website/861 "2008-06-02T06:41:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 2, 2008, 6:41am UTC](https://www.finalbuilder.com/forums/t/pubilsh-a-website/861/1 "2008-06-02T06:41:04Z")

</div>

Can you "publish" a website&nbsp; in FB like you can in VS (right click on website project and select "Publish Web Site")?

NOTE:&nbsp; This is not a web application.&nbsp; It is a website.

rs

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 3, 2008, 1:46am UTC](https://www.finalbuilder.com/forums/t/pubilsh-a-website/861/2 "2008-06-03T01:46:31Z")

</div>

Hi Robb,   
  
Thanks for posting.   
  
When you use the Build VS.NET Solution action, or the MSBuild Project Action, to build a solution with a web site, it will automatically invoke the ASP.NET Precompiler to build the Web Site to an output directory. By default, this directory is called "PrecompiledWeb" and is in the same directory as the solution file. This directory will contain everything you need to deploy the application, including a "bin" directory and any referenced assemblies.   
  
Actually copying or FTPing the web site to its deployed location is a separate operation in FinalBuilder - so you'll want to use the Copy File(s) action or the FTP actions to do so.   
  
If your web site isn't part of a VS.NET Solution, you can use the ASP.NET Precompiler aciton to compile it. I'd recommend using a solution file if possible, though (easier to configure.)   
  
Regards,   
  
Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 3, 2008, 8:45am UTC](https://www.finalbuilder.com/forums/t/pubilsh-a-website/861/3 "2008-06-03T08:45:18Z")

</div>

How do you set the precompile output directory?

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [June 4, 2008, 1:15am UTC](https://www.finalbuilder.com/forums/t/pubilsh-a-website/861/4 "2008-06-04T01:15:30Z")

</div>

Hi Robb,   
  
 For a solution file, there’s four ways to do this, in decreasing order of convenience:   
  
 1) Is to change it in the solution itself, via Visual Studio. If you right-click the web site in Solution Explorer, and then choose “Property Pages”, and then click on the tab marked “MSbuild Options”, there is an output directory setting.   
  
 2) Is to use the MSBuild Project action to build the solution. The MSBuild property for the output directory has a strange name, which is Project\_[Project GUID]\_AspNetTargetPath. If you enter the solution path on “MS Build” tab of the action, and then click over to the Properties tab, you should see this property in the list of available properties. You can override this to be any directory you want.   
  
 3) Is to manually copy the files from the default PrecompiledWeb directory, using the Copy File(s) action.   
  
 4) Is to use the [ASP.NET](http://ASP.NET) Precompile action manually, instead of via Build [VS.NET](http://VS.NET) Solution or MSBuild Project.
