diff --git a/tool/OpenCvSharp.NupkgBetaRemover/OpenCvSharp.NupkgBetaRemover.csproj b/tool/OpenCvSharp.NupkgBetaRemover/OpenCvSharp.NupkgBetaRemover.csproj index 23b289a37..c122d420b 100644 --- a/tool/OpenCvSharp.NupkgBetaRemover/OpenCvSharp.NupkgBetaRemover.csproj +++ b/tool/OpenCvSharp.NupkgBetaRemover/OpenCvSharp.NupkgBetaRemover.csproj @@ -1,56 +1,16 @@ - - - + - Debug - AnyCPU - {CC19F9A5-01A7-4BDF-B34C-CF56F46A474A} + netcoreapp3.1 Exe - OpenCvSharp.NupkgBetaRemover - OpenCvSharp.NupkgBetaRemover - v4.7.2 - 512 - true - true + OpenCvSharp.NupkgBetaRemover + false + false + false + false + false + false - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tool/OpenCvSharp.NupkgBetaRemover/Program.cs b/tool/OpenCvSharp.NupkgBetaRemover/Program.cs index 12fe8267e..b8004ad18 100644 --- a/tool/OpenCvSharp.NupkgBetaRemover/Program.cs +++ b/tool/OpenCvSharp.NupkgBetaRemover/Program.cs @@ -4,20 +4,17 @@ using System.Linq; using System.Text; using System.Text.RegularExpressions; -using System.Windows.Forms; namespace OpenCvSharp.NupkgBetaRemover { class Program { - [STAThread] private static void Main(string[] args) { - var nupkgFiles = SelectNupkgFiles(); - if (nupkgFiles == null) + if (args.Length == 0) return; - foreach (var nupkgFile in nupkgFiles) + foreach (var nupkgFile in args) { if (nupkgFile.Contains("ubuntu")) continue; @@ -66,22 +63,5 @@ private static void Main(string[] args) File.Move(nupkgFile, newFileName); } } - - private static string[] SelectNupkgFiles() - { - using (var dialog = new OpenFileDialog { - CheckFileExists = true, - CheckPathExists = true, - Filter = "nupkg files(*.nupkg;*.snupkg)|*.nupkg;*.snupkg", - Multiselect = true, - RestoreDirectory = true, - Title = "Select .nupkg files" - }) - { - if (dialog.ShowDialog() != DialogResult.OK) - return null; - return dialog.FileNames; - } - } } }