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
|
||||
# /Source
|
||||
# /.vscode
|
||||
|
|
5
.vscode/build.bat
vendored
5
.vscode/build.bat
vendored
|
@ -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
|
||||
dotnet build .vscode
|
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">
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
|
||||
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] according to your needs -->
|
||||
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
||||
<RootNamespace>Template</RootNamespace>
|
||||
<AssemblyName>Template</AssemblyName>
|
||||
<OutputPath>../1.1/Assemblies</OutputPath>
|
||||
|
@ -13,10 +15,12 @@
|
|||
<DebugType>none</DebugType>
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<IntermediateOutputPath>../.vscode/obj</IntermediateOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- Mod -->
|
||||
<CodeFiles Include="../Source/*" />
|
||||
|
||||
<!-- Rimworld -->
|
||||
<Reference Include="../../../RimWorldWin64_Data/Managed/*.dll">
|
||||
<Private>False</Private>
|
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
|
@ -8,7 +8,7 @@
|
|||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"command": ".\\.vscode\\build.bat",
|
||||
"command": ".vscode/build.bat",
|
||||
},
|
||||
]
|
||||
}
|
16
README.md
16
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.
|
||||
* 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.
|
||||
|
||||
Modify `About.xml` and `Mod.csproj` files to match your mod name and version.
|
||||
|
||||
All C# intermediate files are kept in `.vscode/obj` folder.
|
||||
|
|
Loading…
Reference in a new issue