Line 27: |
Line 27: |
| Before you can write your mod code, you need to create a solution and project to contain it. | | Before you can write your mod code, you need to create a solution and project to contain it. |
| | | |
− | ===Windows (Visual Studio 2019)=== | + | ===Windows (Visual Studio 2019/2022)=== |
− | # Open Visual Studio 2019. | + | # Open Visual Studio 2019/2022. |
| # Click ''Create a new project'' from the start screen.<br />[[File:Modding - IDE reference - create project (Visual Studio 1).png]] | | # Click ''Create a new project'' from the start screen.<br />[[File:Modding - IDE reference - create project (Visual Studio 1).png]] |
− | # Filter by "C#" and "Library", then choose ''Class Library (.NET Framework)'' and click ''Next''. Make sure you '''don't''' choose ''Class Library (.NET Core)'' or ''Class Library (.NET Standard)'', which won't work.<br /> | + | # Filter by "C#" and "Library", then choose ''Class Library'' and click ''Next''. Make sure you '''don't''' choose ''Class Library (.NET Framework)'' which won't work.<br />[[File:Modding - IDE reference - create project (Visual Studio 2).png]] |
− | # In the ''configure your new project'' window: <ol><li>Enter a descriptive mod name. By convention, the name should be one word with mixed caps (like "PineapplesEverywhere").</li><li>Make sure "Place solution and project in the same directory" is ''not'' checked.</li><li>Make sure .NET Framework 4.5.2 is selected.</li><li>Click "Create" to to create the project.</li></ol>[[File:Modding - IDE reference - create project (Visual Studio 3).png]] | + | # In the ''configure your new project'' window: <ol><li>Enter a descriptive mod name. By convention, the name should be one word with mixed caps (like "PineapplesEverywhere").</li><li>Make sure "Place solution and project in the same directory" is ''not'' checked.</li><li>Click "Create" to to create the project.</li></ol>[[File:Modding - IDE reference - create project (Visual Studio 3).png]] |
| + | # Next, select NET 5.0 and click "Create" to create the project. For VS 2022, this will be on the next page. <br/>[[File:Screenshot 2021-12-16 140835.png]] |
| | | |
| ===Linux (MonoDevelop)=== | | ===Linux (MonoDevelop)=== |