Cole Colon

Results 10 comments of Cole Colon

Sure. I have a .csproj targeting netstandard2.0. I am not able to use NACHA.NetStandard because it is targetting netcoreapp2.1. If NACHA.NetStandard was targetting netstandard2.0, then it would be compatible with...

Yes it is. This was what my work around was. Since the .csproj I was using it in was netstandard2.0, I had to create a new project in net6.0 and...

Pasted simple project i just created targeting netstandard2.0 on how to reproduce.

![SimpleProj](https://github.com/Cinchoo/ChoETL.NACHA/assets/89418786/e26cb869-c1d2-4638-818d-25c161114fa8)

I believe if you just make the following change to your [.csproj](https://github.com/Cinchoo/ChoETL.NACHA/blob/master/ChoETL.NACHA.Core/ChoETL.NACHA.NETStandard.csproj) netstandard2.0 everything should be fine. Would you mind trying it?

i meant the ChoETL.NACHA.NETStandard.csproj should be netstandard2.0. that will fix problems with all projects referencing it.

correct, the netcoreapp2.1 is why it is currently not working.

Yeah, sorry, i thought you were the code owner trying to fix this issue. This package works for me in .net 6. What breaks in .net 8?

try this: var builder = new StringBuilder(File.ReadAllText(fileName)); foreach (var data in new ChoNACHAReader(builder)) { }

Did that end up working? I believe it should have, cause it bypasses the GetEncoding call that was causing your error.