itinero / routing

The routing core of itinero.
Apache License 2.0
222 stars 70 forks source link

Error trying generate TSP Route. #295

Open SoRRiSoJa opened 4 years ago

SoRRiSoJa commented 4 years ago

System.IO.FileLoadException: Could not load file or assembly 'Itinero, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Itinero, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'

juliusfriedman commented 4 years ago

Can you provide a code sample which shows what you tried and how you encountered this error? It seems like you were using another package which expected an older version of Itinero but I am not sure which one.

emrgee commented 3 years ago

I also got this exception. My .NET Core 3.1 console application uses my .NET Standard 2.1 class library. The library had dependencies on Itinero.Geo 1.5.0 and Itinero.IO.Osm 1.5.0. Things worked fine until I added a dependency on Itinero.Optimization 0.14.5 and called extension method RouterExtensions.CalculateTSP. I saw the same exception message as reported above. I got rid of the exception after updating to pre-release versions (Itinero.Geo 1.6.0-pre030, Itinero.IO.Osm 1.6.0-pre030, Itinero.Optimization 1.0.0-pre020) and adapting my calls to the changed API (RouterExtensions.Optimize). The TSP algorithm computed a route successfully.