diff --git a/src/IniParser.Example/IniParser.Example.csproj b/src/IniParser.Example/IniParser.Example.csproj index 4778794e..055e91e1 100644 --- a/src/IniParser.Example/IniParser.Example.csproj +++ b/src/IniParser.Example/IniParser.Example.csproj @@ -8,7 +8,7 @@ - netcoreapp2.0 + netcoreapp2.0;netcoreapp3.1 net461;netcoreapp2.0 diff --git a/src/IniParser.Tests/IniParser.Tests.csproj b/src/IniParser.Tests/IniParser.Tests.csproj index 62ba1f6c..fba81dac 100644 --- a/src/IniParser.Tests/IniParser.Tests.csproj +++ b/src/IniParser.Tests/IniParser.Tests.csproj @@ -8,10 +8,10 @@ - netcoreapp2.0 + netcoreapp2.0;netcoreapp3.1 - net461;netcoreapp2.0 + net461;netcoreapp2.0;netcoreapp3.1 diff --git a/src/IniParser/IniDataParser.cs b/src/IniParser/IniDataParser.cs index 63a0e22a..747a8d51 100644 --- a/src/IniParser/IniDataParser.cs +++ b/src/IniParser/IniDataParser.cs @@ -246,7 +246,7 @@ protected virtual bool ProcessComment(StringBuffer currentLine) // the comment delimiter var startIdx = commentRange.start + Scheme.CommentString.Length; var size = currentLineTrimmed.Count - Scheme.CommentString.Length; - var range = Range.FromIndexWithSize(startIdx, size); + var range = IniParser.Parser.StringBuffer.Range.FromIndexWithSize(startIdx, size); var comment = currentLineTrimmed.Substring(range); if (Configuration.TrimComments) @@ -345,10 +345,10 @@ protected virtual bool ProcessProperty(StringBuffer currentLine, IniData iniData if (propertyAssigmentIdx.IsEmpty) return false; - var keyRange = Range.WithIndexes(0, propertyAssigmentIdx.start - 1); + var keyRange = IniParser.Parser.StringBuffer.Range.WithIndexes(0, propertyAssigmentIdx.start - 1); var valueStartIdx = propertyAssigmentIdx.end + 1; var valueSize = currentLine.Count - propertyAssigmentIdx.end - 1; - var valueRange = Range.FromIndexWithSize(valueStartIdx, valueSize); + var valueRange = IniParser.Parser.StringBuffer.Range.FromIndexWithSize(valueStartIdx, valueSize); var key = currentLine.Substring(keyRange); var value = currentLine.Substring(valueRange); diff --git a/src/IniParser/IniParser.csproj b/src/IniParser/IniParser.csproj index c2a561bf..e4dbea94 100644 --- a/src/IniParser/IniParser.csproj +++ b/src/IniParser/IniParser.csproj @@ -11,7 +11,7 @@ Also implements merging operations, both for complete ini files, sections, or ev Ricardo Amores Hernández https://github.com/rickyah/ini-parser MIT - https://raw.githubusercontent.com/rickyah/ini-parser/development/nuget-ini-icon.png + ../../nuget-ini-icon.png 3.0 True Properties\publickey.snk @@ -27,12 +27,12 @@ Also implements merging operations, both for complete ini files, sections, or ev - netstandard2.0 + netstandard2.0;netcoreapp3.1 https://github.com/rickyah/ini-parser Ricardo Amores Hernández 2009-2019 - + True \ No newline at end of file