Howto Publish website for RELEASE

  • Thread starter Thread starter kurt sune
  • Start date Start date
K

kurt sune

I am having trouble publishing a website for RELEASE.

1. web.config: <compilation defaultLanguage="vb" debug="false">

2. in Configuration manager I set the configuration to Release for the
website

3. in Configuration manager I set the Active solution configuration to
Release

4. I rightclick the website and click Publish website

Then, in the ouput window:
------ Build started: Project: http://localhost/xxx/, Configuration: Debug
..NET ------
------ Publish started: Project: http://localhost/xxx/, Configuration: Debug
..NET ------


Why doesn't it says

------ Build started: Project: http://localhost/xxx/, Configuration:
Release.NET ------
------ Publish started: Project: http://localhost/xxx/, Configuration:
Release.NET ------


How do I get a release build for my website?


/k
 
Web projects, under .NET 2.0, are not "compiled", as far as I know by Visual
Studio. The ASP.NET framework compiles them and places them in the %systemroot%\Microsoft.NET\Framework\{version}\Temporary
ASP.NET Files directory when the application is run.

If you have additional projects in your solution, such as DAL or BLL, you
should see them showing up as Release and compiling into the /bin/Release
directory rather than the /bin/Debug directory.


------ Build started: Project: _Data, Configuration: Release Any CPU ------
_Data -> {PATH}\bin\Release\_Data.dll

------ Build started: Project: _Biz, Configuration: Release Any CPU ------
_Biz -> {PATH}\bin\Release\_Biz.dll

------ Build started: Project: CIPReport, Configuration: Release Any CPU
------
_Report -> {PATH}\bin\Release\_Report.dll

------ Build started: Project: {Path}\web\, Configuration: Debug .NET ------

With that, to ensure a 'release' build of your web site, you can use the
Publish command inside of VS2005 or the Web Site Deployment (http://msdn.microsoft.com/library/d...en-us/dnaspp/html/web_deployment_projects.asp)
projects. Unfortunately, I cannot comment on the latter as I haven't had
extensive use of it; I publish using Publish.

Hope this helps!

-dl
 
Back
Top