diff --git a/.gitignore b/.gitignore index 149e0c9..ae518e9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ # /*/Assemblies # /Source +# /.vscode diff --git a/.vscode/build.bat b/.vscode/build.bat index 3da6b58..cb21c5f 100644 --- a/.vscode/build.bat +++ b/.vscode/build.bat @@ -4,7 +4,4 @@ REM remove unnecessary assemblies DEL .\*\Assemblies\*.* REM build dll -dotnet build Source --no-restore - -REM remove nuget dependencies folder for less clutter in case it's generated -RMDIR /s /q Source\obj \ No newline at end of file +dotnet build .vscode \ No newline at end of file diff --git a/Source/Mod.csproj b/.vscode/mod.csproj similarity index 89% rename from Source/Mod.csproj rename to .vscode/mod.csproj index 46f2817..a45c0cd 100644 --- a/Source/Mod.csproj +++ b/.vscode/mod.csproj @@ -1,10 +1,12 @@ + + Library net472 x64 - + Template Template ../1.1/Assemblies @@ -13,10 +15,12 @@ none false false - ../.vscode/obj + + + False diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f29fa31..1d80d19 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,7 +8,7 @@ "kind": "build", "isDefault": true }, - "command": ".\\.vscode\\build.bat", + "command": ".vscode/build.bat", }, ] } \ No newline at end of file diff --git a/README.md b/README.md index d6dc6ae..5443487 100644 --- a/README.md +++ b/README.md @@ -3,18 +3,20 @@ This template is created for Rimworld moders who use [Visual Studio Code](https://code.visualstudio.com/) instead od Visual Studio IDE. * __No virtual folders__. Easy to manage and edit both `xml` and `cs` files. + * __Lightweight__. Visual Studio Code only takes up to 200 MB of storage space and is lighting fast. -* __Automation__. Integrated build, scripting and management tools to perform common tasks making everyday workflows faster. -* __Customization__. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure. + +* __Automated__. Integrated build, scripting and management tools to perform common tasks making everyday workflows faster. + +* __Customizable__. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure. ## Setup 1. Download and install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) and [.Net Framework 4.7.2 Developer Pack]( https://dotnet.microsoft.com/download/dotnet-framework/net472). This step can be skipped if you already have C# packages from Visual Studio. 2. Instal [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp). -3. Clone or pull this template into your Rimworld `Mods` folder. +3. Clone, pull or download this template into your Rimworld `Mods` folder. ## Additional notes -By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable. - -Modify `About.xml` and `Mod.csproj` files to match your mod name and version. - -All C# intermediate files are kept in `.vscode/obj` folder. +* By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable. +* All intermediate files are kept inside `.vscode` folder. +* Modify `.vscode/mod.csproj` according to your needs. +