v1.2
This commit is contained in:
parent
ed08916c7a
commit
bda97f3c26
8 changed files with 25 additions and 10 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
|||
/Source/obj
|
||||
/.vscode/obj
|
||||
|
||||
# /*/Assemblies
|
||||
# /Source
|
||||
# /*/Assemblies/*.pdb
|
||||
# /.vscode
|
||||
# /Source
|
2
.vscode/build.bat
vendored
2
.vscode/build.bat
vendored
|
@ -1,7 +1,7 @@
|
|||
echo off
|
||||
|
||||
REM remove unnecessary assemblies
|
||||
REM DEL .\*\Assemblies\*.*
|
||||
DEL .\*\Assemblies\*.*
|
||||
|
||||
REM build dll
|
||||
dotnet build .vscode
|
4
.vscode/mod.csproj
vendored
4
.vscode/mod.csproj
vendored
|
@ -10,7 +10,7 @@
|
|||
<OutputPath>../1.2/Assemblies</OutputPath>
|
||||
<VersionPrefix>1.0.0.0</VersionPrefix>
|
||||
|
||||
<!-- pdb file generation -->
|
||||
<!-- do not generate pdb file -->
|
||||
<DebugType>none</DebugType>
|
||||
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
|
@ -19,7 +19,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<!-- Mod -->
|
||||
<CodeFiles Include="../Source/*" />
|
||||
<Compile Include="../Source/*" />
|
||||
|
||||
<!-- Rimworld -->
|
||||
<Reference Include="../../../RimWorldWin64_Data/Managed/*.dll">
|
||||
|
|
4
.vscode/tasks.json
vendored
4
.vscode/tasks.json
vendored
|
@ -8,8 +8,8 @@
|
|||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
// "command": ".vscode/build.bat",
|
||||
"command": "dotnet build .vscode"
|
||||
"command": ".vscode/build.bat",
|
||||
// "command": "dotnet build .vscode"
|
||||
},
|
||||
]
|
||||
}
|
Binary file not shown.
|
@ -1,10 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ModMetaData>
|
||||
<packageId>arvkus.template</packageId>
|
||||
<name>Arvkus Mod Template</name>
|
||||
<author>Arvkus</author>
|
||||
<supportedVersions>
|
||||
<li>1.2</li>
|
||||
</supportedVersions>
|
||||
<packageId>Arvkus.Rimworld.ModTemplate2</packageId>
|
||||
|
||||
<modDependencies>
|
||||
<!-- <li>
|
||||
<packageId>brrainz.harmony</packageId>
|
||||
<displayName>Harmony</displayName>
|
||||
<downloadUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</downloadUrl>
|
||||
<steamWorkshopUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</steamWorkshopUrl>
|
||||
</li> -->
|
||||
</modDependencies>
|
||||
|
||||
<incompatibleWith>
|
||||
<!-- <li>arvkus.template</li> -->
|
||||
</incompatibleWith>
|
||||
|
||||
<description>Template</description>
|
||||
</ModMetaData>
|
|
@ -14,6 +14,7 @@ This template is created for Rimworld moders who use [Visual Studio Code](https:
|
|||
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 required C# packages from Visual Studio IDE.
|
||||
2. Instal [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
|
||||
3. Clone, pull or download this template into your Rimworld `Mods` folder.
|
||||
4. Modify `.vscode/mod.scproj` and `About/About.xml` files.
|
||||
|
||||
## Additional notes
|
||||
* By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable.
|
||||
|
|
|
@ -38,9 +38,9 @@ namespace Template
|
|||
[StaticConstructorOnStartup]
|
||||
public static class Start
|
||||
{
|
||||
static Start() // quick debug
|
||||
static Start()
|
||||
{
|
||||
Log.Message("Mod init");
|
||||
Log.Message("Mod template loaded successfully!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue