|
1 | 1 | ## Creating a project from scratch |
2 | 2 |
|
| 3 | +---os:windows |
| 4 | +### VS2022 |
| 5 | +Open VS2022 and then press "Create a new project" |
| 6 | +Find C# Class Libary and clcik on it then press Next |
| 7 | +Name your project then press next again |
| 8 | +Set the Framework to .NET Standard 2.1 and click Create |
| 9 | +---end--- |
| 10 | +---os:mac |
| 11 | +### VSCode |
| 12 | +Now press Ctrl-Shift-P and type: .NET: New Project |
| 13 | +Press enter and then wait for a sec then type Class Library and press enter |
| 14 | +Enter you mod name then press enter 3 times |
| 15 | +---end--- |
| 16 | +---os:linux |
| 17 | +# Implement Rider |
| 18 | +---end--- |
| 19 | + |
| 20 | +Now that your project has been created its time for you to set up your .csproj |
| 21 | + |
| 22 | +Doing this will make the mod dll to automatically go to where your ultrakill plugin folder is and skip moving the dll yourself. |
| 23 | +It will also reduce problems and klet you use more mechanics in C# that makes it simpler to do things. |
| 24 | + |
| 25 | +### Important Note: (ModName) Will be what I use to reference whatever you called your mod! |
| 26 | + |
| 27 | +Opening the .csproj |
| 28 | +---os:windows |
| 29 | +### VS2022 |
| 30 | +Locate the "Solution Exlorer" On the right side of the screen if it isnt there you can open it by pressing (Ctrl+Alt+L) |
| 31 | +There are 3 Objects that should draw your attention, |
| 32 | +Class1.cs, This file holds your code |
| 33 | +Dependecies, This holds the dlls your project references such as unity and ultrakill |
| 34 | +(ModName), This will be above those 2 and its named what your mod is named, this is the .csproj we have been looking for |
| 35 | +Double click (ModName) |
| 36 | +---end--- |
| 37 | +---os:mac |
| 38 | +### VSCode |
| 39 | +Locate the "Solution Exlorer" On the right side of the screen if it isnt there you can open it by pressing (Ctrl+Alt+L) |
| 40 | +There are 2 Objects that should draw your attention, |
| 41 | +Class1.cs, This file holds your code |
| 42 | +(ModName).csproj, this is the .csproj we have been looking for |
| 43 | +Double click (ModName).csproj |
| 44 | +---end--- |
| 45 | +---os:linux |
| 46 | +# Implement Rider |
| 47 | +---end--- |
0 commit comments