Skip to content

Commit

Permalink
Convert to a dotnet tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddunkin committed Sep 8, 2018
1 parent c10e27a commit c795541
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
8 changes: 5 additions & 3 deletions FindReplaceCode.sln
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -28,4 +27,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {61721187-4DC2-4A62-9B7A-93E34B4071E5}
EndGlobalSection
EndGlobal
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <folder-path> <find> <replace> [<find> <replace> ...]
Usage: findreplacecode <folder-path> <find> <replace> [<find> <replace> ...]
```

For example:

```
> \\dev\util\FindReplaceCode\FindReplaceCode.exe C:\Code\MyItemApi MyItem CoolThing
> findreplacecode C:\Code\MyItemApi MyItem CoolThing
```

### Folder Path
Expand Down
2 changes: 0 additions & 2 deletions deploy.ps1

This file was deleted.

15 changes: 13 additions & 2 deletions src/FindReplaceCode/FindReplaceCode.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net45</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>

This comment has been minimized.

Copy link
@bgrainger

bgrainger Jan 2, 2019

Member

FYI: https://twitter.com/KathleenDollard/status/1079811275641696256

But hopefully they'll find a better way to allow roll-forward (see replies).

<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);1591</NoWarn>
<DebugType>portable</DebugType>
<DebugSymbols>True</DebugSymbols>
<Authors>Faithlife Corporation</Authors>
<Copyright>Copyright Faithlife Corporation</Copyright>
<VersionPrefix>0.1.0</VersionPrefix>
<VersionPrefix>1.0.0</VersionPrefix>
<PackAsTool>true</PackAsTool>
<ToolCommandName>findreplacecode</ToolCommandName>
<PackageId>Faithlife.FindReplaceCode.Tool</PackageId>
</PropertyGroup>
<ItemGroup>
<Compile Update="Properties\Settings.Designer.cs">
Expand All @@ -19,4 +27,7 @@
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
</ItemGroup>
</Project>

0 comments on commit c795541

Please sign in to comment.