As simple as that.
I'm making plubins under the Oxide.Core project, just to be sure that all my files always up-to-date.
And now there is a problem.
doesn't work.Code:using Newtonsoft.Json;
doesn't work either. But in this case - References can't be found.Code:using References::Newtonsoft.Json;
All dependences are fine.
@Wulf? Can you help me figure it out?
Oh, sidenote:
in the namespace I can do something like that:
Code:namespace Oxide.Plugins { extern alias References; .... [References::Newtonsoft.Json.JsonPropertyAttribute("Text"); ....
Namespace Newtonsoft not found
Discussion in 'Rust Development' started by Vlad-00003, Jun 9, 2018.
-
Wulf Community Admin
I don't know why they wouldn't work for you but fine for everything else, sorry.
-
Ok. I got it.
I have to add "extern alias References;" BEFORE any existing using statments. and change
"using Newtonsoft.Json;" to "using References::Newtonsoft.Json;", but - won't it affect the plugin functionallity? I just can't check right now, as I'm far from home...
[DOUBLEPOST=1528572872][/DOUBLEPOST]Yep. It doesn't compile that way
[DOUBLEPOST=1528573322][/DOUBLEPOST]As far as I can see - in the Oxide.Rust project - nothing is using json at all.
So - the VS compiler DO need an alias. The oxide one don't.
For now I would just manually add newtonsoft nuget, but still...