Ways to manually generate DLL files from asp.net classes-practical tips

Source: Internet
Author: User
Start-Program-"Microsoft Visual Studio 2005-" Visual Studio tools-Visual Studio 2005 command prompt
Then enter your class directory, such as your class file is under E:/test/app_code,
Enter the following command:
Csc/target:library File.cs

Where File.cs is your class file.

You can then generate a DLL file with the same name!!!

Custom server controls fall into two categories:
1. One is compiled with *.aspx code and *.cs code to build the DLL, and then add references to the Toolbox for use.
Generally used in WebForm.
2. The other is to use only the *.cs implementation, and then compile the build DLL and add it to the toolbox.
Generally used in WinForm.
Custom Control Generation steps:
Like what:
1. Drag a button from the designer to the page,
Set a fixed value on the button size, color, or text to save the file name: A.cs
2. Csc/r:system.dll/t:library/out:. \.. \a.dll A.cs
3. Right-click in the Toolbox space, pop-up right-click menu, select "Add Remove", will just build the DLL
Add it to the toolbox so that you can drag like a button to use the

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.