Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions TextReplacement.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# 17
VisualStudioVersion = 17.9.34714.143
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D0CBCAD4-B7D5-41FA-9B13-E3446E1D7A53}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementApp", "TextReplacementApp\TextReplacementApp.csproj", "{A4F06817-13B0-4937-ADE2-C34F8038BCD1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementConsoleApp", "TextReplacementConsoleApp\TextReplacementConsoleApp.csproj", "{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementShared", "TextReplacementShared\TextReplacementShared.csproj", "{94CD1765-7876-4928-8B37-87300FFA66E2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TextReplacementConsoleDemos", "TextReplacementConsoleDemos\TextReplacementConsoleDemos.csproj", "{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4F06817-13B0-4937-ADE2-C34F8038BCD1}.Release|Any CPU.Build.0 = Release|Any CPU
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{69A9ABD0-BED3-4370-9CBF-55F6DF36CDD7}.Release|Any CPU.Build.0 = Release|Any CPU
{94CD1765-7876-4928-8B37-87300FFA66E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{94CD1765-7876-4928-8B37-87300FFA66E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{94CD1765-7876-4928-8B37-87300FFA66E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{94CD1765-7876-4928-8B37-87300FFA66E2}.Release|Any CPU.Build.0 = Release|Any CPU
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7B2007A-EB8E-4205-84B9-5D96A7F5119E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {72FFA8BA-53B0-4F29-A6D3-96DE7FF8EDFA}
EndGlobalSection
EndGlobal
146 changes: 0 additions & 146 deletions TextReplacementApp.sln

This file was deleted.

14 changes: 0 additions & 14 deletions TextReplacementApp/App.config

This file was deleted.

54 changes: 17 additions & 37 deletions TextReplacementApp/AppConfig.cs
Original file line number Diff line number Diff line change
@@ -1,41 +1,21 @@
using Newtonsoft.Json;
namespace TextReplacementApp;

namespace TextReplacementApp
/// <summary>Represents the configuration settings of the application.</summary>
/// <remarks>
/// This class encapsulates the configuration settings of the application,
/// including the directory path, search text, and replace text.
/// </remarks>
public class AppConfig
{
/// <summary>
/// Represents the configuration settings of the application.
/// </summary>
/// <remarks>
/// This class encapsulates the configuration settings of the application,
/// including the directory path, search text, and replace text.
/// </remarks>
public class AppConfig
{
/// <summary>
/// Gets or sets the directory path stored in the configuration.
/// </summary>
/// <value>
/// A <see cref="T:System.String" /> representing the directory path.
/// </value>
[JsonProperty("directory_path")]
public string DirectoryPath { get; set; }
/// <summary>Gets or sets the directory path stored in the configuration.</summary>
/// <value>A <see cref="string"/> representing the directory path.</value>
[JsonPropertyName("directoryPath")] public string DirectoryPath { get; set; } = string.Empty;

/// <summary>
/// Gets or sets the replace text stored in the configuration.
/// </summary>
/// <value>
/// A <see cref="T:System.String" /> representing the replace text.
/// </value>
[JsonProperty("replace_with")]
public string ReplaceWith { get; set; }
/// <summary>Gets or sets the search text stored in the configuration.</summary>
/// <value>A <see cref="string"/> representing the search text.</value>
[JsonPropertyName("findWhat")] public string FindWhat { get; set; } = string.Empty;

/// <summary>
/// Gets or sets the search text stored in the configuration.
/// </summary>
/// <value>
/// A <see cref="T:System.String" /> representing the search text.
/// </value>
[JsonProperty("find_what")]
public string FindWhat { get; set; }
}
}
/// <summary>Gets or sets the replace text stored in the configuration.</summary>
/// <value>A <see cref="string"/> representing the replace text.</value>
[JsonPropertyName("replaceWith")] public string ReplaceWith { get; set; } = string.Empty;
}
33 changes: 0 additions & 33 deletions TextReplacementApp/FileFailureInfo.cs

This file was deleted.

28 changes: 0 additions & 28 deletions TextReplacementApp/ListExtensions.cs

This file was deleted.

Loading