From 8f33a9a4a4ce50f097c1bfa25c58e9f26300a520 Mon Sep 17 00:00:00 2001 From: blakepell Date: Wed, 11 Nov 2020 10:12:33 -0500 Subject: [PATCH] Update to support .NET 5.0. --- Argus.IO.ReverseFileReader.sln | 14 ++--- README.md | 1 + Tail/App.config | 6 -- Tail/Properties/AssemblyInfo.cs | 36 ----------- Tail/Tail.csproj | 59 ------------------- .../Argus.IO.ReverseFileReader.csproj | 8 +-- .../IO/LineEnding.cs | 0 .../IO/ReverseFileReader.cs | 0 {Tail => src/Tail}/Program.cs | 26 ++++---- src/Tail/Tail.csproj | 13 ++++ 10 files changed, 38 insertions(+), 125 deletions(-) delete mode 100644 Tail/App.config delete mode 100644 Tail/Properties/AssemblyInfo.cs delete mode 100644 Tail/Tail.csproj rename {Argus.IO.ReverseFileReader => src/Argus.IO.ReverseFileReader}/Argus.IO.ReverseFileReader.csproj (80%) rename {Argus.IO.ReverseFileReader => src/Argus.IO.ReverseFileReader}/IO/LineEnding.cs (100%) rename {Argus.IO.ReverseFileReader => src/Argus.IO.ReverseFileReader}/IO/ReverseFileReader.cs (100%) rename {Tail => src/Tail}/Program.cs (79%) create mode 100644 src/Tail/Tail.csproj diff --git a/Argus.IO.ReverseFileReader.sln b/Argus.IO.ReverseFileReader.sln index 796de47..9236983 100644 --- a/Argus.IO.ReverseFileReader.sln +++ b/Argus.IO.ReverseFileReader.sln @@ -3,9 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.28729.10 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Argus.IO.ReverseFileReader", "Argus.IO.ReverseFileReader\Argus.IO.ReverseFileReader.csproj", "{7AF10E1E-88CA-4D2C-80AD-C4FE109C8801}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tail", "Tail\Tail.csproj", "{FE24E1C4-4238-4162-94B4-155DCF5B2252}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Argus.IO.ReverseFileReader", "src\Argus.IO.ReverseFileReader\Argus.IO.ReverseFileReader.csproj", "{7AF10E1E-88CA-4D2C-80AD-C4FE109C8801}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8B941A3E-D5C7-4EE2-8D4B-50021B7122C0}" ProjectSection(SolutionItems) = preProject @@ -13,6 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution README.md = README.md EndProjectSection EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tail", "src\Tail\Tail.csproj", "{4C3118F5-F65C-440C-8C70-140D44E92B28}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -23,10 +23,10 @@ Global {7AF10E1E-88CA-4D2C-80AD-C4FE109C8801}.Debug|Any CPU.Build.0 = Debug|Any CPU {7AF10E1E-88CA-4D2C-80AD-C4FE109C8801}.Release|Any CPU.ActiveCfg = Release|Any CPU {7AF10E1E-88CA-4D2C-80AD-C4FE109C8801}.Release|Any CPU.Build.0 = Release|Any CPU - {FE24E1C4-4238-4162-94B4-155DCF5B2252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FE24E1C4-4238-4162-94B4-155DCF5B2252}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FE24E1C4-4238-4162-94B4-155DCF5B2252}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FE24E1C4-4238-4162-94B4-155DCF5B2252}.Release|Any CPU.Build.0 = Release|Any CPU + {4C3118F5-F65C-440C-8C70-140D44E92B28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4C3118F5-F65C-440C-8C70-140D44E92B28}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4C3118F5-F65C-440C-8C70-140D44E92B28}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4C3118F5-F65C-440C-8C70-140D44E92B28}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/README.md b/README.md index 34631f2..03d197e 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Although this is geared towards files it will read any Stream line by line in re ## .Net Framework Support +- .NET 5.0 - .NET Standard 2.1 - .NET Standard 2.0 - .NET Framework 4.7.2 diff --git a/Tail/App.config b/Tail/App.config deleted file mode 100644 index 731f6de..0000000 --- a/Tail/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/Tail/Properties/AssemblyInfo.cs b/Tail/Properties/AssemblyInfo.cs deleted file mode 100644 index 0e5b574..0000000 --- a/Tail/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Tail")] -[assembly: AssemblyDescription("A command line program to inspect the lines at the end of a file.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("http://www.blakepell.com")] -[assembly: AssemblyProduct("Tail")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("fe24e1c4-4238-4162-94b4-155dcf5b2252")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2019.04.06.01")] -[assembly: AssemblyFileVersion("2019.04.06.01")] diff --git a/Tail/Tail.csproj b/Tail/Tail.csproj deleted file mode 100644 index 497f493..0000000 --- a/Tail/Tail.csproj +++ /dev/null @@ -1,59 +0,0 @@ - - - - - Debug - AnyCPU - {FE24E1C4-4238-4162-94B4-155DCF5B2252} - Exe - Tail - tail - v4.6.1 - 512 - true - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - {7af10e1e-88ca-4d2c-80ad-c4fe109c8801} - Argus.IO.ReverseFileReader - - - - \ No newline at end of file diff --git a/Argus.IO.ReverseFileReader/Argus.IO.ReverseFileReader.csproj b/src/Argus.IO.ReverseFileReader/Argus.IO.ReverseFileReader.csproj similarity index 80% rename from Argus.IO.ReverseFileReader/Argus.IO.ReverseFileReader.csproj rename to src/Argus.IO.ReverseFileReader/Argus.IO.ReverseFileReader.csproj index 0989286..4ff3ee5 100644 --- a/Argus.IO.ReverseFileReader/Argus.IO.ReverseFileReader.csproj +++ b/src/Argus.IO.ReverseFileReader/Argus.IO.ReverseFileReader.csproj @@ -1,14 +1,14 @@  - netstandard2.1;netstandard2.0;net472;net471;net47;net462;net461;net46;net452;net451;net45;net4 + net5.0;netstandard2.1;netstandard2.0;net472;net471;net47;net462;net461;net46;net452;net451;net45;net4 Argus.IO.ReverseFileReader Argus.IO.ReverseFileReader - 2019.11.22.1 + 2020.11.11.1 Blake Pell http://www.blakepell.com Argus.IO.ReverseFileReader - Copyright © 2007-2019 + Copyright © 2007-2020 MIT A file/stream reader that is designed to iterate over a file or a stream line by line in reverse order in a way that does not read all of the lines into memory at one time. This supports .NET Standard, the full framework as well as the Windows Universal Platform (UWP) apps. reverse file stream reader backwards tail @@ -17,7 +17,7 @@ https://github.com/blakepell/Argus.IO.ReverseFileReader https://github.com/blakepell/Argus.IO.ReverseFileReader en-US - - Updated targets to add .NET Standard 2.1 + - Updated targets to add .NET 5.0 https://raw.githubusercontent.com/blakepell/Argus.IO.ReverseFileReader/master/Assets/Argus-Logo-Purple-64.png true diff --git a/Argus.IO.ReverseFileReader/IO/LineEnding.cs b/src/Argus.IO.ReverseFileReader/IO/LineEnding.cs similarity index 100% rename from Argus.IO.ReverseFileReader/IO/LineEnding.cs rename to src/Argus.IO.ReverseFileReader/IO/LineEnding.cs diff --git a/Argus.IO.ReverseFileReader/IO/ReverseFileReader.cs b/src/Argus.IO.ReverseFileReader/IO/ReverseFileReader.cs similarity index 100% rename from Argus.IO.ReverseFileReader/IO/ReverseFileReader.cs rename to src/Argus.IO.ReverseFileReader/IO/ReverseFileReader.cs diff --git a/Tail/Program.cs b/src/Tail/Program.cs similarity index 79% rename from Tail/Program.cs rename to src/Tail/Program.cs index 2883133..c5744b1 100644 --- a/Tail/Program.cs +++ b/src/Tail/Program.cs @@ -4,23 +4,24 @@ namespace Tail { + /// /// A tail program to view the last set of lines in a specified file. /// - class Program + static class Program { - //********************************************************************************************************************* - // - // Program: Tail - // Organization: http://www.blakepell.com - // Initial Date: 04/06/2019 - // Last Modified: 04/06/2019 - // Programmer(s): Blake Pell, blakepell@hotmail.com - // - //********************************************************************************************************************* - static void Main(string[] args) { + //********************************************************************************************************************* + // + // Program: Tail + // Organization: http://www.blakepell.com + // Initial Date: 04/06/2019 + // Last Modified: 11/11/2020 + // Programmer(s): Blake Pell, blakepell@hotmail.com + // + //********************************************************************************************************************* + int linesToFetch = 10; string filePath = ""; @@ -81,8 +82,7 @@ static void Main(string[] args) { Console.WriteLine(line); } - } } } -} +} \ No newline at end of file diff --git a/src/Tail/Tail.csproj b/src/Tail/Tail.csproj new file mode 100644 index 0000000..faf2367 --- /dev/null +++ b/src/Tail/Tail.csproj @@ -0,0 +1,13 @@ + + + + Exe + net5.0 + tail + + + + + + + \ No newline at end of file