1<?xml version="1.0" encoding="utf-8"?>
2<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  <PropertyGroup>
4    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6    <MySql Condition=" '$(MySql)' == '' ">ON</MySql>
7    <PgSql Condition=" '$(PgSql)' == '' ">ON</PgSql>
8    <ProjectGuid>{B982916F-F2F1-4975-89A6-C8BACDC65542}</ProjectGuid>
9    <OutputType>Library</OutputType>
10    <RootNamespace>Ntp.Data.Provider</RootNamespace>
11    <AssemblyName>Ntp.Data.Provider</AssemblyName>
12    <ReleaseVersion>0.8.2</ReleaseVersion>
13    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
14  </PropertyGroup>
15  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16    <DebugSymbols>true</DebugSymbols>
17    <DebugType>full</DebugType>
18    <Optimize>false</Optimize>
19    <OutputPath>..\bin</OutputPath>
20    <ErrorReport>prompt</ErrorReport>
21    <WarningLevel>4</WarningLevel>
22    <Prefer32Bit>false</Prefer32Bit>
23  </PropertyGroup>
24  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25    <DebugType>none</DebugType>
26    <Optimize>true</Optimize>
27    <OutputPath>..\bin</OutputPath>
28    <ErrorReport>prompt</ErrorReport>
29    <WarningLevel>4</WarningLevel>
30    <Prefer32Bit>false</Prefer32Bit>
31  </PropertyGroup>
32  <!-- SQL Provider definitions (debug) -->
33  <PropertyGroup Condition=" '$(Configuration)|$(Platform)|$(MySql)' == 'Debug|AnyCPU|ON' ">
34    <DefineConstants>MYSQL;TRACE;DEBUG;</DefineConstants>
35  </PropertyGroup>
36  <PropertyGroup Condition=" '$(Configuration)|$(Platform)|$(PgSql)' == 'Debug|AnyCPU|ON' ">
37    <DefineConstants>PGSQL;TRACE;DEBUG;</DefineConstants>
38  </PropertyGroup>
39  <PropertyGroup Condition=" '$(Configuration)|$(Platform)|$(MySql)|$(PgSql)' == 'Debug|AnyCPU|ON|ON' ">
40    <DefineConstants>MYSQL;PGSQL;TRACE;DEBUG;</DefineConstants>
41  </PropertyGroup>
42  <!-- SQL Provider definitions (release) -->
43  <PropertyGroup Condition=" '$(Configuration)|$(Platform)|$(MySql)' == 'Release|AnyCPU|ON' ">
44    <DefineConstants>MYSQL;TRACE;</DefineConstants>
45  </PropertyGroup>
46  <PropertyGroup Condition=" '$(Configuration)|$(Platform)|$(PgSql)' == 'Release|AnyCPU|ON' ">
47    <DefineConstants>PGSQL;TRACE;</DefineConstants>
48  </PropertyGroup>
49  <PropertyGroup Condition=" '$(Configuration)|$(Platform)|$(MySql)|$(PgSql)' == 'Release|AnyCPU|ON|ON' ">
50    <DefineConstants>MYSQL;PGSQL;TRACE;</DefineConstants>
51  </PropertyGroup>
52  <!-- PostgreSQL Provider include -->
53  <Choose>
54    <When Condition=" '$(PgSql)' == 'ON' " />
55  </Choose>
56  <!-- MySQL Provider include -->
57  <Choose>
58    <When Condition=" '$(MySql)' == 'ON' " />
59  </Choose>
60  <ItemGroup>
61    <Reference Include="MySql.Data">
62      <HintPath>..\packages\MySql.Data.6.9.9\lib\net45\MySql.Data.dll</HintPath>
63    </Reference>
64    <Reference Include="System" />
65    <Reference Include="System.Data" />
66    <Reference Include="Npgsql">
67      <HintPath>..\packages\Npgsql.3.1.9\lib\net451\Npgsql.dll</HintPath>
68    </Reference>
69  </ItemGroup>
70  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
71  <ItemGroup>
72    <Compile Include="..\Shared\AssemblyInfo.cs" />
73    <Compile Include="MySqlFactory.cs" />
74    <Compile Include="SqlDatabaseFactory.cs" />
75    <Compile Include="PostgreSqlFactory.cs" />
76  </ItemGroup>
77  <ItemGroup>
78    <ProjectReference Include="..\Ntp.Data\Ntp.Data.csproj">
79      <Project>{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}</Project>
80      <Name>Ntp.Data</Name>
81    </ProjectReference>
82  </ItemGroup>
83  <ItemGroup>
84    <None Include="packages.config" />
85  </ItemGroup>
86  <ProjectExtensions>
87    <MonoDevelop>
88      <Properties>
89        <Deployment.LinuxDeployData generatePcFile="False" />
90        <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" RelativeMakefileName="Makefile">
91          <BuildFilesVar Sync="True" Name="FILES" />
92          <DeployFilesVar />
93          <ResourcesVar Sync="True" Name="RESOURCES" />
94          <OthersVar />
95          <GacRefVar Name="REFERENCES" />
96          <AsmRefVar Name="REFERENCES" />
97          <ProjectRefVar Name="REFERENCES" />
98        </MonoDevelop.Autotools.MakefileInfo>
99      </Properties>
100    </MonoDevelop>
101  </ProjectExtensions>
102</Project>