Refactored namespace and project name.

This commit is contained in:
Harrison Deng 2022-05-18 22:12:43 -05:00
parent 8a5ca53519
commit 2ba458f02b
14 changed files with 25 additions and 22 deletions

4
.vscode/launch.json vendored
View File

@ -10,9 +10,9 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/MCCFMD/bin/Debug/net6.0/MCCFMD.dll",
"program": "${workspaceFolder}/CFUtils/bin/Debug/net6.0/CFUtils.dll",
"args": [],
"cwd": "${workspaceFolder}/MCCFMD",
"cwd": "${workspaceFolder}/CFUtils",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false

View File

@ -1,5 +1,5 @@
{
"cSpell.words": [
"MCCFMD"
"CFUtils"
]
}

6
.vscode/tasks.json vendored
View File

@ -7,7 +7,7 @@
"type": "process",
"args": [
"build",
"${workspaceFolder}/MCCFMD/MCCFMD.csproj",
"${workspaceFolder}/CFUtils/CFUtils.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
@ -19,7 +19,7 @@
"type": "process",
"args": [
"publish",
"${workspaceFolder}/MCCFMD/MCCFMD.csproj",
"${workspaceFolder}/CFUtils/CFUtils.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
@ -33,7 +33,7 @@
"watch",
"run",
"--project",
"${workspaceFolder}/MCCFMD/MCCFMD.csproj"
"${workspaceFolder}/CFUtils/CFUtils.csproj"
],
"problemMatcher": "$msCompile"
}

View File

@ -4,9 +4,9 @@ using System.IO;
using System.CommandLine;
using System.Threading.Tasks;
namespace MCCFMD.Commands
namespace CFUtils.Commands
{
public class Install : Command
internal class Install : Command
{
const string NAME = "install";
const string DESC = "Install the profile described by the manifest.";

View File

@ -2,9 +2,9 @@
using System;
using System.CommandLine;
using System.Threading.Tasks;
using MCCFMD.Commands;
using CFUtils.Commands;
namespace MCCFMD
namespace CFUtils
{
internal class Program
{

View File

@ -4,11 +4,11 @@ using System.Linq;
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using MCCFMD.Serialization.Modpack;
using CFUtils.Serialization.Modpack;
namespace MCCFMD.Serialization
namespace CFUtils.Serialization
{
public class ManifestConverter : JsonConverter<Manifest>
internal class ManifestConverter : JsonConverter<Manifest>
{
PropertyInfo[] manifestProperties;
Type manifestType;

View File

@ -0,0 +1,7 @@
namespace CFUtils.Serialization
{
public enum ManifestGames
{
Minecraft
}
}

View File

@ -1,4 +1,4 @@
namespace MCCFMD.Serialization.Modpack
namespace CFUtils.Serialization.Modpack
{
public struct File
{

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace MCCFMD.Serialization.Modpack
namespace CFUtils.Serialization.Modpack
{
public struct Game
{

View File

@ -2,7 +2,7 @@ using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace MCCFMD.Serialization.Modpack
namespace CFUtils.Serialization.Modpack
{
public struct Manifest
{

View File

@ -1,4 +1,4 @@
namespace MCCFMD.Serialization.Modpack
namespace CFUtils.Serialization.Modpack
{
public struct ModLoader
{

View File

@ -1,4 +1,4 @@
namespace MCCFMD.Serialization
namespace CFUtils.Serialization
{
internal class ProfileReader
{

View File

@ -1,4 +0,0 @@
public enum ManifestGames
{
Minecraft
}