Skip to content
Browse files

StyleCop and views compilation

  • Loading branch information...
1 parent 9cb3ce5 commit 382d9ed2bc977e2cdcb1b2d09c84ab5c112d8740 @dlidstrom committed Mar 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Words.Web/Words.Web.csproj
View
4 Words.Web/Words.Web.csproj
@@ -13,8 +13,9 @@
<RootNamespace>Words.Web</RootNamespace>
<AssemblyName>Words.Web</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <MvcBuildViews>false</MvcBuildViews>
+ <MvcBuildViews Condition="'$(Configuration)' == 'Release'">true</MvcBuildViews>
<UseIISExpress>false</UseIISExpress>
+ <StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\Snittlistan\</SolutionDir>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
@@ -105,6 +106,7 @@
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
+ <Import 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">

0 comments on commit 382d9ed

Please sign in to comment.
Something went wrong with that request. Please try again.