Changes

Jump to navigation Jump to search
→‎Create a mod: update for mod build package 2.0
Line 61: Line 61:  
# Create a solution with a C# class library project (see [[Modding:IDE reference#create-project|how to]]).
 
# Create a solution with a C# class library project (see [[Modding:IDE reference#create-project|how to]]).
 
# Change the target framework to .NET Framework 4.5 for compatibility with Linux (see [[Modding:IDE reference#set-target-framework|how to]]).
 
# Change the target framework to .NET Framework 4.5 for compatibility with Linux (see [[Modding:IDE reference#set-target-framework|how to]]).
# Reference the [https://github.com/Pathoschild/Stardew.ModBuildConfig <tt>Pathoschild.Stardew.ModBuildConfig</tt> NuGet package] (see [[Modding:IDE reference#add-nuget|how to]]). If you use Visual Studio 2017, you might need to close & reopen it before it handles the package correctly.<br /><small>''This will automatically configure your project to load the right modding dependencies for the current platform, so your mod can be built on Linux, Mac, or Windows. It also adds support for debugging the mod in-game.''</small>
+
# 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]]). If you use Visual Studio 2017, you might need to close & reopen it before it handles the package correctly.<br /><small>''This will automatically reference the right dependencies for SMAPI modding, add support for debugging the mod, and copy the mod into your game's <tt>Mods</tt> folder when you build.''</small>
# [https://github.com/Pathoschild/Stardew.ModBuildConfig#simplify-mod-development Configure the build to deploy your mod files automatically].
      
===Write the code===
 
===Write the code===
Line 145: Line 144:  
===Troubleshooting===
 
===Troubleshooting===
 
If building the mod doesn't work:
 
If building the mod doesn't work:
* If you see an error like "failed to find the game install path", see [https://github.com/Pathoschild/Stardew.ModBuildConfig#troubleshoot this page for more info].
+
* If you see an error starting with "''The mod build package''", try following the instructions in the error message.
 
* Try reviewing the above steps to make sure you didn't skip something.
 
* Try reviewing the above steps to make sure you didn't skip something.
 
* If all else fails, [[#help|ask for help]]. :)
 
* If all else fails, [[#help|ask for help]]. :)
translators
8,456

edits

Navigation menu