Changes

Jump to navigation Jump to search
m
Text replacement - "tt>" to "samp>"
Line 22: Line 22:  
'''Harmony should be a last resort''' (see the previous section).
 
'''Harmony should be a last resort''' (see the previous section).
 
<ol>
 
<ol>
<li>Edit your mod's <tt>.csproj</tt> project file, and add this to the first <tt>&lt;PropertyGroup&gt;</tt> section:
+
<li>Edit your mod's <samp>.csproj</samp> project file, and add this to the first <samp>&lt;PropertyGroup&gt;</samp> section:
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
<EnableHarmony>true</EnableHarmony>
 
<EnableHarmony>true</EnableHarmony>
 
</syntaxhighlight></li>
 
</syntaxhighlight></li>
<li>In your mod's <tt>Entry</tt> method, use Harmony's code API to register patches:
+
<li>In your mod's <samp>Entry</samp> method, use Harmony's code API to register patches:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
 
var harmony = new Harmony(this.ModManifest.UniqueID);
 
var harmony = new Harmony(this.ModManifest.UniqueID);
105,906

edits

Navigation menu