Changes

Jump to navigation Jump to search
Adding in a line about configuring the "GamePath" property for the StardewModdingAPI to avoid an error when Stardew Valley is installed to a non-C drive.
Line 74: Line 74:  
# Target .NET 5 (see [[Modding:IDE reference#set-target-framework|how to change target framework]]).You may need to [https://dotnet.microsoft.com/en-us/download/dotnet/5.0 install the SDK]. <br /> <small>That's the version installed and used by the game. Newer versions may not be installed for players, and SMAPI may not be able to load them.</small>
 
# Target .NET 5 (see [[Modding:IDE reference#set-target-framework|how to change target framework]]).You may need to [https://dotnet.microsoft.com/en-us/download/dotnet/5.0 install the SDK]. <br /> <small>That's the version installed and used by the game. Newer versions may not be installed for players, and SMAPI may not be able to load them.</small>
 
# Reference the [https://www.nuget.org/packages/Pathoschild.Stardew.ModBuildConfig <samp>Pathoschild.Stardew.ModBuildConfig</samp> NuGet package] (see [[Modding:IDE reference#add-nuget|how to add the package]]).
 
# Reference the [https://www.nuget.org/packages/Pathoschild.Stardew.ModBuildConfig <samp>Pathoschild.Stardew.ModBuildConfig</samp> NuGet package] (see [[Modding:IDE reference#add-nuget|how to add the package]]).
 +
#* If you are getting an error stating ''The type or namespace name "StardewModdingAPI" could not be found'', then it's possible that your game path is not being detected. You will need to set the GamePath property to the game's executable directory. This can be done by adding a ''GamePath'' property to the ''PropertyGroup'' in your ''.csproj'' settings.
 
# Restart Visual Studio/MonoDevelop after installing the package.
 
# Restart Visual Studio/MonoDevelop after installing the package.
  

Navigation menu