. Net programmers

Source: Internet
Author: User
Tags dotnet reflector
. Net programmers

I.. netProgramTen tools-Visual Studio converter (converter tool)
The Visual Studio. NET project converter (SEE) is very similar to ASP. NET version switcher. The difference is that it is used to convert the version of the Visual Studio project file. However.. NET Framework Version 1.0 and 1.1 are only slightly different, but once the project file is removed from Visual Studio.. NET 2002 to Visual Studio. NET 2003, and it cannot be converted back. Although this may not be a problem in most cases (because in. net Framework Version 1.0 and Version 1.1 have almost no disruptive changes), but at some point you may need to switch the project back. This converter can save any solution or project file from Visual Studio 7.1 (Visual Studio.. NET 2003) to Visual Studio 7.0 (Visual Studio. NET 2002), and perform reverse conversion if necessary.

The Visual Studio. Net project converter is written by dacris software. This tool can be downloaded from the http://www.codeproject.com/macro/vsconvert.asp

Ii. 10. Net programmers-Asp. Net version switcher (converter tool)

ASP. NET version switcher
ASP. NET version switcher, which can be used to convert the version of ASP. NET (the virtual directory runs under it.

When IIS processes a request, it will view the extension of the file being requested, and then delegate the request to the ISAPI extension or process the request based on the extension ing of the web site or virtual directory. This is exactly how ASP. NET works. It registers extension mappings for all ASP. NET extensions and directs these extension mappings to aspnet_isapi.dll. This method works perfectly unless you have installed ASP. NET 1.1-it will update the extension ing to the new version of aspnet_isapi.dll. This can cause errors when an application generated on ASP. NET 1.0 tries to run on version 1.1. To solve this problem, you can reconvert all extension mappings to aspnet_isapi.dll of version 1.0. However, it is boring to manually complete this task because of 18 extension mappings. This is exactly when ASP. NET version switcher can play a role. Using this small utility, you can convert the version of the. NET Framework used by any single ASP. NET application.

ASP. NET version switcher is written by Denis Bauer and can be downloaded from the http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx.

3. 10. Net programmers-nant (used to generate solutions)

Nant
Nant is A. Net-based generation tool. Unlike the current version of Visual Studio. NET, it makes the creation and generation process of your project very easy. When you have a large number of developers engaged in a single project, you cannot rely on generating from the seat of a single user. You do not want to manually generate the project on a regular basis. You are more willing to create an automatic generation process that runs every night. Nant allows you to generate solutions, copy files, run nunit tests, send emails, and so on. Unfortunately, Nant lacks a beautiful graphical interface, but it does have console applications and XML files that can specify which tasks should be completed during the generation process. Note that msbuild (a new generation platform of Visual Studio 2005) Prepares for each robust generation scheme and is driven in a similar way by XML-based project files.

Iv. Net programmers 10 tools-ndoc (used to createCodeDocumentation)

Writing code documents in ndoc is almost always a daunting task. What I'm talking about is not an early design document, or even a more detailed design document; what I'm talking about is various methods and attributes in the record class. The ndoc tool can use reflection to analyze the Assembly and automatically generate documentation for the code using the XML generated from the C # xml annotation. XML annotation is only applicable to C #, but there is a Visual Studio. net power toy named vbcommenter, which can do similar work for Visual Basic. net. In addition, the next version of Visual Studio supports XML annotations for more languages. When ndoc is used, you are still writing the technical documentation of the code, but you have completed the compilation of the documentation (in XML annotations) while writing the code, which is more tolerable. When using ndoc, the first step is to enable the XML annotation generation function for your assembly. Right-click the project, select Properties, configuration properties, and build, and enter the path to save the XML file in the XML documentation file option. When the project is generated, an XML file containing all XML annotations is created.

Ndoc is an openSource codeProject, and can be downloaded from the http://ndoc.sourceforge.net.

V. Net programmer: 10 tools-. Net reflector (used to analyze Assembly)

The next essential tool is. Net reflector. It is a class browser and anti-compiler that can analyze an assembly and show you all its secrets .. The Net Framework introduces reflection concepts that can be used to analyze any. Net-based code (whether it is a single class or a complete assembly) all over the world. Reflection can also be used to retrieve information about various types, methods, and attributes contained in a specific set of programs. Use. net reflector, you can browse the Assembly classes and methods, you can analyze the Microsoft intermediate language (msil) generated by these classes and methods ), in addition, you can decompile these classes and methods and view C # Or Visual Basic ?. . Net. To demonstrate how. Net reflector works, I will load and analyze the nunitexample Assembly shown earlier. Displays the Assembly loaded in. Net reflector. In. Net reflector, there are various tools available to further analyze the assembly. To view the msil that constitutes a method, click the method and select discycler from the menu.

. Net reflector is written by Lutz roeder and can be downloaded from http://www.aisto.com/roeder/dotnet.

6. Net programmers 10 tools-fxcop (used to monitor code)

The fxcop. NET Framework is very powerful, which means there is a great possibility of creating excellent applications, but there is also the possibility of creating inferior programs. Fxcop is one of the tools that help you create better applications. It uses the following methods: enables you to analyze the Assembly and use different rules to check whether it complies with these rules. Fxcop is accompanied by a fixed number of rules created by Microsoft, but you can also create and include your own rules. For example, if you decide that all classes should have a default constructor without any parameters, you can write a rule to ensure that each class of the Assembly has a constructor. In this way, no matter who writes the code, you will get a certain degree of consistency. For more information about creating custom rules, see the bugslayer column for this topic in John Robbins.Article(Msdn? Magazine June 2004 ). So let's take a look at the actually running fxcop and see what errors it has found in the nunitexample program I 've been working on. When you open fxcop, you first need to create a fxcop project and then add the assembly to be tested. After the Assembly is added to the project, you can press analyze and fxcop will analyze the assembly. Displays the errors and warnings found in the set. Fxcop found several problems in my program set. You can double-click an error to view details, including the rule description and where to find more information. (One interesting thing you can do is to run fxcop on the Framework Assembly and view what happened .) Fxcop can help you create better and more consistent code, but it cannot compensate for poor application design or very simple and poor programming. Fxcop cannot replace peer-to-peer code check, but because it can capture a large number of errors before code check, you can spend more time solving serious problems without worrying about naming conventions. Fxcop is developed by Microsoft and can be downloaded from the http://www.gotdotnet.com/team/fxcop.

Seven. Net programmers 10 tools-nunit (used to write unit tests)

Nunit is an open source code unit test framework generated for the. NET Framework. Nunit allows you to write tests in your preferred language to test specific functions of your application. When you write the code for the first time, unit testing is a good way to test the code function. It also provides a regression test method for the application. The nunit application provides a framework for compiling unit tests and a graphical interface for running these tests and viewing results. Compile the nunit test as an example. I will test the hashtable class function in the. NET Framework to determine whether two objects can be added and then retrieved. My first step is to add a reference to the nunit. Framework Assembly, which grants me access to nunit framework attributes and methods.

8. Net programmers 10 tools-codesmith (used to generate code)

Codesmith is a template-based code generation tool that uses syntax similar to ASP. NET to generate any type of code or text. Unlike many other code generation tools, codesmith does not require you to subscribe to specific application designs or architectures. Codesmith can be used to generate anything including a simple set of strong types and a complete application. When you generate an application, you often need to repeat some specific tasks, such as writing data access code or generating a custom set. Codesmith is especially useful in these cases because you can write templates to automatically complete these tasks, which not only improves your work efficiency, but also automatically complete the most boring tasks. Codesmith comes with many templates, including templates corresponding to all. Net Collection types and templates used to generate stored procedures. But the real power of this tool is the ability to create custom templates. To help you get started, I will quickly introduce how to generate custom templates. The codesmith template is only a text file that can be created in any text editor. Their only requirement is to use the. CST file extension to save them. The sample template I will generate will accept a string and then generate a Class Based on the string. The first step to create a template is to add a template header, which can declare the template language, target language, and brief template Description: The next part of the template is the attribute declaration, here, you can declare the attributes that will be specified during each execution of the template. For this template, the unique attribute I want to use is only a string, so the attribute declaration is as follows: This attribute Declaration will make the classname attribute appear in the codesmith attribute window, you can specify this parameter when the template is running. The next step is to actually generate the Template subject, which is very similar to encoding with ASP. NET. You can view the entity of the template in the following code block.

Codesmith is written by Eric J. Smith and can be downloaded from the http://www.ericjsmith.net/codesmith.

9. Net programmer 10 tools-regulator (used to generate regular expressions)

Regulator regulator is the last added to my first-class tool list. It is a distinctive tool that makes it easy to generate and test regular expressions. People are interested in regular expressions because they are well supported in the. NET Framework. Regular expressions are used to define the pattern in a string based on characters, frequencies, and character sequence. They are most commonly used as a means to verify the validity of user input or as a method to search for strings in a large string-for example, searching for URLs or email addresses on a web page. Regulator allows you to enter a regular expression and some input content for running the expression. In this way, before implementing this regular expression in an application, you can understand what effect it will produce and what types of matching items it will return. Displays the regulator with a simple regular expression. This regular expression is included in the document-in this example, it is [0-9] * and should match any number of numbers in a row. The lower-right box contains the input for this regular expression, while the lower-left box shows the matching items found in this regular expression. Writing and testing Regular Expressions in such a separate application is much easier than trying to process them in your application. One of the best functions of regulator is to search for the online Regular Expression Library in regexlib.com. For example, if you enter the string "phone" in the search box, you will find more than 20 regular expressions that match different phone numbers, including expressions used in the UK and Australia and many other phone numbers.

Regulator is written by Roy osherove and can be downloaded from the http://royo.is-a-geek.com/regulator.

10. Net programmers 10 tools-snippet Compiler (used to compile a small amount of code)

Snippet compiler is based on windows? You can use it to compile, compile, and run code. This tool is useful if you have a small code segment and you do not want to create a complete Visual Studio. NET project (and all files that accompany the project) for it. Note: Visual Basic versions earlier than 6.0 can run and debug without saving project files, which is very convenient. This feature is useful when writing a small program temporarily. After Visual Studio. NET, you have to create and save many files like Visual C ++, even for a very small project. However, it is said that this feature will be restored after Visual Studio 2005 Express, which sounds great. For example, suppose I want to explain how to use Microsoft ?. . NET Framework to start another application. In snippet compiler, I will start by creating a file that can create a small console application. You can create code snippets in the main method of the console application, which is exactly what I want to do here.

Snippet compiler is written by Jeff key and can be downloaded from the http://www.sliver.com/dotnet/SnippetCompiler.

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.