folder structure change
This commit is contained in:
parent
3694217956
commit
b57a6df20e
5 changed files with 19 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@
|
||||||
|
|
||||||
# /*/Assemblies
|
# /*/Assemblies
|
||||||
# /Source
|
# /Source
|
||||||
|
# /.vscode
|
||||||
|
|
5
.vscode/build.bat
vendored
5
.vscode/build.bat
vendored
|
@ -4,7 +4,4 @@ REM remove unnecessary assemblies
|
||||||
DEL .\*\Assemblies\*.*
|
DEL .\*\Assemblies\*.*
|
||||||
|
|
||||||
REM build dll
|
REM build dll
|
||||||
dotnet build Source --no-restore
|
dotnet build .vscode
|
||||||
|
|
||||||
REM remove nuget dependencies folder for less clutter in case it's generated
|
|
||||||
RMDIR /s /q Source\obj
|
|
8
Source/Mod.csproj → .vscode/mod.csproj
vendored
8
Source/Mod.csproj → .vscode/mod.csproj
vendored
|
@ -1,10 +1,12 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
|
||||||
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] according to your needs -->
|
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
||||||
<RootNamespace>Template</RootNamespace>
|
<RootNamespace>Template</RootNamespace>
|
||||||
<AssemblyName>Template</AssemblyName>
|
<AssemblyName>Template</AssemblyName>
|
||||||
<OutputPath>../1.1/Assemblies</OutputPath>
|
<OutputPath>../1.1/Assemblies</OutputPath>
|
||||||
|
@ -13,10 +15,12 @@
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<DebugSymbols>false</DebugSymbols>
|
<DebugSymbols>false</DebugSymbols>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||||
<IntermediateOutputPath>../.vscode/obj</IntermediateOutputPath>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<!-- Mod -->
|
||||||
|
<CodeFiles Include="../Source/*" />
|
||||||
|
|
||||||
<!-- Rimworld -->
|
<!-- Rimworld -->
|
||||||
<Reference Include="../../../RimWorldWin64_Data/Managed/*.dll">
|
<Reference Include="../../../RimWorldWin64_Data/Managed/*.dll">
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
|
@ -8,7 +8,7 @@
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
},
|
},
|
||||||
"command": ".\\.vscode\\build.bat",
|
"command": ".vscode/build.bat",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
18
README.md
18
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.
|
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.
|
* __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.
|
* __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
|
## 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.
|
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).
|
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
|
## Additional notes
|
||||||
By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable.
|
* 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 `About.xml` and `Mod.csproj` files to match your mod name and version.
|
* Modify `.vscode/mod.csproj` according to your needs.
|
||||||
|
|
||||||
All C# intermediate files are kept in `.vscode/obj` folder.
|
|
||||||
|
|
Loading…
Reference in a new issue