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", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path. // 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": [], "args": [],
"cwd": "${workspaceFolder}/MCCFMD", "cwd": "${workspaceFolder}/CFUtils",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole", "console": "internalConsole",
"stopAtEntry": false "stopAtEntry": false

View File

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

6
.vscode/tasks.json vendored
View File

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

View File

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

View File

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

View File

@ -4,11 +4,11 @@ using System.Linq;
using System; using System;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; 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; PropertyInfo[] manifestProperties;
Type manifestType; 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 public struct File
{ {

View File

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

View File

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

View File

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

View File

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

View File

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