Skip to content

Commit

Permalink
Fix project and test project build
Browse files Browse the repository at this point in the history
Adjusted Frameworks, added missing example data, set conditional
compiler flags
  • Loading branch information
FObermaier committed Oct 7, 2015
1 parent b6d15ea commit 3b3c8cb
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 51 deletions.
4 changes: 2 additions & 2 deletions SharpSbn.PCL/SharpSbn.PCL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;PCL</DefineConstants>
<DefineConstants>TRACE;DEBUG;PCL;NET35;NET40;NET45</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;PCL</DefineConstants>
<DefineConstants>TRACE;PCL;NET35;NET40;NET45</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion SharpSbn/SbnTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public bool IsSynchronized
/// </summary>
private void GatherFids()
{
foreach (var sbnNode in Enumerable.Skip(Nodes, 1))
foreach (SbnNode sbnNode in Enumerable.Skip(Nodes, 1))
{
if (sbnNode == null) continue;

Expand Down
20 changes: 10 additions & 10 deletions SharpSbn/SharpSbn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SharpSbn</RootNamespace>
<AssemblyName>SharpSbn</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<IncludeGeoAPI>no</IncludeGeoAPI>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;NET20</DefineConstants>
<DefineConstants>TRACE;DEBUG;NET35;NET40</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
Expand Down Expand Up @@ -64,13 +63,14 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup Condition=" '$(IncludeGeoAPI)' == 'yes' ">
<Reference Include="GeoAPI, Version=1.7.3.0, Culture=neutral, PublicKeyToken=a1a0da7def465678, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\GeoAPI.1.7.3.1\lib\$(geoApi)\GeoAPI.dll</HintPath>
<Reference Include="GeoAPI, Version=1.7.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\GeoAPI.1.7.2\lib\net40-client\GeoAPI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ClampUtility.cs" />
Expand Down
4 changes: 3 additions & 1 deletion SharpSbn/packages.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages />
<packages>
<package id="GeoAPI" version="1.7.2" targetFramework="net4-client" />
</packages>
74 changes: 46 additions & 28 deletions test/SharpSbn.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -9,16 +9,16 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SbnSharp.Test</RootNamespace>
<AssemblyName>SbnSharp.Test</AssemblyName>
<TargetFrameworkVersion>v4.0.3</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineConstants>TRACE;DEBUG;NET35;NET40;NET45</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
Expand All @@ -33,57 +33,75 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="BruTile">
<Reference Include="BruTile, Version=0.7.4.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\BruTile.0.7.4.4\lib\net40\BruTile.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="BruTile.Desktop">
<Reference Include="BruTile.Desktop, Version=0.7.4.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\BruTile.0.7.4.4\lib\net40\BruTile.Desktop.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="BruTile.MbTiles">
<Reference Include="BruTile.MbTiles, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\BruTile.0.7.4.4\lib\net40\BruTile.MbTiles.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="BruTile.Serialization">
<Reference Include="BruTile.Serialization, Version=0.7.4.4, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\BruTile.0.7.4.4\lib\net40\BruTile.Serialization.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Common.Logging">
<Reference Include="Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
<HintPath>..\packages\Common.Logging.2.0.0\lib\2.0\Common.Logging.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="GeoAPI, Version=1.7.3.0, Culture=neutral, PublicKeyToken=a1a0da7def465678, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\GeoAPI.1.7.3.1\lib\net403-client\GeoAPI.dll</HintPath>
<Reference Include="GeoAPI, Version=1.7.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\GeoAPI.1.7.2\lib\net40-client\GeoAPI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NetTopologySuite">
<HintPath>..\packages\NetTopologySuite.1.13.2\lib\net403-client\NetTopologySuite.dll</HintPath>
<Reference Include="NetTopologySuite, Version=1.13.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.1.13.2\lib\net40-client\NetTopologySuite.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NetTopologySuite.IO.GeoTools">
<HintPath>..\packages\NetTopologySuite.IO.1.13.2\lib\net403-client\NetTopologySuite.IO.GeoTools.dll</HintPath>
<Reference Include="NetTopologySuite.IO.GeoTools, Version=1.13.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.13.2\lib\net40-client\NetTopologySuite.IO.GeoTools.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NetTopologySuite.IO.MsSqlSpatial">
<HintPath>..\packages\NetTopologySuite.IO.1.13.2\lib\net403-client\NetTopologySuite.IO.MsSqlSpatial.dll</HintPath>
<Reference Include="NetTopologySuite.IO.MsSqlSpatial, Version=1.13.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.13.2\lib\net40-client\NetTopologySuite.IO.MsSqlSpatial.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NetTopologySuite.IO.PostGis">
<HintPath>..\packages\NetTopologySuite.IO.1.13.2\lib\net403-client\NetTopologySuite.IO.PostGis.dll</HintPath>
<Reference Include="NetTopologySuite.IO.PostGis, Version=1.13.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.IO.1.13.2\lib\net40-client\NetTopologySuite.IO.PostGis.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PowerCollections">
<HintPath>..\packages\NetTopologySuite.1.13.2\lib\net403-client\PowerCollections.dll</HintPath>
<Reference Include="PowerCollections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\NetTopologySuite.1.13.2\lib\net40-client\PowerCollections.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ProjNet">
<HintPath>..\packages\ProjNET4GeoAPI.1.3.0.3\lib\net403-client\ProjNet.dll</HintPath>
<Reference Include="ProjNet, Version=1.3.0.3, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\ProjNET4GeoAPI.1.3.0.3\lib\net40-client\ProjNet.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SharpMap, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\SharpMap.1.1.0\lib\net40-client\SharpMap.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data.SQLite">
<Reference Include="System.Data.SQLite, Version=1.0.86.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
<HintPath>..\packages\System.Data.SQLite.MSIL.1.0.86.0\lib\net40\System.Data.SQLite.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Data.SQLite.Linq">
<Reference Include="System.Data.SQLite.Linq, Version=1.0.86.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
<HintPath>..\packages\System.Data.SQLite.MSIL.1.0.86.0\lib\net40\System.Data.SQLite.Linq.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Xml.Linq" />
Expand Down
Binary file added test/data/cities.DBF
Binary file not shown.
Binary file added test/data/cities.SHP
Binary file not shown.
Binary file added test/data/cities.SHX
Binary file not shown.
Binary file added test/data/cities.prj
Binary file not shown.
Binary file added test/data/countries.dbf
Binary file not shown.
Binary file added test/data/countries.prj
Binary file not shown.
Binary file added test/data/countries.shp
Binary file not shown.
Binary file added test/data/countries.shx
Binary file not shown.
Binary file added test/data/rivers.dbf
Binary file not shown.
Binary file added test/data/rivers.prj
Binary file not shown.
Binary file added test/data/rivers.shp
Binary file not shown.
Binary file added test/data/rivers.shx
Binary file not shown.
19 changes: 10 additions & 9 deletions test/packages.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="BruTile" version="0.7.4.4" targetFramework="net403" />
<package id="Common.Logging" version="2.0.0" targetFramework="net403" />
<package id="GeoAPI" version="1.7.3.1" targetFramework="net403" />
<package id="NetTopologySuite" version="1.13.2" targetFramework="net403" />
<package id="NetTopologySuite.IO" version="1.13.2" targetFramework="net403" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net403" requireReinstallation="True" />
<package id="NUnit" version="2.6.3" targetFramework="net403" />
<package id="ProjNET4GeoAPI" version="1.3.0.3" targetFramework="net403" requireReinstallation="True" />
<package id="System.Data.SQLite.MSIL" version="1.0.86.0" targetFramework="net403" requireReinstallation="True" />
<package id="BruTile" version="0.7.4.4" targetFramework="net4-client" />
<package id="Common.Logging" version="2.0.0" targetFramework="net4-client" />
<package id="GeoAPI" version="1.7.2" targetFramework="net4-client" />
<package id="NetTopologySuite" version="1.13.2" targetFramework="net4-client" />
<package id="NetTopologySuite.IO" version="1.13.2" targetFramework="net4-client" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net4-client" />
<package id="NUnit" version="2.6.3" targetFramework="net4-client" />
<package id="ProjNET4GeoAPI" version="1.3.0.3" targetFramework="net4-client" />
<package id="SharpMap" version="1.1.0" targetFramework="net4-client" />
<package id="System.Data.SQLite.MSIL" version="1.0.86.0" targetFramework="net4-client" />
</packages>

0 comments on commit 3b3c8cb

Please sign in to comment.