• BuildCop应用程序的设计是一种工具,用于分析!!项目的文件(以交互方式,或在例如一日建立)根据一个定制定的规则和产生报告--例如是强命名启用,是某些项目属性设置正确,是XML文件正在产生,都会引用正确的,被命名的公约得到尊重。

    BuildCop由的命令行工具和一种XML配置文件。 当的应用程序运行,它会读取文件的配置,以找出哪些文件的分析,其运行规则,并且其报告产生的。

    基本的使用情况显示如下:

    -定义的配置文件:这XML文件确定的行动,BuildCop需要;见下文的详细配置文件。

    -运行的工具:这可以通过交互式的命令行或在一个自动化的方式,例如,在一个日建立。

    -打开的报告(s):产生的报告包含将分析结果,并允许你采取适当行动纠正问题!!文件;各种报告选项(到控制台,或者以一种XML,HTML或CSV文件)提供了框框。

    -创造其他规则和/或格式:BuildCop创建具有扩展性的心态,这样如果你想延长BuildCop运行额外的规则或提供额外的报告格式,这是相当容易提供定制的规则和格式化程序。

  • के BuildCop आवेदन के लिए बनाया गया था कि एक उपकरण का विश्लेषण करती है MSBuild परियोजना फ़ाइलें (सहभागी या के दौरान उदाहरण के लिए एक दैनिक बनाने के लिए) के अनुसार करने के लिए एक अनुकूलन सेट के नियम और रिपोर्ट उत्पन्न - जैसे मजबूत है नामकरण सक्षम होना चाहिए, कुछ कर रहे हैं परियोजना के गुण सही ढंग से स्थापित है, XML दस्तावेज़ उत्पन्न किया जा रहा है, कर रहे हैं असेंबली संदर्भ सही हैं, नामकरण सम्मेलनों का सम्मान है ।

    BuildCop के होते हैं एक आदेश-पंक्ति उपकरण है और एक XML कॉन्फ़िगरेशन फ़ाइल है । आवेदन चलाया जाता है जब, यह विन्यास फाइल पढ़ने के लिए बाहर आंकड़ा करने के लिए जो फ़ाइलों का विश्लेषण करने के लिए है, जो नियमों को चलाने के लिए, और जो रिपोर्ट उत्पन्न करने के लिए.

    बुनियादी उपयोग के लग रहा है के रूप में इस प्रकार है:

    - परिभाषित विन्यास फाइल: इस एक्सएमएल फाइल को निर्धारित करता है कि कार्यों BuildCop लेता है; नीचे देखें की जानकारी के लिए कॉन्फ़िगरेशन फ़ाइल है ।

    - उपकरण को चलाने के लिए: यह किया जा सकता सहभागी कमांड लाइन पर या एक स्वचालित तरीके से, उदाहरण के लिए, एक दैनिक का निर्माण.

    - खुला रिपोर्ट(ओं): उत्पन्न रिपोर्ट में होते हैं, विश्लेषण के परिणाम और आप की अनुमति के लिए उचित कार्रवाई करने के लिए सही मुद्दों में MSBuild फ़ाइलें; विभिन्न रिपोर्टिंग विकल्प (कंसोल के लिए, या करने के लिए एक XML, HTML या सीएसवी फाइल) प्रदान की जाती हैं बॉक्स के बाहर.

    बनाने के अतिरिक्त नियमों और/या formatters: BuildCop बनाया जाता है मन में तानाना के साथ, तो यदि आप चाहते हैं का विस्तार करने के लिए BuildCop को चलाने के लिए अतिरिक्त नियम या अतिरिक्त प्रदान रिपोर्टिंग प्रारूपों, यह काफी आसान प्रदान करने के लिए कस्टम नियमों और formatters.

  • The BuildCop application was designed to be a tool that analyzes MSBuild project files (interactively or during e.g. a daily build) according to a customizable set of rules and generates reports - e.g. is strong naming enabled, are certain project properties set correctly, is XML documentation being generated, are assembly references correct, are naming conventions respected.

    BuildCop consists of a command-line tool and an XML configuration file. When the application is run, it will read the configuration file to figure out which files to analyze, which rules to run, and which reports to generate.

    Basic usage looks as follows:

    - Define the configuration file: this XML file determines the actions that BuildCop takes; see below for the details of the configuration file.

    - Run the tool: this can be done interactively on the command-line or in an automated way, e.g. during a daily build.

    - Open the report(s): the generated reports contain the results of the analysis and allow you to take appropriate actions to correct issues in MSBuild files; various reporting options (to the console, or to a XML, HTML or CSV file) are provided out of the box.

    - Create additional rules and/or formatters: BuildCop is created with extensibility in mind, so if you would like to extend BuildCop to run additional rules or provide additional reporting formats, it's quite easy to provide custom rules and formatters.