Compilation and compilation, compilation
There is not much content in this configuration section, but there is still a bit of content about ASP. NET compilation. I think it is just a bit easier to understand, mainly affecting deployment.
Use multiple programming languages in the App_Code folder
Because the source code in the App_Code folder must be compiled into a single assembly, all files in the App_Code folder must be written in the same programming language. For example, the App_Code folder cannot contain source code written in Visual Basic and C # at the same time.
However, you can configure a Web application to process the subfolders in the App_Code folder as independent compilation units. In this way, each folder can contain the source code written in different programming languages. Create a compilation element in the codeSubDirectories element of the Web. config file and add a reference to the sub-folder to specify the configuration. The following example illustrates how to configure the subfolders VBCode and CSCode to compile them into different assemblies:
<compilation debug="false"><codeSubDirectories><add directoryName="VBCode" /><add directoryName="CSCode" /></codeSubDirectories></compilation>
From
Compile folder location
By default, When you compile a Web application, the compiled code is stored in the Temporary ASP. NET Files folder. This folder is a subdirectory where you install the. NET Framework. Generally, the location is as follows:
% SystemRoot % \ Microsoft. NET \ Framework \ versionNumber \ Temporary ASP. NET Files
Generally, during the development process, the application port number determines the path of the compiling folder, and after VS is enabled, the current solution will be automatically compiled through this path, therefore, if the two sites have the same port number, the compilation result of the solution that is opened later will overwrite the compilation result that is opened first, that is, even if the solution that is opened earlier is debugged, the actual running is the application of the solution opened later.
The following is common in the compliation section, specifying whether the compiled dll is the debug mode or the release mode, and specifying the. NET Framwork version.
<compilation debug="true" targetFramework="4.0" />
In addition, the default language for compiling is vb, but in. no relevant settings are found in the default configuration file of NET Framework4, but not in the configuration section of the application. How can I decide the language to compile here ????
Overview of ASP. NET pre-Compilation
From
Understand ASP. NET Dynamic Compilation
From
Compilation element (ASP. NET architecture)
From