<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Condition="Exists('$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets')" Project="$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> --> </Project>
こんなんを用意して、スニペットに登録すると楽だよ
<?xml version="1.0" encoding="utf-8"?> <CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <Header> <Title>ExpressでStyleCop</Title> <Author>Jun</Author> <Description>Ver4.7系に限定!あらかじめStyleCopのインスコが必要です。</Description> <SnippetTypes> <SnippetType>SurroundsWith</SnippetType> <SnippetType>Expansion</SnippetType> </SnippetTypes> </Header> <Snippet> <Code Language="XML"> <![CDATA[<Import Condition="Exists('$$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets')" Project="$$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets"/> ]]> </Code> </Snippet> </CodeSnippet>
0 件のコメント:
コメントを投稿