Skip to content

Commit

Permalink
Merge pull request #3 from DaveDunkin/dotnet-tool
Browse files Browse the repository at this point in the history
Convert to a dotnet tool.
  • Loading branch information
ddunkin authored and GitHub Enterprise committed Sep 10, 2018
2 parents ac2480a + c795541 commit 9e37f59
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 76 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.

71 changes: 18 additions & 53 deletions src/FindReplaceCode/FindReplaceCode.csproj
Original file line number Diff line number Diff line change
@@ -1,68 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4E2B87C2-B50A-4876-A1EC-118554B4B389}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FindReplaceCode</RootNamespace>
<AssemblyName>FindReplaceCode</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFramework>netcoreapp2.1</TargetFramework>
<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>1.0.0</VersionPrefix>
<PackAsTool>true</PackAsTool>
<ToolCommandName>findreplacecode</ToolCommandName>
<PackageId>Faithlife.FindReplaceCode.Tool</PackageId>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="ProgramException.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<Compile Update="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
<ItemGroup>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
</ItemGroup>
</Project>
15 changes: 0 additions & 15 deletions src/FindReplaceCode/Properties/AssemblyInfo.cs

This file was deleted.

0 comments on commit 9e37f59

Please sign in to comment.