Skip to content

Instantly share code, notes, and snippets.

@lukesmith
Created May 19, 2011 13:26
Show Gist options
  • Save lukesmith/980750 to your computer and use it in GitHub Desktop.
Save lukesmith/980750 to your computer and use it in GitHub Desktop.
common target file for sharing settings across projects
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(ToolsDir)' == ''">
<ToolsDir>$(SolutionDir)\Tools\</ToolsDir>
</PropertyGroup>
<PropertyGroup>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
<StyleCopAnalysisTarget Condition=" '$(StyleCopAnalysisTarget)' == '' ">$(ToolsDir)StyleCop\Microsoft.SourceAnalysis.targets</StyleCopAnalysisTarget>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>618</WarningsNotAsErrors>
</PropertyGroup>
<Import Project="$(StyleCopAnalysisTarget)" />
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment