PC 'Object' not defined [RESOLVED]

Ordinary Orange

Skeletron Prime
I've had this problem whenever I try to create or edit mods, can anybody help me?
I've recently tried to create a mod for terraria. I downloaded Tmod, gotten the developer downloads, downloaded the Windows Visual Studio, and attempted to create a mod. However, as soon as I build the unaltered mod, it gives me this error:

Screenshot (5).png


I've tried multiple times, and this happens every time. I'm attempting some of my own troubleshooting, but does anybody know how to fix this error?
 
I've looked it up, and it seems you've seen this before. From what I got from your forum post, I need to update my .net, what version would be required?
 
Well when I looked up that issue before, the resolution was to upgrade to 4.7.2, but 4.8 is also available. I'm not sure if it's better to go to 4.8 or not, but maybe someone else can answer that. You can update it here. .net framework
 
Weird. Didn't work. I tried downloading the 4.8 version, repaired it after it not working a first time, and it still won't work.
Edit: Steam files are verified, didn't work. I have no idea beyond this how to fix it.
Edit 2: Confirmed. .Net 4.8 is already installed. I'm extremely confused.
Edit ???: Do I change ASP.NET trust level? how? Why? aaaaaaaaaaaaa
Edit ∞: I give up, I'll wait for help. I'm in way too deep. My head hurts.
 
Last edited:
[17:57:57] [1/INFO] [tML]: Starting tModLoader v0.11.8.4 Windows client (8/30/2021)
[17:57:57] [1/INFO] [tML]: Running on NetFramework 4.8
[17:57:57] [1/INFO] [tML]: Executable: C:\Program Files (x86)\Steam\steamapps\common\tModLoader\tModLoader.exe
[17:57:57] [1/INFO] [tML]: Working Directory: C:\Program Files (x86)\Steam\steamapps\common\tModLoader
[17:57:57] [1/INFO] [tML]: Launch Parameters:
[17:57:57] [1/INFO] [tML]: Developer mode enabled
[17:57:57] [1/DEBUG] [tML]: Assembly Resolve: -> MonoMod.RuntimeDetour, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null
[17:57:57] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null -> MonoMod.Utils, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null
[17:57:57] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=20.11.16.1, Culture=neutral, PublicKeyToken=null -> Mono.Cecil, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[17:57:57] [1/DEBUG] [tML]: Assembly Resolve: -> Ionic.Zip.Reduced, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c
[17:57:57] [1/DEBUG] [tML]: Assembly Resolve: -> Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
[17:57:57] [1/DEBUG] [tML]: Assembly Resolve: -> Steamworks.NET, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
[17:57:58] [1/INFO] [tML]: Checking Steam installation...
[17:57:58] [1/INFO] [tML]: Steam installation OK.
[17:57:58] [1/INFO] [Terraria]: Found Terraria steamapp install at: C:\Program Files (x86)\Steam\steamapps\common\Terraria
[17:57:58] [1/INFO] [Terraria]: Steam Cloud Quota: 152.6 MB available
[17:57:59] [1/DEBUG] [Terraria]: Graphics Device: AMD Radeon (TM) RX 560X {Width:1920 Height:1080 Format:Color AspectRatio:1.777778}
[17:57:59] [1/DEBUG] [Terraria]: Device Reset, Profile: Reach -> HiDef, Width: 800, Height: 480, Fullscreen: False, Display: \\.\DISPLAY1
[17:57:59] [1/INFO] [Terraria]: Loaded 1000 vanilla assets
[17:58:00] [1/INFO] [Terraria]: Loaded 2000 vanilla assets
[17:58:00] [1/INFO] [Terraria]: Loaded 3000 vanilla assets
[17:58:00] [1/INFO] [Terraria]: Loaded 4000 vanilla assets
[17:58:00] [1/INFO] [Terraria]: Loaded 5000 vanilla assets
[17:58:01] [1/DEBUG] [Terraria]: Device Reset, Profile: HiDef, Width: 800 -> 1920, Height: 480 -> 1017, Fullscreen: False, Display: \\.\DISPLAY1
[17:58:02] [12/DEBUG] [tML]: Assembly Resolve: -> MP3Sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
[17:58:02] [12/DEBUG] [tML]: Assembly Resolve: -> NVorbis, Version=0.8.4.0, Culture=neutral, PublicKeyToken=null
[17:58:03] [8/DEBUG] [tML]: Assembly Resolve: -> Mono.Cecil.Mdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[17:58:03] [8/DEBUG] [tML]: Assembly Resolve: -> Mono.Cecil.Pdb, Version=0.11.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[17:58:03] [8/INFO] [Terraria]: JIT loading finished
[17:58:05] [5/INFO] [tML]: Unloading mods
[17:58:06] [5/INFO] [tML]: Finding Mods...
[17:58:07] [5/INFO] [tML]: Instantiating Mods...
[17:58:07] [5/INFO] [tML]: Initializing: ModLoader v0.11.8.4
[17:58:07] [5/INFO] [tML]: Setting up...
[17:58:07] [5/INFO] [tML]: Loading: ModLoader v0.11.8.4
[17:58:07] [5/INFO] [tML]: RAM usage: 253.6 MB
[17:58:07] [5/INFO] [tML]: Adding Recipes...
[17:58:41] [15/INFO] [tML]: Reading properties: Orange_Test_2
[17:58:41] [15/INFO] [tML]: Building: Orange_Test_2
[17:58:41] [15/INFO] [tML]: Compiling Orange_Test_2.XNA.dll
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: RoslynWrapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: RoslynWrapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: RoslynWrapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:58:41] [15/DEBUG] [tML]: Assembly Resolve: System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a -> System.Collections.Immutable, Version=1.2.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[17:58:42] [15/DEBUG] [tML]: Assembly Resolve: -> Microsoft.CodeAnalysis.CSharp.resources, Version=2.10.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
[17:58:42] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> Microsoft.CodeAnalysis.CSharp.resources, Version=2.10.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35
[17:58:42] [15/DEBUG] [tML]: Assembly Resolve: -> Microsoft.CodeAnalysis.CSharp.resources, Version=2.10.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35
[17:58:42] [15/DEBUG] [tML]: Assembly Resolve: Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 -> Microsoft.CodeAnalysis.CSharp.resources, Version=2.10.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35
[17:58:43] [15/INFO] [tML]: Compilation finished with 62 errors and 1 warnings
[17:58:43] [15/WARN] [tML]: warning CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(6,22) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Orange_Test_2.cs(5,30) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(8,18) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(14,18) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(30,18) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(8,23) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(14,23) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(30,23) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Orange_Test_2.cs(5,14) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,11) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,11) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,22) : error CS0518: Predefined type 'System.String' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(16,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(16,17) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(17,8) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(17,16) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(18,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(18,16) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(19,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(19,17) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(20,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(20,18) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(21,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(21,23) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(22,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(22,19) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(23,8) : error CS0518: Predefined type 'System.Single' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(23,20) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(24,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(24,16) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(25,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(25,15) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(26,19) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(26,19) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(27,8) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(27,20) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,3) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,3) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,26) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,26) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,26) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,24) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,24) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,31) : error CS0518: Predefined type 'System.Int16' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,42) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,18) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,18) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,25) : error CS0518: Predefined type 'System.UInt16' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(35,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(35,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(35,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(36,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(36,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(36,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(6,14) : error CS0518: Predefined type 'System.Void' is not defined or imported
[17:58:43] [15/ERROR] [tML]: Compiling Orange_Test_2.XNA.dll failed with 62 errors and 1 warnings
Error: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(6,22) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Terraria.ModLoader.Exceptions.BuildException: Compiling Orange_Test_2.XNA.dll failed with 62 errors and 1 warnings
Error: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(6,22) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at Terraria.ModLoader.Core.ModCompile.CompileMod(BuildingMod mod, String outputPath, IDictionary`2 refs, Boolean xna) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 680
at Terraria.ModLoader.Core.ModCompile.BuildModForPlatform(BuildingMod mod, Boolean xna) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 554
at Terraria.ModLoader.Core.ModCompile.Build(BuildingMod mod) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 412
at Terraria.ModLoader.Core.ModCompile.Build(String modFolder) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 369
at Terraria.ModLoader.UI.UIBuildMod.<>c__DisplayClass5_0.<Build>b__0(ModCompile mc) in tModLoader\Terraria.ModLoader.UI\UIBuildMod.cs:line 31
at Terraria.ModLoader.UI.UIBuildMod.BuildMod(Action`1 buildAction, Boolean reload) in tModLoader\Terraria.ModLoader.UI\UIBuildMod.cs:line 67
[18:00:35] [1/WARN] [tML]: Silently Caught Exception:
Microsoft.Xna.Framework.Graphics.DeviceLostException: Exception of type 'Microsoft.Xna.Framework.Graphics.DeviceLostException' was thrown.
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Present(tagRECT* pSource, tagRECT* pDest, HWND__* hOverride)
at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.EndDraw()
at Microsoft.Xna.Framework.Game.EndDraw()
at Microsoft.Xna.Framework.Game.DrawFrame()
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame_() in tModLoader\Terraria\Program.cs:line 250
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 228
at Terraria.WindowsLaunch.Main(String[] args) in tModLoader\Terraria\WindowsLaunch.cs:line 74

[18:00:37] [1/DEBUG] [Terraria]: Device Reset, Profile: HiDef, Width: 1920, Height: 1017, Fullscreen: False, Display: \\.\DISPLAY1
[18:01:32] [20/INFO] [tML]: Reading properties: Orange_Test_2
[18:01:32] [20/INFO] [tML]: Building: Orange_Test_2
[18:01:32] [20/INFO] [tML]: Compiling Orange_Test_2.XNA.dll
[18:01:32] [20/INFO] [tML]: Compilation finished with 62 errors and 1 warnings
[18:01:32] [20/WARN] [tML]: warning CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Orange_Test_2.cs(5,30) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(6,22) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(8,18) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(14,18) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(30,18) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(8,23) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(14,23) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(30,23) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Orange_Test_2.cs(5,14) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,11) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,11) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,22) : error CS0518: Predefined type 'System.String' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(11,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(16,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(16,17) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(17,8) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(17,16) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(18,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(18,16) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(19,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(19,17) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(20,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(20,18) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(21,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(21,23) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(22,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(22,19) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(23,8) : error CS0518: Predefined type 'System.Single' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(23,20) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(24,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(24,16) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(25,8) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(25,15) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(26,19) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(26,19) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(27,8) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(27,20) : error CS0518: Predefined type 'System.Boolean' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,3) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,3) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,26) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,26) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(32,26) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,24) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,24) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,31) : error CS0518: Predefined type 'System.Int16' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,42) : error CS0518: Predefined type 'System.Int32' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(33,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,18) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,18) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,25) : error CS0518: Predefined type 'System.UInt16' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(34,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(35,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(35,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(35,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(36,10) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(36,10) : error CS0518: Predefined type 'System.Object' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(36,3) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Items\Sword.cs(6,14) : error CS0518: Predefined type 'System.Void' is not defined or imported
[18:01:32] [20/ERROR] [tML]: Compiling Orange_Test_2.XNA.dll failed with 62 errors and 1 warnings
Error: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Orange_Test_2.cs(5,30) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Terraria.ModLoader.Exceptions.BuildException: Compiling Orange_Test_2.XNA.dll failed with 62 errors and 1 warnings
Error: C:\Users\bkemp\OneDrive\Documents\My Games\Terraria\ModLoader\Mod Sources\Orange_Test_2\Orange_Test_2.cs(5,30) : error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at Terraria.ModLoader.Core.ModCompile.CompileMod(BuildingMod mod, String outputPath, IDictionary`2 refs, Boolean xna) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 680
at Terraria.ModLoader.Core.ModCompile.BuildModForPlatform(BuildingMod mod, Boolean xna) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 554
at Terraria.ModLoader.Core.ModCompile.Build(BuildingMod mod) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 412
at Terraria.ModLoader.Core.ModCompile.Build(String modFolder) in tModLoader\Terraria.ModLoader.Core\ModCompile.cs:line 369
at Terraria.ModLoader.UI.UIBuildMod.<>c__DisplayClass5_0.<Build>b__0(ModCompile mc) in tModLoader\Terraria.ModLoader.UI\UIBuildMod.cs:line 31
at Terraria.ModLoader.UI.UIBuildMod.BuildMod(Action`1 buildAction, Boolean reload) in tModLoader\Terraria.ModLoader.UI\UIBuildMod.cs:line 67

Most of it is assorted error messages
 
I'm seeing errors relating to Int32 and Void not being found. Are you using old code? Like were you ever able to compile this in the past?

Try this, in tmodloader create a brand new mod. Create just 1 item and see if you can compile it (You can copy an example item from ExampleMod here - ExampleMod). That will tell us if it's your code for your items or your install. If you keep getting the same errors, I'd uninstall Tmodloader and the .Net framework and do a fresh install of each.
 
I'm seeing errors relating to Int32 and Void not being found. Are you using old code? Like were you ever able to compile this in the past?

Try this, in tmodloader create a brand new mod. Create just 1 item and see if you can compile it (You can copy an example item from ExampleMod here - ExampleMod). That will tell us if it's your code for your items or your install. If you keep getting the same errors, I'd uninstall Tmodloader and the .Net framework and do a fresh install of each.
One step ahead of you. All mods are unedited, new mods, and I've made multiple test mods since in attempting different fixes, none of which have worked. I've uninstalled and completely deleted my modloader file, and loaded entirely new tmod software to no avail. I will try uninstalling and reinstalling .Net 4.8.
Edit: Reinstall didn't work.
 
Last edited:
Okay, I've solved it. Finally. After weeks of trying, i found This forum post, and figured out I was barking up the wrong tree. To anybody who has this error and finds this thread, the problem is probably Visual Studio. Try redownloading the studio; you may have accidentally downloaded the wrong version somehow, for me it was the preview studio. Go to This link and hover over the download visual studio button, and click community. Then follow the setup instructions. It took me way too long to figure this out, I hope this helps somebody.
 
Back
Top Bottom