My Problem:
When i try to inherit the class "RustPlugin" and add the Attribute [Info()] i get a error 3 errors all saying the same thing.
//Code
Gyazo - 5e38c6791194bf5e7d427bbaa4c766c8.png
//Errors
Gyazo - bd2092680e1dc8c19b3934323e401225.png
//Assemblies
Gyazo - 6e046a8b6faa846688f24e8ec9ba2ed6.png
I saw a similar thread with the same issue i'm having but he didn't post the errors being thrown so i don't know if our situations are identical.
//Similar Thread
Solved - C#: What to put for using? | Oxide
After posting this i saw yet another similar thread with almost the exact same problem i'm having. But i never saw a actual fix to the problem.
Also yes i have referenced "Oxide.Core.CSharp;"
//Similar Thread
Solved - The type 'Attribute' is defined in an assembly that is not referenced | Oxide
I feel like im making a simple mistake but i cant figure it out for the life of me.
Things ive tried:
- Restarting visual studio.
- Changing to .NetCore
- Getting the nugget package "package.mscorlib"
- but every time i tried to get it it fails. This happens with other nugget packages too.
Extra Info:
- The project is a .net Standard Class library
- I got the assemblies from the "Manged" file in Oxide for Rust | Oxide
- and i got the UnityEngine.dll from my unity files on my pc.
I appreciate all helpful feedback.
Solved Can't reference "RustPlugin" Or [Info()] (missing .NET Framework)
Discussion in 'Rust Development' started by _War, Jul 6, 2017.
-
Wulf Community Admin
You'd need to reference Oxide.Core.CSharp.dll for the Info attribute and Oxide.Game.Rust.dll for the RustPlugin class. If the references still do not work, there's an issue with your IDE setup or the DLLs you are referencing are corrupt.
-
-
Wulf Community Admin
-
Gyazo - 138c6bd53e3453337866f035d8d79b6c.png
This is what you are talking about right? -
Wulf Community Admin
-
I knew it was stupid mistake.
Thanks for all the help and quick responses. Sorry for being stupid lol. -
Wulf Community Admin