Changes

Jump to navigation Jump to search
replace edit about manually referencing DLLs (which is fragile) with a more explicit link to the troubleshooting section
Line 71: Line 71:  
# Change the target framework to .NET Framework 4.5, 4.5.1, or 4.5.2 for best compatibility (see [[Modding:IDE reference#set-target-framework|how to change target framework]]).
 
# Change the target framework to .NET Framework 4.5, 4.5.1, or 4.5.2 for best compatibility (see [[Modding:IDE reference#set-target-framework|how to change target framework]]).
 
# Reference the [https://www.nuget.org/packages/Pathoschild.Stardew.ModBuildConfig <tt>Pathoschild.Stardew.ModBuildConfig</tt> NuGet package] (see [[Modding:IDE reference#add-nuget|how to add the package]]).
 
# Reference the [https://www.nuget.org/packages/Pathoschild.Stardew.ModBuildConfig <tt>Pathoschild.Stardew.ModBuildConfig</tt> NuGet package] (see [[Modding:IDE reference#add-nuget|how to add the package]]).
# If Stardew Valley is not installed in the default folder (C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley), remove the Netcode, Stardew Valley, StardewModdingAPI, StardewValley.GameData and xTile references and add these (Stardew Valley.exe, StardewModdingAPI.exe, Netcode.dll, StardewValley.GameData.dll and xTile.dll) from your install location. (see [[Modding:IDE_reference#Add_a_reference_to_another_DLL]])
   
# Restart Visual Studio/MonoDevelop after installing the package.
 
# Restart Visual Studio/MonoDevelop after installing the package.
   Line 169: Line 168:  
#* In Visual Studio, click ''Build > Rebuild Solution'' and check the ''Output'' pane or ''Error'' list.
 
#* In Visual Studio, click ''Build > Rebuild Solution'' and check the ''Output'' pane or ''Error'' list.
 
#* In MonoDevelop, click ''Build > Rebuild All'' and wait until it's done. Then click the "Build: XX errors, XX warnings" bar at the top, and check the ''XX Errors'' and ''Build Output'' tabs.
 
#* In MonoDevelop, click ''Build > Rebuild All'' and wait until it's done. Then click the "Build: XX errors, XX warnings" bar at the top, and check the ''XX Errors'' and ''Build Output'' tabs.
 +
# If one of the errors (not necessarily the first one) says the package can't find your game folder, see [[Modding:Modder Guide/Test and Troubleshoot#Visual Studio can't find the game/SMAPI/XNA DLLs|''Visual Studio can't find the game/SMAPI/XNA DLLs'']].
 
# See the [[Modding:Modder Guide/Test and Troubleshoot|troubleshooting guide]].
 
# See the [[Modding:Modder Guide/Test and Troubleshoot|troubleshooting guide]].
 
# If all else fails, come ask for help in the [[Modding:Community#Discord|#modding in the Stardew Valley Discord]]. :)
 
# If all else fails, come ask for help in the [[Modding:Community#Discord|#modding in the Stardew Valley Discord]]. :)
translators
8,447

edits

Navigation menu