Using the following at the top of my C# class
On attempting to save the entire file in the 'Server\server\oxide\plugins folder' it throws backCode:using System; using System.Linq; using System.Collections.Generic;using Oxide.Core.Plugins;using Newtonsoft.Json;namespace Oxide.Plugins
"The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?" Other plugins I put in the same folder are able to load Newtonsoft just fine.
As I see no visible indication as to what could be going wrong here, does anybody have any ideas?
Oxide is standard from Github & compiled in VS 2015, Newtonsoft also exists in "RustDedicated_Data\Managed"
Solved Newtonsoft namespace
Discussion in 'Rust Development' started by [FPSPlayers]Colin M, Jun 5, 2015.
-
Wulf Community Admin
Why do you need to use Newtonsoft.Json directly? Oxide provides a JSON config and datatable API for plugins to use, placing them in oxide/config and oxide/data respectively. If you really need to use it, you can try // Reference Newtonsoft.Json.
http://docs.oxidemod.org/#configurations
http://docs.oxidemod.org/#data-tables -
--Edit--
Just saw the last part of your message about // Reference
Thanks, noticed that in other scripts but never realized it was the missing key.Last edited by a moderator: Jun 5, 2015 -
Hello!
I have same problem with using classes from my own extension.
Code:[Oxide] 5:45 PM [Error] Error while compiling StewAccessPlugin.cs(15,15): error CS0234: The type or namespace name `Ext' does not exist in the namespace `Oxide'. Are you missing an assembly reference?
Code:using Oxide.Ext.Stew; ... StewConfig m_config = new StewConfig();
Code:namespace Oxide.Ext.Stew { public class StewConfig { ...
-
Almost same trouble here.
Code:[Oxide] 5:52 PM [Warning] Ignored obsolete game extension reference 'Oxide.Ext.RustUI' in plugin 'UITest'
-
Wulf Community Admin
[DOUBLEPOST=1433604007][/DOUBLEPOST]