Compare commits

...

10 commits

Author SHA1 Message Date
Arvydas Vitkus
dce259ecf8
Merge pull request #2 from onoira/master
Update template to 1.4
2022-12-28 21:46:33 +02:00
Onoira
188f53668f docs: Remove name from About.xml 2022-12-23 16:39:36 +01:00
Onoira
4c1e54857e docs: Add C# to recommended extensions 2022-12-23 16:36:20 +01:00
Onoira
e8fa57afda Update About.xml 2022-11-20 01:48:11 +01:00
Onoira
0cf7e9fb76 Update Harmony path 2022-11-20 01:45:21 +01:00
Onoira
eba8fa8bef Rename 1.3 -> 1.4 2022-11-20 01:44:46 +01:00
Arvkus
3f5ceb38be update #1 2022-05-04 21:31:35 +03:00
Arvkus
cffd160ba1 typo fix 2021-08-14 19:54:09 +03:00
Arvkus
49b959b957 1.3 update 2021-08-14 19:34:49 +03:00
Arvkus
848caedff1 typo fix 2020-09-11 17:08:04 +03:00
10 changed files with 22 additions and 30 deletions

5
.vscode/extensions.json vendored Normal file
View file

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

14
.vscode/launch.json vendored
View file

@ -15,20 +15,6 @@
"console": "internalConsole",
"internalConsoleOptions":"neverOpen",
"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">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net472</TargetFramework>
<TargetFramework>net480</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
<RootNamespace>Template</RootNamespace>
<AssemblyName>Template</AssemblyName>
<OutputPath>../1.2/Assemblies</OutputPath>
<VersionPrefix>1.0.0.0</VersionPrefix>
<OutputPath>../1.4/Assemblies</OutputPath>
<VersionPrefix>0.1.0.0</VersionPrefix>
<!-- do not generate pdb file -->
<DebugType>none</DebugType>
@ -27,7 +27,7 @@
</Reference>
<!-- Harmony -->
<!-- <Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
<!-- <Reference Include="../../Harmony/Current/Assemblies/0Harmony.dll">
<Private>False</Private>
</Reference> -->
</ItemGroup>

Binary file not shown.

View file

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

View file

@ -1,6 +1,6 @@
# Rimworld Mod Template
This template is created for Rimworld moders who use [Visual Studio Code](https://code.visualstudio.com/) instead of Visual Studio IDE.
This template is created for Rimworld modders 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.
@ -11,12 +11,13 @@ This template is created for Rimworld moders who use [Visual Studio Code](https:
* __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 required C# packages from Visual Studio IDE.
2. Instal [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
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.
2. Install [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
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.
* 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.