dotnetbio / bio

Bioinformatics library for .NET
Apache License 2.0
145 stars 49 forks source link

Bio.Platform.Helpers.PlatformServices causes exceptions to be thrown on fresh build #4

Closed evolvedmicrobe closed 8 years ago

evolvedmicrobe commented 9 years ago

If you build and copy Bio.Desktop, you can't parse a FASTA File because

Bio.Platform.Helpers.PlatformServices.MaxSequenceSize is set to 0. This leads to a very confusing "sequence is longer than 2GB error when this line of code executes in the FASTA parser.

if ((((long)bufferPosition + line.Length) >= PlatformManager.Services.MaxSequenceSize))
{
    throw new ArgumentOutOfRangeException(
        string.Format(CultureInfo.CurrentUICulture, Properties.Resource.SequenceDataGreaterthan2GB, name));
}

Presumably this is set somehow by nuget or other deployment mechanisms? Do we know how we can make it work for the general build case?

markjulmar commented 9 years ago

There are two DLLs which must be included -- I'm thinking the wrong one is being set here, we might need to copy the .csproj file and make a file rename .. let me play with it.

evolvedmicrobe commented 9 years ago

I seem to be able to avoid the error if I copy out

src/Source/Framework/Shims/Bio.Platform.Helpers.Desktop/bin/Release/Bio.Platform.Helpers.*

into the build directory of Bio.Desktop

evolvedmicrobe commented 8 years ago

This should be fixed by the latest commit.