{"id":263894,"date":"2015-08-19T17:23:02","date_gmt":"2015-08-19T13:23:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=263894"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=263894","title":{"rendered":"\u0412\u043d\u0435\u0434\u0440\u044f\u0435\u043c StyleCop \u0432 MSBuild"},"content":{"rendered":"<p>     \t\u0412\u0441\u0451 \u0447\u0430\u0449\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 CI. \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0441 MSBuild, \u044f \u0432\u0441\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0431\u0435\u0436\u0434\u0430\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0438\u043c \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0438 \u0432 \u0440\u0443\u043d\u0435\u0442\u0435 \u0432\u0446\u0435\u043b\u043e\u043c, \u043d\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u044f \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u043d\u0435\u043c\u0443 \u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0431\u0435\u043b \u043f\u043e \u043c\u0435\u0440\u0435 \u0441\u0438\u043b \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<br \/>  \u0418\u0442\u0430\u043a, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c<\/p>\n<h2>StyleCop<\/h2>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430: \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u043e\u0434\u0430 (C#) \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0423\u0441\u043b\u043e\u0432\u0438\u0435: \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e, \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0422.\u0435. \u0432\u0435\u0441\u044c \u043a\u043e\u0434, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0439 \u2014 build error \u0438 \u0432\u043f\u0435\u0440\u0451\u0434, \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u044c.<\/p>\n<p>  \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: <a href=\"http:\/\/stylecop.codeplex.com\/\">StyleCop<\/a>, MSBuild (TFS \u0438\u043b\u0438 TeamCity \u2014 \u043d\u0435\u0432\u0430\u0436\u043d\u043e).<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a. \u041c\u044b \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 StyleCop. \u041c\u044b \u0432 \u043a\u0443\u0440\u0441\u0435 \u043f\u0440\u043e \u043b\u0435\u043d\u044c \u0438 \u0431\u0435\u0437\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u043c\u044b \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u043c. \u0422.\u0435. VSIX, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0438\u0437 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 StyleCop, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u044b\u0448\u0435, \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432 \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0436\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\/\u0441\u043e\u043b\u044e\u0448\u043d \u0438 \u0434\u0435\u043b\u0430\u0442\u044c Run Stylecop, \u043d\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442.<br \/>  \u0412\u0441\u044f\u043a\u0438\u0435 StyleCop Checkin Policy \u2014 \u0442\u043e\u0436\u0435 \u043d\u0435 \u043d\u0430\u0448 \u043f\u0443\u0442\u044c. \u041f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043e\u043d\u0438 \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u044b \u043d\u0430 TFS, \u043f\u0440\u0438\u0442\u043e\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 Git for TFS, \u043c\u044b \u0443\u0436\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u043c \u044d\u0442\u0438 policy. \u041d\u0435, \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c (\u0445\u043e\u0442\u044f, \u0447\u0438\u0441\u0442\u043e \u0438\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u00ab\u0433\u0440\u044f\u0437\u043d\u044b\u0439\u00bb \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439).<\/p>\n<p>  \u0417\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434 \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c<sup><b>1<\/b><\/sup>. \u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0441\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0432 MSBuild pipeline. \u0411\u043b\u0430\u0433\u043e, \u0431\u041e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0437\u0430 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0441\u0434\u0435\u0434\u0430\u043b\u0438 \u2014 \u0441 nuget-\u043f\u0430\u043a\u0435\u0442\u0435 <a href=\"https:\/\/www.nuget.org\/packages\/StyleCop.MSBuild\/\">StyleCop.MSBuild<\/a> \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u042d\u0442\u043e \u0438 \u0444\u0430\u0439\u043b\u044b \u0441\u0430\u043c\u043e\u0433\u043e StyleCop (\u043a\u043b\u0430\u0441\u0441 StyleCopTask, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c Task \u0434\u043b\u044f MSBuild \u0435\u0441\u0442\u044c \u0443\u0436\u0435 \u0432 \u0441\u0430\u043c\u043e\u0439 StyleCop.dll), \u0438 \u0434\u0435\u0444\u043e\u043b\u0442\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 (<i>StyleCop.Settings<\/i>) \u0438, \u0447\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 StyleCop.MSBuild.targets. \u0412\u043e\u0442 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438 \u043d\u0443\u0436\u0435\u043d.<\/p>\n<h2>\u041a\u0430\u043a \u0431\u0443\u0434\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c\u0441\u044f?<\/h2>\n<p>  \u0414\u043b\u044f MSBuild \u0435\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e-\u0442\u0430\u043a\u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/92x05xfs.aspx\"> ImportBefore\/After<\/a>. \u0415\u0441\u043b\u0438 \u0432\u043a\u0440\u0430\u0442\u0446\u0435:  <\/p>\n<blockquote><p>&#8230;if you want to offer an extensibility point so that someone else can import a file without requiring you to explicitly add the file name to the importing file. For this purpose, Microsoft.Common.Targets contains the following line at the top of the file.  <\/p>\n<pre><code class=\"xml\">&lt;Import Project=&quot;$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\$(MSBuildThisFile)\\ImportBefore\\*&quot; Condition=&quot;'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\$(MSBuildThisFile)\\ImportBefore')&quot;\/&gt; <\/code><\/pre>\n<p>  <\/p><\/blockquote>\n<p>  \u0418 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u044b \u0438\u0437 <i>ImportAfter<\/i>. \u0422.\u0435. \u043f\u0440\u0438 <b>\u043a\u0430\u0436\u0434\u043e\u0439<\/b> \u0441\u0431\u043e\u0440\u043a\u0435 MSBuild \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b\u044b, \u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u0432 <i>$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.Targets\\ImportBefore\\<\/i> \u0438 ImportAfter. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u2014 \u043f\u0435\u0440\u0435\u0434 \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (sln\/csproj\/\u0434\u0440\u0443\u0433\u043e\u0439 proj), \u044d\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f\u2026 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u043f\u043e \u043f\u0443\u0442\u0438 \u043e\u0431\u0435\u0437\u044c\u044f\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b: \u0441\u043a\u0430\u0447\u0430\u0442\u044c .msi \u0441 \u0441\u0430\u0439\u0442\u0430 stylecop, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435, \u0433\u0434\u0435 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f MSBuild, \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0442\u0430\u043c \u0436\u0435 \u0440\u0443\u043a\u0430\u043c\u0438 \u0444\u0430\u0439\u043b .targets\u2026<br \/>  \u041d\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0448\u0438\u043d \u0441 \u0431\u0438\u043b\u0434-\u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 (\u0440\u0430\u043d\u044c\u0448\u0435 TFS, \u0441\u0435\u0439\u0447\u0430\u0441 \u0435\u0449\u0451 \u0438 \u043f\u043e\u0434 TeamCity) \u0438 \u043d\u0430 \u0432\u0441\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\/\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438 \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f. \u041d\u0435 \u0434\u0430\u0439 \u0431\u043e\u0433 \u0435\u0449\u0451 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u043b\u0438\u0432\u0430\u0442\u044c\u2026 \u043d\u0435\u0442 \u0443\u0436, \u0443\u0432\u043e\u043b\u044c\u0442\u0435. <\/p>\n<h2>\u0411\u0443\u0434\u0435\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/h2>\n<p>  \u0420\u0430\u0437 \u0443\u0436 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c TFS\/TeamCity, \u0442\u043e \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0439\u0442\u0438 \u0432 \u043b\u043e\u0431. \u0414\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432:  <\/p>\n<pre> \/ \u251c[lib] \u2502   \u251cmssp7en.dll \u2502   \u251cmssp7en.lex \u2502   \u251cSettings.StyleCop \u2502   \u251cStyleCop.CSharp.dll \u2502   \u251cStyleCop.CSharp.Rules.dll \u2502   \u251cStyleCop.dll \u251c[targets] \u2502   \u251cStyleCop.MSBuild.Targets \u2514build.proj <\/pre>\n<h4>build.proj<\/h4>\n<p>  \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e project-\u0444\u0430\u0439\u043b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 msbuild, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0430\u0433\u0435\u043d\u0442\u0435 \u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u044e \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u043c\u0435\u0441\u0442\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0442\u0430\u043a\u043e\u0435<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;Project ToolsVersion=&quot;4.0&quot; DefaultTargets=&quot;StyleCopUpdate&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/developer\/msbuild\/2003&quot;&gt;  \t&lt;PropertyGroup&gt; \t\t&lt;StyleCopTargetsFolder Condition=&quot;'$(StyleCopTargetsFolder)' == ''&quot;&gt;$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.targets\\ImportAfter&lt;\/StyleCopTargetsFolder&gt; \t\t&lt;StyleCopFolder Condition=&quot;'$(StyleCopFolder)' == ''&quot;&gt;$(MSBuildExtensionsPath)\\StyleCop&lt;\/StyleCopFolder&gt; \t&lt;\/PropertyGroup&gt;  \t&lt;Target Name=&quot;StyleCopUpdate&quot; DependsOnTargets=&quot;StyleCopClear&quot;&gt; \t\t&lt;ItemGroup&gt; \t\t\t&lt;StyleCopTargets Include=&quot;$(MSBuildThisFileDirectory)targets\\ImportAfter\\StyleCop*.targets&quot; \/&gt; \t\t&lt;\/ItemGroup&gt; \t\t&lt;ItemGroup&gt; \t\t\t&lt;StyleCopLibs Include=&quot;$(MSBuildThisFileDirectory)lib\\*.*&quot; \/&gt; \t\t&lt;\/ItemGroup&gt;  \t\t&lt;MakeDir Directories=&quot;$(StyleCopTargetsFolder)&quot; Condition=&quot;!Exists('$(StyleCopTargetsFolder)')&quot; \/&gt; \t\t&lt;Copy DestinationFolder=&quot;$(StyleCopTargetsFolder)&quot; SourceFiles=&quot;@(StyleCopTargets)&quot; SkipUnchangedFiles=&quot;true&quot; OverwriteReadOnlyFiles=&quot;true&quot; \/&gt;  \t\t&lt;MakeDir Directories=&quot;$(StyleCopFolder)&quot; Condition=&quot;!Exists('$(StyleCopFolder)')&quot; \/&gt; \t\t&lt;Copy DestinationFolder=&quot;$(StyleCopFolder)&quot; SourceFiles=&quot;@(StyleCopLibs)&quot; SkipUnchangedFiles=&quot;true&quot; OverwriteReadOnlyFiles=&quot;true&quot; \/&gt; \t&lt;\/Target&gt;  \t&lt;Target Name=&quot;StyleCopClear&quot;&gt; \t\t&lt;ItemGroup&gt; \t\t\t&lt;StyleCopToDelete Include=&quot;$(StyleCopTargetsFolder)\\StyleCop*.targets&quot; \/&gt; \t\t\t&lt;StyleCopToDelete Include=&quot;$(StyleCopFolder)\\*.*&quot; \/&gt; \t\t&lt;\/ItemGroup&gt;  \t\t&lt;Delete Files=&quot;@(StyleCopToDelete)&quot; TreatErrorsAsWarnings=&quot;true&quot; Condition=&quot;@(StyleCopToDelete) != ''&quot; \/&gt; \t&lt;\/Target&gt; &lt;\/Project&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0432 msbuild.exe build.proj \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<br \/>  0. \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u2014 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435<br \/>  1. \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 targets \u0432 <i>$(MSBuildExtensionsPath)\\$(MSBuildToolsVersion)\\Microsoft.Common.targets\\ImportAfter<\/i> (\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u043e\u0433\u043e MSBuild \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 <i>C:\\Program Files (x86)\\MSBuild\\14.0\\Microsoft.Common.Targets\\ImportAfter<\/i><br \/>  2. \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 lib \u0432 $(MSBuildExtensionsPath)\\StyleCop (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <i>C:\\Program Files (x86)\\MSBuild\\StyleCop<\/i>)<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432 TFS\/TeamCity \u0431\u0438\u043b\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 Continuous Integration \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0432 \u044d\u0442\u043e\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431 \u043e\u043d \u043f\u0440\u043e\u0433\u043d\u044f\u043b\u0441\u044f \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0430\u0433\u0435\u043d\u0442\u0435. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435 \u0430\u0433\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u043e \u0441\u0432\u0435\u0436\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432\/dll\/\u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 StyleCop. \u041c\u0438\u043b\u043e\u0442\u0430.<\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c StyleCop<\/h2>\n<p>  \u0412 StyleCop.MSBuild.targets \u043d\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0449\u0438.<br \/>  1. \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c StyleCop. \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u043c\u0435\u043d\u044f\u0435\u043c false \u043d\u0430 true:  <\/p>\n<pre><code class=\"xml\">  &lt;PropertyGroup Condition=&quot;'$(StyleCopEnabled)' == ''&quot;&gt;     &lt;StyleCopEnabled&gt;true&lt;\/StyleCopEnabled&gt;   &lt;\/PropertyGroup&gt;   &lt;PropertyGroup Condition=&quot;'$(StyleCopTreatErrorsAsWarnings)' == ''&quot;&gt;     &lt;StyleCopTreatErrorsAsWarnings&gt;false&lt;\/StyleCopTreatErrorsAsWarnings&gt;   &lt;\/PropertyGroup&gt; <\/code><\/pre>\n<p>  (\u0432\u0442\u043e\u0440\u043e\u0435 \u2014 \u0447\u0442\u043e\u0431 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u044b\u0432\u0430\u043b\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0432 Error, \u0430 \u043d\u0435 Warn).<br \/>  2. \u041f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0442\u044c \u043a StyleCop.dll  <\/p>\n<pre><code class=\"xml\">  &lt;UsingTask AssemblyFile=&quot;$(MSBuildExtensionsPath)\\StyleCop\\StyleCop.dll&quot; TaskName=&quot;StyleCopTask&quot;\/&gt; <\/code><\/pre>\n<p>  \u0438 \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443  <\/p>\n<pre><code class=\"xml\">  &lt;PropertyGroup Condition=&quot;'$(StyleCopOverrideSettingsFile)' == '' and Exists('$(MSBuildExtensionsPath)\\StyleCop\\Settings.StyleCop')&quot;&gt; \t&lt;StyleCopOverrideSettingsFile&gt;$(MSBuildExtensionsPath)\\StyleCop\\Settings.StyleCop&lt;\/StyleCopOverrideSettingsFile&gt;   &lt;\/PropertyGroup&gt; <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u043d\u044e\u0430\u043d\u0441.<\/p>\n<h4>\u0424\u0430\u0439\u043b Settings.StyleCop<\/h4>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043b\u0430 StyleCop \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043f\u043e\u0440\u043d\u044b. \u0422\u0430\u043c \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u043a \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u0430\u043a \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u043d\u0430\u043c. \u041f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 .msi \u0441 \u0441\u0430\u0439\u0442\u0430 \u0438 \u043e\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0437\u0430\u043e\u0434\u043d\u043e <i>StyleCopSettingsEditor.exe<\/i> \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 GUI \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0440\u0430\u0432\u0438\u043b.<br \/>  \u0424\u043e\u043a\u0443\u0441 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 StyleCop \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0438 \u0434\u0435\u0444\u043e\u043b\u0442\u043e\u0432\u044b\u0435 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438\u0437 \u0442\u043e\u0433\u043e, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0430\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0438\u0437 msi (\u043f\u0440\u0430\u0432\u0434\u0430, \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0449\u0451 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0451 \u0434\u0435\u0440\u0435\u0432\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0432\u0432\u0435\u0440\u0445 \u0432 \u043f\u043e\u0438\u0441\u043a\u0430\u0445 .stylecop-\u0444\u0430\u0439\u043b\u0430, \u0447\u0442\u043e\u0431 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u0442\u043e\u0436\u0435).<br \/>  \u0422\u0430\u043a \u0447\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432 \u0444\u0430\u0439\u043b \u0432 \u0441\u0432\u043e\u0435\u0439 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0430\u043f\u043a\u0435, \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0432, \u0432\u044b \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e <b>\u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043e\u0442 \u0434\u0435\u0444\u043e\u043b\u0442\u0430<\/b>. \u0418 \u0435\u0441\u043b\u0438 \u0432\u044b \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u0441\u0432\u043e\u0439 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0442\u043e \u0443 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043d\u0451\u043c. \u0412\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0445 \u043f\u043e-\u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u043f\u0440\u0430\u0432\u0438\u043b StyleCop \u043f\u043e\u0434 MSBuil&#8217;\u043e\u043c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<br \/>  \u0427\u0442\u043e\u0431 \u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438 \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0435\u0433\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0432 \u0441\u0432\u043e\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/024\/910\/d2d\/024910d2d9d54c1cbf785b16bf0d4e45.png\"\/><br \/>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Settings.StyleCop \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d \u0432 default.StyleCop \u0438 \u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0440\u044f\u0434\u043e\u043c.<\/p>\n<h4>\u0427\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435?<\/h4>\n<p>  \u0418\u043c\u0435\u0435\u043c \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u043e\u0434\u0430 \u0447\u0435\u0440\u0435\u0437 StyleCop. \u041d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u043d\u044b \u0441\u0440\u0430\u0437\u0443 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u0431\u0438\u043b\u0434-\u043b\u043e\u0433\u0435.<br \/>  \u0418\u043c\u0435\u0435\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 stylecop \u043d\u0430 \u0431\u0438\u043b\u0434-\u043c\u0430\u0448\u0438\u043d\u0430\u0445.<\/p>\n<p>  PS: \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0433\u043d\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u044d\u0442\u043e\u0442 \u00abmsbuild.exe build.proj\u00bb. \u0422\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u043d\u044b \u0441\u0440\u0430\u0437\u0443 \u0432 \u0441\u0442\u0443\u0434\u0438\u0438. \u0422.\u0435. msbuild \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u0438 ImportBefore\/After \u0434\u0430\u0436\u0435 \u043a\u043e\u0433\u0434\u0430 \u0438\u0437 \u0441\u0442\u0443\u0434\u0438\u0438 \u043f\u0440\u043e\u0433\u043e\u043d\u044f\u0435\u0442\u0441\u044f. \u0411\u0435\u0437 \u0432\u0441\u044f\u043a\u0438\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0437\u0430\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0432 Error List \u2014 \u0437\u043d\u0430\u0439 \u0441\u0435\u0431\u0435 \u043a\u043b\u0438\u043a\u0430\u0439 \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 \u0438 \u043f\u0440\u0430\u0432\u044c \u0442\u0430\u043c, \u043a\u0443\u0434\u0430 \u0441\u0442\u0443\u0434\u0438\u044f \u043a\u0443\u0440\u0441\u043e\u0440 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442. \u0411\u0435\u0437 \u0432\u044b\u0447\u0438\u0442\u043a\u0438 \u043b\u043e\u0433\u043e\u0432 \u0441 \u0431\u0438\u043b\u0434-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  <sup><b>1<\/b><\/sup>. \u042f \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f TFS \u0447\u0435\u0440\u0435\u0437 ISubscriber, \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u043e <a href=\"http:\/\/almsports.net\/tfs-server-side-check-in-policy-for-git-repositories\/1025\/\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u043d\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u0443\u0442\u043e\u043d\u0443\u043b \u0432 \u0441\u043a\u0443\u0434\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u043e\u043b\u043d\u043e\u043c \u043e\u0442\u0441\u0443\u0442\u0441\u0432\u0438\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 (&quot;<i>drop the assembly in the plugins directory on your server C:\\Program Files\\Microsoft Team Foundation Server 12.0\\Application Tier\\Web Services\\bin\\Plugins. Then recycle your app pool and the plugin will be activated.<\/i>&quot; \u2014 \u044d\u0442\u043e \u0441\u043c\u0435\u0448\u043d\u043e), \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439 \u0438 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043a\u043b\u0430\u0441\u0441\u043e\u0432\/\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.teamfoundation.git.server(v=vs.120).aspx\">Microsoft.TeamFoundation.Git.Server<\/a> \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0441 \u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c. \u0410 \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0435\u0431\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u044d\u0442\u043e \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0434 TFS2015 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u2014 \u0441\u0434\u0435\u043b\u0430\u043b Close solution \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/265081\/\"> http:\/\/habrahabr.ru\/post\/265081\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0412\u0441\u0451 \u0447\u0430\u0449\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 CI. \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u0441 MSBuild, \u044f \u0432\u0441\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0431\u0435\u0436\u0434\u0430\u044e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u0438\u043c \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0438 \u0432 \u0440\u0443\u043d\u0435\u0442\u0435 \u0432\u0446\u0435\u043b\u043e\u043c, \u043d\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u044f \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u043d\u0435\u043c\u0443 \u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0431\u0435\u043b \u043f\u043e \u043c\u0435\u0440\u0435 \u0441\u0438\u043b \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<br \/>  \u0418\u0442\u0430\u043a, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c<\/p>\n<h2>StyleCop<\/h2>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430: \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u043e\u0434\u0430 (C#) \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0423\u0441\u043b\u043e\u0432\u0438\u0435: \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e, \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e. \u0422.\u0435. \u0432\u0435\u0441\u044c \u043a\u043e\u0434, \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d \u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0439 \u2014 build error \u0438 \u0432\u043f\u0435\u0440\u0451\u0434, \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u044c.<\/p>\n<p>  \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: <a href=\"http:\/\/stylecop.codeplex.com\/\">StyleCop<\/a>, MSBuild (TFS \u0438\u043b\u0438 TeamCity \u2014 \u043d\u0435\u0432\u0430\u0436\u043d\u043e).  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-263894","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263894"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/263894\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}