Asp. Eight best practices in net development

Source: Internet
Author: User

1. Use version control of your assembly

Make sure you have a proper version control policy, and you can use the assembly version attribute at compile time to apply the version flag, for example:

[Assembly: Assembly Version ("1.0.12.34")]

The same version number is typically applied to an application during the build process.

2. Take a strong name for the Assembly

Assemblies are the smallest unit of version control and code reuse, including:

Assembly identity Information (name, version, etc.)

Inventory and Meta data information

MSIL code

Type and security information

Resources

An assembly with a strong name can uniquely identify it with its version information, zone information, and digital signature.

can be used. NET Framework provides a utility (Sn.exe) for your assembly to create a strong name, this utility requires you to provide a key file as a parameter, the result file is called the "Strong name" file, you can use the Sn.exe tool from the command line to create a strong name key file, such as:

SN--k mycompany.snk

When you execute the previous command, you will see the output of the content as shown in Figure 1.

"51CTO Exclusive Translation" explores some of the best practices in asp.net application development, which can improve your application performance by following these useful procedures. This article presents eight best practices that you can follow when developing asp.net applications in production patterns.

1. Use version control of your assembly

Make sure you have a proper version control policy, and you can use the assembly version attribute at compile time to apply the version flag, for example:

[Assembly: Assembly Version ("1.0.12.34")]

The same version number is typically applied to an application during the build process.

2. Take a strong name for the Assembly

Assemblies are the smallest unit of version control and code reuse, including:

Assembly identity Information (name, version, etc.)

Inventory and Meta data information

MSIL code

Type and security information

Resources

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.