From 6ce5ac3fa454225dc0d2bdb5a3bdd720c4468099 Mon Sep 17 00:00:00 2001 From: Adriano Trentim Date: Thu, 5 Mar 2026 10:01:34 -0300 Subject: [PATCH 1/3] Ajuste para aceitar CHARSET:NONE, para contemplay o banco RIO PAY --- Lib/.vs/OfxSharp.csproj.dtbcache.json | 1 + Lib/OfxDocumentParser.cs | 2 +- Lib/OfxSharp.csproj | 9 ++++++--- Lib/Resources.Designer.cs | 4 ++-- Lib/packages.config | 2 +- Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json | 1 + Tests/OfxSharp.Tests.csproj | 9 ++++++--- 7 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 Lib/.vs/OfxSharp.csproj.dtbcache.json create mode 100644 Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json diff --git a/Lib/.vs/OfxSharp.csproj.dtbcache.json b/Lib/.vs/OfxSharp.csproj.dtbcache.json new file mode 100644 index 0000000..0ca7764 --- /dev/null +++ b/Lib/.vs/OfxSharp.csproj.dtbcache.json @@ -0,0 +1 @@ +{"RootPath":"F:\\Projects\\GitHub\\OfxSharp\\Lib","ProjectFileName":"OfxSharp.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Account.cs"},{"SourceFile":"AccountType.cs"},{"SourceFile":"Balance.cs"},{"SourceFile":"BankAccountType.cs"},{"SourceFile":"OfxDocument.cs"},{"SourceFile":"OfxDocumentParser.cs"},{"SourceFile":"OfxException.cs"},{"SourceFile":"OfxHelperMethods.cs"},{"SourceFile":"OfxParseException.cs"},{"SourceFile":"OfxTransactionType.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Resources.Designer.cs"},{"SourceFile":"SignOn.cs"},{"SourceFile":"Transaction.cs"},{"SourceFile":"TransactionCorrectionType.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.CSharp\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"F:\\Projects\\GitHub\\OfxSharp\\packages\\SgmlReader.1.8.11\\lib\\4.0\\SgmlReaderDll.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Data.DataSetExtensions\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml.Linq\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"F:\\Projects\\GitHub\\OfxSharp\\Lib\\bin\\Debug\\OfxSharpLib.dll","OutputItemRelativePath":"OfxSharpLib.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/Lib/OfxDocumentParser.cs b/Lib/OfxDocumentParser.cs index 505f3fa..76f16f0 100644 --- a/Lib/OfxDocumentParser.cs +++ b/Lib/OfxDocumentParser.cs @@ -16,7 +16,7 @@ public class OfxDocumentParser { "VERSION", "102" }, { "SECURITY", "NONE" }, { "ENCODING", "USASCII,UTF-8" }, - { "CHARSET", "1252" }, + { "CHARSET", "1252,NONE" }, { "COMPRESSION", "NONE" }, { "OLDFILEUID", "NONE" }, }; diff --git a/Lib/OfxSharp.csproj b/Lib/OfxSharp.csproj index 80b4461..5148d9e 100644 --- a/Lib/OfxSharp.csproj +++ b/Lib/OfxSharp.csproj @@ -1,5 +1,5 @@  - + Debug @@ -9,8 +9,9 @@ Properties OfxSharpLib OfxSharpLib - v4.0 + v4.6.2 512 + true @@ -20,6 +21,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -28,6 +30,7 @@ TRACE prompt 4 + false @@ -81,4 +84,4 @@ --> - + \ No newline at end of file diff --git a/Lib/Resources.Designer.cs b/Lib/Resources.Designer.cs index 205c987..f9dfc1f 100644 --- a/Lib/Resources.Designer.cs +++ b/Lib/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34003 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,7 +19,7 @@ namespace OfxSharpLib { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/Lib/packages.config b/Lib/packages.config index 0b844aa..ab0187c 100644 --- a/Lib/packages.config +++ b/Lib/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json b/Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json new file mode 100644 index 0000000..999de87 --- /dev/null +++ b/Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json @@ -0,0 +1 @@ +{"RootPath":"F:\\Projects\\GitHub\\OfxSharp\\Tests","ProjectFileName":"OfxSharp.Tests.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"BrazilianBanksParserTest.cs"},{"SourceFile":"MemoryStreamParseTest.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\ReferenceAssemblies\\v4.0\\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"F:\\Projects\\GitHub\\OfxSharp\\packages\\NUnit.2.6.3\\lib\\nunit.framework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"F:\\Projects\\GitHub\\OfxSharp\\Lib\\bin\\Debug\\OfxSharpLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":"F:\\Projects\\GitHub\\OfxSharp\\Lib\\bin\\Debug\\OfxSharpLib.dll"},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"F:\\Projects\\GitHub\\OfxSharp\\Tests\\bin\\Debug\\OfxSharp.Tests.dll","OutputItemRelativePath":"OfxSharp.Tests.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/Tests/OfxSharp.Tests.csproj b/Tests/OfxSharp.Tests.csproj index 440c0ce..100babf 100644 --- a/Tests/OfxSharp.Tests.csproj +++ b/Tests/OfxSharp.Tests.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -8,7 +8,7 @@ Properties OfxSharp.Tests OfxSharp.Tests - v4.0 + v4.6.2 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10.0 @@ -16,6 +16,7 @@ $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages False UnitTest + true @@ -25,6 +26,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -33,6 +35,7 @@ TRACE prompt 4 + false @@ -105,4 +108,4 @@ --> - + \ No newline at end of file From 31d4d8c3b282871ec704ec303c45202efc915f52 Mon Sep 17 00:00:00 2001 From: Adriano Trentim Date: Thu, 5 Mar 2026 10:21:26 -0300 Subject: [PATCH 2/3] =?UTF-8?q?Removo=C3=A7=C3=A3o=20dos=20arquivos=20.jso?= =?UTF-8?q?n=20da=20pasta=20.vs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/.vs/OfxSharp.csproj.dtbcache.json | 1 - Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json | 1 - 2 files changed, 2 deletions(-) delete mode 100644 Lib/.vs/OfxSharp.csproj.dtbcache.json delete mode 100644 Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json diff --git a/Lib/.vs/OfxSharp.csproj.dtbcache.json b/Lib/.vs/OfxSharp.csproj.dtbcache.json deleted file mode 100644 index 0ca7764..0000000 --- a/Lib/.vs/OfxSharp.csproj.dtbcache.json +++ /dev/null @@ -1 +0,0 @@ -{"RootPath":"F:\\Projects\\GitHub\\OfxSharp\\Lib","ProjectFileName":"OfxSharp.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Account.cs"},{"SourceFile":"AccountType.cs"},{"SourceFile":"Balance.cs"},{"SourceFile":"BankAccountType.cs"},{"SourceFile":"OfxDocument.cs"},{"SourceFile":"OfxDocumentParser.cs"},{"SourceFile":"OfxException.cs"},{"SourceFile":"OfxHelperMethods.cs"},{"SourceFile":"OfxParseException.cs"},{"SourceFile":"OfxTransactionType.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Resources.Designer.cs"},{"SourceFile":"SignOn.cs"},{"SourceFile":"Transaction.cs"},{"SourceFile":"TransactionCorrectionType.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.CSharp\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"F:\\Projects\\GitHub\\OfxSharp\\packages\\SgmlReader.1.8.11\\lib\\4.0\\SgmlReaderDll.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Data.DataSetExtensions\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml.Linq\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"F:\\Projects\\GitHub\\OfxSharp\\Lib\\bin\\Debug\\OfxSharpLib.dll","OutputItemRelativePath":"OfxSharpLib.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json b/Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json deleted file mode 100644 index 999de87..0000000 --- a/Tests/.vs/OfxSharp.Tests.csproj.dtbcache.json +++ /dev/null @@ -1 +0,0 @@ -{"RootPath":"F:\\Projects\\GitHub\\OfxSharp\\Tests","ProjectFileName":"OfxSharp.Tests.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"BrazilianBanksParserTest.cs"},{"SourceFile":"MemoryStreamParseTest.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\ReferenceAssemblies\\v4.0\\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"F:\\Projects\\GitHub\\OfxSharp\\packages\\NUnit.2.6.3\\lib\\nunit.framework.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"F:\\Projects\\GitHub\\OfxSharp\\Lib\\bin\\Debug\\OfxSharpLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":"F:\\Projects\\GitHub\\OfxSharp\\Lib\\bin\\Debug\\OfxSharpLib.dll"},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"F:\\Projects\\GitHub\\OfxSharp\\Tests\\bin\\Debug\\OfxSharp.Tests.dll","OutputItemRelativePath":"OfxSharp.Tests.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file From 7d24595dfc023a908fad74ce92a47126b708fd37 Mon Sep 17 00:00:00 2001 From: Adriano Trentim Date: Thu, 2 Apr 2026 10:58:23 -0300 Subject: [PATCH 3/3] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20do=20SgmlReader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/OfxSharp.csproj | 2 +- Lib/packages.config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/OfxSharp.csproj b/Lib/OfxSharp.csproj index 5148d9e..4d399a6 100644 --- a/Lib/OfxSharp.csproj +++ b/Lib/OfxSharp.csproj @@ -33,7 +33,7 @@ false - + ..\packages\SgmlReader.1.8.11\lib\4.0\SgmlReaderDll.dll diff --git a/Lib/packages.config b/Lib/packages.config index ab0187c..d912530 100644 --- a/Lib/packages.config +++ b/Lib/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file