nyurik / timeseriesdb

Automatically exported from code.google.com/p/timeseriesdb
GNU General Public License v3.0
13 stars 6 forks source link

Namespace Rename missed UtcDateTime #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Type Unable to find type NYurik.FastBinTimeseries.CommonCode.UtcDateTime, 
NYurik.FastBinTimeseries, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 
should resolve to the new UtcDateTime object.

I created a super simple test case for this (attached).

It appears that I created some files in the middle of your renames.

I debugged the mapper - in the LegacySupport.cs file in the TypeResolver method 
the assemblyName.Name == OldMainName, but the UtcDateTime type had been moved 
to the LegacyTypes class.

Adding the following line to the bottom of the TypeResolver method makes the 
test pass.

if (assemblyName.Name == OldMainName && 
RenamedLegacyTypes.TryGetValue(spec.Name, out type))
                    return type;

Original issue reported on code.google.com by kar...@gmail.com on 21 Mar 2012 at 7:03

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, the fix is checked in, will release on NuGet shortly

Original comment by yuriastrakhan on 21 Mar 2012 at 8:31