Precompile asp.net site - MSBuild

S

sri_san

Hi group,
I am new to MSBuild and trying to figure out how to
include the "precompile option" in the project file - equivalent to
"aspnet_compiler -v " so that the first request doesnt go through
JIT.
I assume, there has to be an option in the target element
but I might be wrong..

<Target Name="Compile" DependsOnTarget="Resources" >
<Csc Sources="@(CSFile)"
Resources="@(CompiledResources)"
References="@(Reference)"
<Output TaskParameter="OutputAssembly"

ItemName="FinalAssemblyName" />
</Csc>
</Target>



Thanks for your help,
Sam.
 
B

bruce barker

precompiling the site does not skip the jit, just the aspnet compile.
your sample is a c# compiler task, you want the <AspNetCompiler> task.


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top