|
10 | 10 | <AppDesignerFolder>Properties</AppDesignerFolder> |
11 | 11 | <RootNamespace>StatePrinting.Tests</RootNamespace> |
12 | 12 | <AssemblyName>StatePrinter.Tests</AssemblyName> |
13 | | - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
| 13 | + <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
14 | 14 | <FileAlignment>512</FileAlignment> |
15 | 15 | <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir> |
16 | 16 | <RestorePackages>true</RestorePackages> |
17 | 17 | <TargetFrameworkProfile /> |
18 | 18 | <NuGetPackageImportStamp> |
19 | 19 | </NuGetPackageImportStamp> |
| 20 | + <StyleCopOverrideSettingsFile>Settings.StyleCop</StyleCopOverrideSettingsFile> |
| 21 | + <BuildToolsStyleCopVersion>4.7.44.0</BuildToolsStyleCopVersion> |
20 | 22 | </PropertyGroup> |
21 | 23 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
22 | 24 | <DebugSymbols>true</DebugSymbols> |
|
29 | 31 | <Prefer32Bit>false</Prefer32Bit> |
30 | 32 | <CodeAnalysisRuleSet>BasicCorrectnessRules.ruleset</CodeAnalysisRuleSet> |
31 | 33 | <NoWarn>612 618</NoWarn> |
| 34 | + <StyleCopEnabled>False</StyleCopEnabled> |
32 | 35 | </PropertyGroup> |
33 | 36 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
34 | 37 | <DebugType>pdbonly</DebugType> |
35 | 38 | <Optimize>true</Optimize> |
36 | 39 | <OutputPath>bin\Release\</OutputPath> |
37 | | - <DefineConstants>TRACE</DefineConstants> |
| 40 | + <DefineConstants>TRACE;CODE_ANALYSIS</DefineConstants> |
38 | 41 | <ErrorReport>prompt</ErrorReport> |
39 | 42 | <WarningLevel>4</WarningLevel> |
40 | 43 | <Prefer32Bit>false</Prefer32Bit> |
| 44 | + <StyleCopEnabled>True</StyleCopEnabled> |
| 45 | + <StyleCopTreatErrorsAsWarnings>False</StyleCopTreatErrorsAsWarnings> |
41 | 46 | </PropertyGroup> |
42 | 47 | <ItemGroup> |
43 | 48 | <Reference Include="nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL"> |
44 | | - <HintPath>..\packages\NUnit.3.11.0\lib\net35\nunit.framework.dll</HintPath> |
| 49 | + <HintPath>..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath> |
45 | 50 | </Reference> |
46 | 51 | <Reference Include="System" /> |
47 | 52 | <Reference Include="System.Core" /> |
|
111 | 116 | <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" /> |
112 | 117 | <Error Condition="!Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.11.0\build\NUnit.props'))" /> |
113 | 118 | </Target> |
| 119 | + <Import Project="..\packages\BuildTools.StyleCop.4.7.49.0\tools\StyleCop.targets" Condition="Exists('..\packages\BuildTools.StyleCop.4.7.49.0\tools\StyleCop.targets')" /> |
| 120 | + <Target Name="___packages_BuildTools_StyleCop_4_7_49_0_tools_StyleCop_targets" Condition="$(StyleCopOutputFile)==''" BeforeTargets="BeforeBuild"> |
| 121 | + <Error Text="BuildTools_StyleCop - the BuildTools_StyleCop package has not been restored.
If you are running this from an IDE, make sure NuGet Package Restore has been enabled, then reload the solution and re-run the build.
If you are running this from the command line, run the build again.
If this is a CI server, you may want to make sure NuGet Package Restore runs before your build with:
 msbuild solution.sln /t:restorepackages" /> |
| 122 | + </Target> |
114 | 123 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
115 | 124 | Other similar extension points exist, see Microsoft.Common.targets. |
116 | 125 | <Target Name="BeforeBuild"> |
|
0 commit comments