Last post Apr 11, 2019 03:23 AM by Ackerly Xu
Apr 10, 2019 10:13 AM|hkbeer|LINK
I remember instead of copying all aspx files to folder,
We can compile dll instead.
How do we compile from VS ?
Any video or link on step to step ?
Apr 10, 2019 11:16 AM|PatriceSc|LINK
You are currently using a web site project or a web application project ? Start maybe at
Apr 11, 2019 03:23 AM|Ackerly Xu|LINK
Hi hkbeer ,
By default , aspx file is not compiled into the same assembly as cs file.
Usually they are stored in temp dir defined by asp.net.
For more information you could refer to the precompile option region in the link PatriceSc has provided.
If you want to use aspnet_compiler to compile your project manually, you could go the the compiler's dir , usually in C:\Windows\Microsoft.NET\Framework\v4.0.30319 or C:\Windows\Microsoft.NET\Framework\v2.0.50727.
Then you could try to input the following command in the cmd .
aspnet_compiler -p "D:\develop\vsworkspace\WingtipToys\WingtipToys" -v hello -f -u "D:\develop\vsworkspace\test"
-p specify where you project is , -u specifies where the compiled project is ,-v specifies where the virtual dir which stores the compiled aspx file is.
You could also specify / for -v
spnet_compiler -p "D:\develop\vsworkspace\WingtipToys\WingtipToys" -v / -f "D:\develop\vsworkspace\test"
If you input hello for example , you should find a hello dir in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files (v4.0.30319, version may differ).
You could refer to the link below for more information about the parameters of aspnet_compiler.
Also refer to the link below to learn how aspx file is compiled.