Compilation and compilation, compilation

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.