I'm having trouble understanding when the site is considered "pre-compiled". As I understand what I've read, if I use the Publish or Build Deployment Package options from within Visual Studio then it is pre-compiling, but if I just use something like xcopy, then it is not pre-compiled. Is that correct?
Is the Publish option in Visual Studio considered pre-compilation for ASP.net Web applications?
2k Views Asked by AudioBubble At
2
There are 2 best solutions below
0
Tim P.
On
It is "compiled" in the sense that you will have a MSIL DLL of your web code. However, you will still have to have the JIT compilation. You should use the NGEN utility if you are using .NET 2.0 or greater to prevent this warm-up time. Please note, NGEN is only useful to eliminating the first "startup" time of the application. It does make it harder to maintain because JIT'ed code can get out of sync with NGEN'd code. In my enterprise environment, we chose not to use NGEN because of those potential pitfalls.
See the links below:
Does it help to use NGEN for ASP.NET Applications?
Related Questions in ASP.NET
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- IIS Rewrite Module exclude bots but allow GoogleBot
- Angular 16 sending null values to API
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
- How to unprotect ASP.NET FormAuthentication cookie
- How does it work using ASP.NET FormAuthentication
- What is the purpose of a completely standalone 'this'?
- Is there a way to read .csproj PropertyGroup variable in c#
- MSBuild trying to copy different dll with similar name into project sporadically
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Azure AD guest account in web app authentication user claims data
- Receiving 400 bad request on post when customer auth handler is used
Related Questions in COMPILATION
- I am trying to run java application in Eclipse, When I try to do Run > Run as > Java Application it starts to show little processing but nothing happe
- Unable to run get .exe file from assembly NASM
- Javascript to Java
- How to compile only the changed files in Verilator?
- Why does the .exe file become locked after compiling?
- Installing the C compiler for LC3
- compile syzkaller fuzzer failed without any error or warning
- Solved: Create standalone executable for MacOS with OpenCV and libmagic
- How to work around the "collect2: error: ld returned 1 exit status" error when running simple fortran files with the gfortran command?
- how to add a compiler type supported for sccache?
- Vulkan ‘VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR’ was not declared in this scope
- Rust newbie compile error (for (key: String, value: String) in | ^ expected one of `)`, `,`, `@`, or `|`)
- latest version of redshift with crazy compile times
- Problem compiling out-dated Typescript code
- What is appropriate substitution for configurations.compile in newer gradle e.g. version 8.7?
Related Questions in PUBLISH
- Empty array returned from api database when publishing to azure
- How to publish .NET Core console application with particular profile?
- App is not visible after after full rollout on google play store
- How can I publish library from dist directory saving node_modules?
- ASP.NET Core/Angular17 application files does not load when published in IIS
- How to deploy Laravel as backend and Nextjs as front end in VPS
- How to publish a console application with COM interop and trim unused code
- I am using encrypt: 5.0.1, now what type of encryption algorithms does my app implement?
- LISP to Batchplot (Publish) Multiple .dwg Models into One PDF
- ASP.net Website project vs Web Application Project: single page updates
- Published .NET 8 Application Includes Windows SDK for .NET 6
- Register for the Hardware Developer Program have not "Hardware"
- Path denied error when building UWP app in release
- Publishing Swift CLI to Homebrew with Makefile
- How to generate app bundles for publishing a Compose Multiplatform app for Android, iOS, Web, and Desktop?
Related Questions in PRECOMPILED
- why my code cannot find the imported target's header files in cmake?
- Visualize precompiled file (*.i) on c++builder
- Gradle Composite Build: How to configure Tasks for all included builds
- Problems after upgrading to Flutter 2.5, Could not build the precompiled application for the device
- Use Precompiled Library in Flutter
- Finding locally compiled Raku modules
- Trouble testing Swift in Objective-C test
- Why is clang not using the precompiled header?
- Advantage of C++20 modules over precompiled headers for compiling speed?
- What is the difference between qr/ and m/ in Perl?
- Matterbridge does not start on Heroku - is there a way I can check how the build on the plattform looks like?
- Trying to run lua file from SOM imx6 on a Pi 2 -> nginx lua: bad header in precompiled chunk
- Gradle pre-compiled script plugin fails with `expression ... cannot be invoked as a function` for first block
- rails + nginx + passenger not finding my gemified precompiled assets in production
- Sporadic: The file '.cshtml' has not been pre-compiled, and cannot be requested
Related Questions in PRE-COMPILATION
- Why is my newly pushed Fly.io Rails7.0.8 app not finding my image & js assets?
- Are include guards considered defined after the #define directive or after the #endif directive
- Precompilation in rails 7
- How to execute a single preprocessor directive in a C file
- How to properly hardcode compiler's define flag (-D) with #define in c (arduino)
- What is the best way to flush precompiled perl6 modules?
- Azure DevOps Build - publish doesn't create .compiled files in bin folder on publish
- Precompile part of the web application in .NET
- calling precompiled module from another file
- Tomcat JSP Pre-Compilation
- Log4cpp Naming Collision for 'DEBUG' detected.
- How to disable JSP Compilation during runtime in tomcat
- ASP.Net Core compile views in library project
- Precompile not working in razor pages
- Cython Precompiler decision making
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
ASP.NET WebSite projects have an option of xcopy deployment in which all files including the aspx, aspx.cs, ascx, ascx.cs etc are copied to the production web server as is. The ASP.NET runtime compiles the site when it receives the first request. If you check the folder C:\Windows\Microsoft.NET\Framework\v\Temporary ASP.NET Files, you could see the output. This obviously is very easy for deployment as all we have to do is to copy the files over to the web server. However, the first visitor pays the price in terms of when the site gets compiled for the first time. The publish option does this work before the deployment. It compiles the website project and produces assemblies that are ready to run. There is an option in the publish to leave the aspx files as is so that those can be modified. In both cases there are no .cs files as those have been compiled to the assemblies. Check Walkthrough: Publishing a Web Site for more details.
HTH