Line 69: |
Line 69: |
| # On the ''Application'' tab, change the ''Target Framework'' dropdown to ''.NET 5.0'':<br />[[File:Modding - IDE reference - change target framework (Visual Studio 2).png|800px]] | | # On the ''Application'' tab, change the ''Target Framework'' dropdown to ''.NET 5.0'':<br />[[File:Modding - IDE reference - change target framework (Visual Studio 2).png|800px]] |
| # A dialogue may appear asking you to confirm the change. Click 'Yes' to confirm:<br />[[File:Modding - IDE reference - change target framework (Visual Studio 3).png]] | | # A dialogue may appear asking you to confirm the change. Click 'Yes' to confirm:<br />[[File:Modding - IDE reference - change target framework (Visual Studio 3).png]] |
| + | |
| + | ===In Visual Studio 2019 for Mac=== |
| + | |
| + | Unfortunately there doesn't appear to be a way to do this using the GUI. However, it is very easy to follow the 1.5.5 migration guide steps: |
| + | # Open the .csproj file for editing:<br />[[File:VS Mac 7 editcsproj.png|600px]] |
| + | # Replace your mod's <samp>.csproj</samp> file with this (where <code>EXAMLE_MOD_NAME</code> is your solution's name): |
| + | <syntaxhighlight lang="xml"> |
| + | <Project Sdk="Microsoft.NET.Sdk"> |
| + | <PropertyGroup> |
| + | <AssemblyName>EXAMPLE_MOD_NAME</AssemblyName> |
| + | <RootNamespace>EXAMPLE_MOD_NAME</RootNamespace> |
| + | <Version>1.0.0</Version> |
| + | <TargetFramework>net5.0</TargetFramework> |
| + | </PropertyGroup> |
| + | |
| + | <ItemGroup> |
| + | <PackageReference Include="Pathoschild.Stardew.ModBuildConfig" Version="4.0.0" /> |
| + | </ItemGroup> |
| + | </Project> |
| + | </syntaxhighlight> |
| + | |
| + | # If the mod uses [[Modding:Modder Guide/APIs/Harmony|Harmony]], add <code><nowiki><EnableHarmony>true</EnableHarmony></nowiki></code> to the property group. |
| | | |
| ===In MonoDevelop/Visual Studio for Mac=== | | ===In MonoDevelop/Visual Studio for Mac=== |
− | <b><p style="color:darkred;">This section is out of date for Stardew Valley 1.5.5. It appears you cannot change the .NET framework in this way anymore with Visual Studio 2019 and Stardew Valley 1.5.5.</p><b/> | + | <b><p style="color:red;">This section is out of date for Stardew Valley 1.5.5. It appears you cannot change the .NET framework in this way with Visual Studio 2019 and Stardew Valley 1.5.5.</p><b/> |
| | | |
| # 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]] |