We decided to generate an XML file with all the
comments named ControlsBook2Lib.CH12.LiveSearchControls.XML, as shown in Figure 13-24.
Now, when the project is built, Visual Studio will parse the XML comments out of the code and
insert it into our XML file.
712 CHAPTER 13 ?– PACKAGING AND DEPLOYMENT
Raw XML is not the best documentation form, but many tools are available to generate
nice documentation from the XML file, such as the Visual Studio Power Toys, NDocs, or plain
old XSLT. Here is a link to Visual Studio Power Toys:
http://msdn2.microsoft.com/en-us/vstudio/aa718340.aspx
The key step is to keep up with the XML comments as you code. The MSDN documentation
has information on what tags are available to make the comments as useful as possible.
Figure 13-24. The XML documentation file settings
Summary
In this chapter, we started off with a discussion of design-time support to include data binding and
template support. After testing out the Live Search control, we next covered how to implement
licensing as part of server control deployment. We also covered the globalization/localization
features available when building custom server controls and provided an example of how to
add these features to the Live Search control.
Pages:
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907