views:

288

answers:

2

Is there a way to pre-compile websites with VWD Express ?

Can I use ASP.NET Merge tool or similar utility ? and is there any limitation to options (can I choose whatever options like in VS Pro edition)

+1  A: 

Not 100% about VWD but do you have post build options within IDE (under the Build Events of the web application properties)

Even without you could run following from the command line

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v / -f -u -p 
"$(ProjectDir)\" "$(SolutionDir)PrecompiledWeb\$(ConfigurationName)"
dove
@dove: thanks for your answer, but I need more clarification about how to achieve same results of pre-compilation with Pro version (Build views, Enable updating or compile all to dll) ...etc Thanks again
Ahmed Khalaf
dove
http://www.asp.net/learn/hosting/tutorial-15-cs.aspx
Ahmed Khalaf
A: 

I haven't tried this with anything generated by VS Express, but you should be able to build and deploy the website using a custom MSBuild script no matter where it came from. Something like:

<MSBuild Projects="$(MSBuildProjectDirectory)\MyProject.csproj"
         Targets="ResolveReferences;_CopyWebApplication"
         Properties="WebProjectOutputDir=$(MyTargetDir);OutDir=$(WebProjectOutputDir)\;Configuration=Release" />
Wyatt Barnett