The type or namespace name 'Geometries' does not exist in the namespace 'GeoAPI'

Topics: SharpMap Project
Oct 15, 2014 at 3:18 PM
Hello,

I try to build mapsharp myself under 'VisualStudio 2010', and I get errors like the one in the subject description.

I have already read :
https://sharpmap.codeplex.com/discussions/248456
And I use Net40.

'EnableNuGetPackageRestore' is set to 'true'.
What should I do ?

Thanks
Oct 15, 2014 at 3:50 PM
Hello,

In first place I use 'Trunk' subfolder, which is not a good idea. Here are my result with 'Branches\1.1'.

Almost everything is compiled.
But still get errors for 'SharpMap.Data.Providers.Kml', and Target Framework is set to '.NET Framework 4'.
How fix that?
------ Build started: Project: SharpMap, Configuration: Debug Any CPU ------
  All packages listed in packages.config are already installed.
  SharpMap -> D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap\bin\Debug\SharpMap.dll
------ Build started: Project: SharpMap.Data.Providers.Kml, Configuration: Debug Any CPU ------
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(27,7): error CS0246: The type or namespace name 'GeoAPI' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(30,16): error CS0234: The type or namespace name 'Rendering' does not exist in the namespace 'SharpMap' (are you missing an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(31,16): error CS0234: The type or namespace name 'Styles' does not exist in the namespace 'SharpMap' (are you missing an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(43,32): error CS0246: The type or namespace name 'IProvider' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(123,33): error CS0246: The type or namespace name 'FeatureDataTable' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(134,17): error CS0246: The type or namespace name 'IGeometryFactory' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(135,44): error CS0246: The type or namespace name 'IGeometry' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(136,36): error CS0246: The type or namespace name 'VectorStyle' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(152,16): error CS0246: The type or namespace name 'ITheme' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(330,40): error CS0246: The type or namespace name 'FeatureDataRow' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(330,16): error CS0246: The type or namespace name 'VectorStyle' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(361,24): error CS0246: The type or namespace name 'VectorStyle' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(384,24): error CS0246: The type or namespace name 'VectorStyle' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(496,64): error CS0246: The type or namespace name 'IGeometry' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(530,58): error CS0246: The type or namespace name 'FeatureDataTable' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(550,58): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(550,27): error CS0246: The type or namespace name 'IGeometry' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(564,52): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(579,16): error CS0246: The type or namespace name 'IGeometry' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(588,46): error CS0246: The type or namespace name 'IGeometry' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(588,62): error CS0246: The type or namespace name 'FeatureDataSet' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(620,46): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(620,60): error CS0246: The type or namespace name 'FeatureDataSet' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(630,16): error CS0246: The type or namespace name 'FeatureDataRow' could not be found (are you missing a using directive or an assembly reference?)
D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap.Data.Providers.Kml\KmlProvider.cs(646,16): error CS0246: The type or namespace name 'Envelope' could not be found (are you missing a using directive or an assembly reference?)

Compile complete -- 25 errors, 0 warnings
  All packages listed in packages.config are already installed.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3274: The primary reference "GeoAPI" could not be resolved because it was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3275: The primary reference "D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap\bin\Debug\SharpMap.dll" could not be resolved because it has an indirect dependency on the assembly "GeoAPI, Version=1.7.2.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3275: The primary reference "NetTopologySuite" could not be resolved because it has an indirect dependency on the assembly "GeoAPI, Version=1.7.2.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3274: The primary reference "NetTopologySuite" could not be resolved because it was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3275: The primary reference "D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap\bin\Debug\SharpMap.dll" could not be resolved because it has an indirect dependency on the assembly "NetTopologySuite, Version=1.13.2.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3274: The primary reference "PowerCollections" could not be resolved because it was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3275: The primary reference "D:\DepotAlexandrie\SharpMap\Branches\1.1\SharpMap\bin\Debug\SharpMap.dll" could not be resolved because it has an indirect dependency on the assembly "PowerCollections, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3275: The primary reference "NetTopologySuite" could not be resolved because it has an indirect dependency on the assembly "PowerCollections, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.0.3,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
========== Build: 1 succeeded or up-to-date, 1 failed,
Thanks
Coordinator
Oct 15, 2014 at 3:51 PM
Use Braches/1.0
Oct 16, 2014 at 9:52 AM
Edited Oct 16, 2014 at 10:05 AM
Hello,

same problem (Concatenate error messages only):
========== Rebuild All: 14 succeeded, 3 failed, 1 skipped ==========
Nevertheless that is not important if all CSPROJ does not compile. 'SharpMap' the most important one compiles well.
So ignore thus discussion :)

Thanks
Coordinator
Oct 16, 2014 at 11:03 AM
Be sure to have .Net Framework 4.03 installed. Make your projects target that.