From c10e27aa3a835598be3aa2361d9ea5402f2499d6 Mon Sep 17 00:00:00 2001 From: Dave Dunkin Date: Sat, 8 Sep 2018 15:10:39 -0700 Subject: [PATCH 1/2] Convert to new csproj. --- src/FindReplaceCode/FindReplaceCode.csproj | 60 +++---------------- .../Properties/AssemblyInfo.cs | 15 ----- 2 files changed, 7 insertions(+), 68 deletions(-) delete mode 100644 src/FindReplaceCode/Properties/AssemblyInfo.cs diff --git a/src/FindReplaceCode/FindReplaceCode.csproj b/src/FindReplaceCode/FindReplaceCode.csproj index 82f32d7..70ae62c 100644 --- a/src/FindReplaceCode/FindReplaceCode.csproj +++ b/src/FindReplaceCode/FindReplaceCode.csproj @@ -1,68 +1,22 @@ - - - + - Debug - AnyCPU - {4E2B87C2-B50A-4876-A1EC-118554B4B389} Exe - Properties - FindReplaceCode - FindReplaceCode - v4.5 - 512 + net45 + Faithlife Corporation + Copyright Faithlife Corporation + 0.1.0 - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - + True True Settings.settings - SettingsSingleFileGenerator Settings.Designer.cs - - - \ No newline at end of file + diff --git a/src/FindReplaceCode/Properties/AssemblyInfo.cs b/src/FindReplaceCode/Properties/AssemblyInfo.cs deleted file mode 100644 index fbd9d35..0000000 --- a/src/FindReplaceCode/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Reflection; -using System.Resources; -using System.Runtime.InteropServices; - -[assembly: AssemblyVersion("0.1.*")] -[assembly: AssemblyCompany("Faithlife")] -[assembly: AssemblyCopyright("Copyright 2015 Faithlife")] -[assembly: AssemblyTitle("FindReplaceCode")] -[assembly: AssemblyProduct("FindReplaceCode")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: CLSCompliant(true)] -[assembly: ComVisible(false)] -[assembly: NeutralResourcesLanguage("en-US")] From c7955410ec54e52d37eecc7f46a305cc0af347c5 Mon Sep 17 00:00:00 2001 From: Dave Dunkin Date: Sat, 8 Sep 2018 15:25:36 -0700 Subject: [PATCH 2/2] Convert to a dotnet tool. --- FindReplaceCode.sln | 8 +++++--- README.md | 6 +++--- deploy.ps1 | 2 -- src/FindReplaceCode/FindReplaceCode.csproj | 15 +++++++++++++-- 4 files changed, 21 insertions(+), 10 deletions(-) delete mode 100644 deploy.ps1 diff --git a/FindReplaceCode.sln b/FindReplaceCode.sln index 330a445..1f80dbc 100644 --- a/FindReplaceCode.sln +++ b/FindReplaceCode.sln @@ -1,14 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2003 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C0F6A102-92D4-4054-84BF-00D9A313577D}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitattributes = .gitattributes .gitignore = .gitignore - deploy.ps1 = deploy.ps1 README.md = README.md EndProjectSection EndProject @@ -28,4 +27,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {61721187-4DC2-4A62-9B7A-93E34B4071E5} + EndGlobalSection EndGlobal diff --git a/README.md b/README.md index 1949af7..76134bb 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,18 @@ Used to generate a new code project from a template. **WARNING:** This tool is recursively destructive. Please be extremely careful with it. -This tool is deployed to `\\dev\util\FindReplaceCode\FindReplaceCode.exe`. +This tool is installed as a dotnet tool: `dotnet tool install Faithlife.FindReplaceCode.Tool --global`. ## Usage ``` -Usage: FindReplaceCode.exe [ ...] +Usage: findreplacecode [ ...] ``` For example: ``` -> \\dev\util\FindReplaceCode\FindReplaceCode.exe C:\Code\MyItemApi MyItem CoolThing +> findreplacecode C:\Code\MyItemApi MyItem CoolThing ``` ### Folder Path diff --git a/deploy.ps1 b/deploy.ps1 deleted file mode 100644 index a79246a..0000000 --- a/deploy.ps1 +++ /dev/null @@ -1,2 +0,0 @@ -Copy-Item "$PSScriptRoot\src\FindReplaceCode\bin\Release\FindReplaceCode.exe" "\\dev\util\FindReplaceCode" -Copy-Item "$PSScriptRoot\src\FindReplaceCode\bin\Release\FindReplaceCode.exe.config" "\\dev\util\FindReplaceCode" diff --git a/src/FindReplaceCode/FindReplaceCode.csproj b/src/FindReplaceCode/FindReplaceCode.csproj index 70ae62c..041bf7b 100644 --- a/src/FindReplaceCode/FindReplaceCode.csproj +++ b/src/FindReplaceCode/FindReplaceCode.csproj @@ -1,10 +1,18 @@  Exe - net45 + netcoreapp2.1 + latest + true + $(NoWarn);1591 + portable + True Faithlife Corporation Copyright Faithlife Corporation - 0.1.0 + 1.0.0 + true + findreplacecode + Faithlife.FindReplaceCode.Tool @@ -19,4 +27,7 @@ Settings.Designer.cs + + +