Compare commits

..

No commits in common. "dce259ecf8c79ababab6a21e3aca99953345224f" and "eb1429021044bc732ec8dda638bacf86a9fbb8ef" have entirely different histories.

10 changed files with 30 additions and 22 deletions

View file

@ -1,5 +0,0 @@
{
"recommendations": [
"ms-dotnettools.csharp"
]
}

14
.vscode/launch.json vendored
View file

@ -15,6 +15,20 @@
"console": "internalConsole", "console": "internalConsole",
"internalConsoleOptions":"neverOpen", "internalConsoleOptions":"neverOpen",
"stopAtEntry": true "stopAtEntry": true
},
{ // ignore
"name": ".NET Framework Attach",
"type": "clr",
"request": "attach",
"processId": "${command:pickProcess}",
"symbolOptions": {
"searchPaths": [
".vscode/obj/Debug/*"
],
"searchMicrosoftSymbolServer": false,
"searchNuGetOrgSymbolServer": false
}
} }
] ]
} }

8
.vscode/mod.csproj vendored
View file

@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<TargetFramework>net480</TargetFramework> <TargetFramework>net472</TargetFramework>
<PlatformTarget>x64</PlatformTarget> <PlatformTarget>x64</PlatformTarget>
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] --> <!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
<RootNamespace>Template</RootNamespace> <RootNamespace>Template</RootNamespace>
<AssemblyName>Template</AssemblyName> <AssemblyName>Template</AssemblyName>
<OutputPath>../1.4/Assemblies</OutputPath> <OutputPath>../1.2/Assemblies</OutputPath>
<VersionPrefix>0.1.0.0</VersionPrefix> <VersionPrefix>1.0.0.0</VersionPrefix>
<!-- do not generate pdb file --> <!-- do not generate pdb file -->
<DebugType>none</DebugType> <DebugType>none</DebugType>
@ -27,7 +27,7 @@
</Reference> </Reference>
<!-- Harmony --> <!-- Harmony -->
<!-- <Reference Include="../../Harmony/Current/Assemblies/0Harmony.dll"> <!-- <Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
<Private>False</Private> <Private>False</Private>
</Reference> --> </Reference> -->
</ItemGroup> </ItemGroup>

BIN
1.2/Assemblies/Template.dll Normal file

Binary file not shown.

View file

@ -1,23 +1,23 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ModMetaData> <ModMetaData>
<packageId>username.modname</packageId> <packageId>arvkus.template</packageId>
<name>Mod Template</name> <name>Arvkus Mod Template</name>
<author>username</author> <author>Arvkus</author>
<supportedVersions> <supportedVersions>
<li>1.4</li> <li>1.2</li>
</supportedVersions> </supportedVersions>
<modDependencies> <modDependencies>
<!-- <li> <!-- <li>
<packageId>brrainz.harmony</packageId> <packageId>brrainz.harmony</packageId>
<displayName>Harmony</displayName> <displayName>Harmony</displayName>
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl> <downloadUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</downloadUrl>
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> <steamWorkshopUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</steamWorkshopUrl>
</li> --> </li> -->
</modDependencies> </modDependencies>
<incompatibleWith> <incompatibleWith>
<!-- <li>username.modname</li> --> <!-- <li>arvkus.template</li> -->
</incompatibleWith> </incompatibleWith>
<description>Template</description> <description>Template</description>

View file

@ -1,6 +1,6 @@
# Rimworld Mod Template # Rimworld Mod Template
This template is created for Rimworld modders who use [Visual Studio Code](https://code.visualstudio.com/) instead of Visual Studio IDE. This template is created for Rimworld moders who use [Visual Studio Code](https://code.visualstudio.com/) instead of 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.
@ -11,13 +11,12 @@ This template is created for Rimworld modders who use [Visual Studio Code](https
* __Customizable__. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure. * __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.8 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net48). This step can be skipped if you already have required C# packages from Visual Studio IDE. 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. Install [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, pull or download 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. * All intermediate files are kept inside `.vscode` folder.
* For XML only modders remove preLaunchTask line from `.vscode/launch.json` file.
* Modify `.vscode/mod.csproj` and `About/About.xml` according to your needs. * Modify `.vscode/mod.csproj` and `About/About.xml` according to your needs.