Line 15: |
Line 15: |
| | IDE || The program used to edit, run, and compile your code (short for ''Integrated Development Environment''). The main IDEs are Visual Studio on Windows, and MonoDevelop/Visual Studio for Mac on Linux/Mac. | | | IDE || The program used to edit, run, and compile your code (short for ''Integrated Development Environment''). The main IDEs are Visual Studio on Windows, and MonoDevelop/Visual Studio for Mac on Linux/Mac. |
| |- | | |- |
− | | DLL || The file with a <tt>.dll</tt> extension which contains your compiled code (short for ''Dynamic Link Library''). This is the file that SMAPI reads when loading your mod. | + | | DLL || The file with a <samp>.dll</samp> extension which contains your compiled code (short for ''Dynamic Link Library''). This is the file that SMAPI reads when loading your mod. |
| |- | | |- |
| | project || A collection of source code + configuration + resources (like images) you edit in the IDE. Each project is compiled into its own DLL. | | | project || A collection of source code + configuration + resources (like images) you edit in the IDE. Each project is compiled into its own DLL. |
Line 104: |
Line 104: |
| # Search for the package, click on the result, and click ''Add Package'':<br />[[File:Modding - IDE reference - add NuGet package (MonoDevelop 2).png]] | | # Search for the package, click on the result, and click ''Add Package'':<br />[[File:Modding - IDE reference - add NuGet package (MonoDevelop 2).png]] |
| | | |
− | ==Edit project file (<tt>.csproj</tt>)== | + | ==Edit project file (<samp>.csproj</samp>)== |
| <span id="edit-project"></span> | | <span id="edit-project"></span> |
| | | |
− | Sometimes you may want to edit the project file directly (mainly to configure build steps). The project is a <tt>.csproj</tt> file, and can be edited from within the IDE. | + | Sometimes you may want to edit the project file directly (mainly to configure build steps). The project is a <samp>.csproj</samp> file, and can be edited from within the IDE. |
| | | |
| ===In Visual Studio 2017=== | | ===In Visual Studio 2017=== |
Line 127: |
Line 127: |
| # Open the Solution Explorer pane. If it's not visible, click ''View » Solution Explorer'' from the menu:<br />[[File:Modding - IDE reference - show solution pane (Visual Studio).png]] | | # Open the Solution Explorer pane. If it's not visible, click ''View » Solution Explorer'' from the menu:<br />[[File:Modding - IDE reference - show solution pane (Visual Studio).png]] |
| # From the Solution Explorer pane, right-click on the project and choose ''Open Folder in File Explorer'':<br />[[File:Modding - IDE reference - view build output (Visual Studio).png]] | | # From the Solution Explorer pane, right-click on the project and choose ''Open Folder in File Explorer'':<br />[[File:Modding - IDE reference - view build output (Visual Studio).png]] |
− | # Navigate to <tt>bin\Debug</tt> (or <tt>bin\Release</tt> if you switched to release build configuration). | + | # Navigate to <samp>bin\Debug</samp> (or <samp>bin\Release</samp> if you switched to release build configuration). |
| | | |
| ===In MonoDevelop/Visual Studio for Mac=== | | ===In MonoDevelop/Visual Studio for Mac=== |
| # Open the Solution pad. If it's not visible, click ''View » Pads » Solution'' from the menu:<br />[[File:Modding - IDE reference - show solution pane (MonoDevelop).png]] | | # Open the Solution pad. If it's not visible, click ''View » Pads » Solution'' from the menu:<br />[[File:Modding - IDE reference - show solution pane (MonoDevelop).png]] |
| # From the Solution pad, right-click on the project and choose ''Open Containing Folder'':<br />[[File:Modding - IDE reference - view build output (MonoDevelop).png]] | | # From the Solution pad, right-click on the project and choose ''Open Containing Folder'':<br />[[File:Modding - IDE reference - view build output (MonoDevelop).png]] |
− | # Navigate to <tt>bin/Debug</tt> (or <tt>bin/Release</tt> if you switched to release build configuration). | + | # Navigate to <samp>bin/Debug</samp> (or <samp>bin/Release</samp> if you switched to release build configuration). |
| | | |
| ==Add a reference to another DLL== | | ==Add a reference to another DLL== |