This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
OctoHook.props
51 lines (42 loc) · 2.04 KB
/
OctoHook.props
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\SemanticGit\build\SemanticGit.props" />
<!-- Our own new custom properties -->
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<BuildRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), .gitignore))</BuildRoot>
<BuildRoot Condition="!HasTrailingSlash('$(BuildRoot)')">$(BuildRoot)\</BuildRoot>
<SolutionDir>$(BuildRoot)</SolutionDir>
<!-- Tell SemanticGit to always use releaseable version for assembly and package -->
<AssemblyVersionFormat>MAJOR.MINOR.PATCH</AssemblyVersionFormat>
</PropertyGroup>
<!-- Enable opening the solution in VS2012 and 2013 -->
<!-- This is the property that causes VS 2012+ to insist on one-way update of the project -->
<PropertyGroup Condition="'$(VisualStudioVersion)' >= '11.0'">
<MinimumVisualStudioVersion>$(VisualStudioVersion)</MinimumVisualStudioVersion>
</PropertyGroup>
<!-- This is the property that causes VS 2013 to insist on one-way update of the project -->
<PropertyGroup Condition="'$(VisualStudioVersion)' >= '12.0'">
<OldToolsVersion>4.0</OldToolsVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(VisualStudioVersion)' == ''">
<VisualStudioVersion>10.0</VisualStudioVersion>
</PropertyGroup>
<!-- Common CSharp properties -->
<PropertyGroup>
<OutputPath>bin\$(Configuration)\</OutputPath>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
<Optimize>true</Optimize>
</PropertyGroup>
</Project>