-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.props
More file actions
54 lines (45 loc) · 2.64 KB
/
build.props
File metadata and controls
54 lines (45 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup>
<ProjectRoot>$(MSBuildThisFileDirectory)</ProjectRoot>
<SolutionDir>$(ProjectRoot)src\</SolutionDir>
<NugetPack>$(ProjectRoot)packages\</NugetPack>
<MSBuildCommunityTasksPath>$(NugetPack)MSBuildTasks.1.4.0.88\tools</MSBuildCommunityTasksPath>
<RestorePackages>true</RestorePackages>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<BaseIntermediateOutputPath>$(ProjectRoot)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<IntermediatePath>$(BaseIntermediateOutputPath)</IntermediatePath>
<OutputPath>$(ProjectRoot)bin\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
<!-- Only commandline builds should break when StyleCop warnings exist. -->
<StyleCopTreatErrorsAsWarnings Condition=" '$(StyleCopTreatErrorsAsWarnings)' == '' and '$(BuildingInsideVisualStudio)' != 'true' ">false</StyleCopTreatErrorsAsWarnings>
<StyleCopOverrideSettingsFile>$(ProjectRoot)Settings.StyleCop</StyleCopOverrideSettingsFile>
<RunCodeAnalysis Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">true</RunCodeAnalysis>
<CodeAnalysisRuleSet>$(ProjectRoot)CodeAnalysis.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>pdbonly</DebugSymbols>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
<Target Name="ExcludeGeneratedFilesFromStyleCop" BeforeTargets="StyleCop">
<ItemGroup>
<Compile Condition=" $([System.Text.RegularExpressions.Regex]::IsMatch('%(FileName)', '^TemporaryGeneratedFile')) ">
<ExcludeFromStyleCop>true</ExcludeFromStyleCop>
</Compile>
</ItemGroup>
</Target>
</Project>