This is a simple guide on how you can setup your workspace, so you could lookup all APIs and use proper code-completion in the Visual Studio IDE.
Done, you can now enjoy proper syntax highlighting and code-completion, now get cracking.
- Download Visual Studio 2015 Express Here: https://go.microsoft.com/fwlink/?LinkId=532606&clcid=0x409
- Install it with the default options
- Once you have loaded up the IDE, go in File -> New -> Project, select Templates -> Visual C#, select "Class Library", enter your plugin name, for example, "TestPlugin", and press OK
- Then on the right side, open "Solution Explorer", expand the References section, select all but "Analyzers", then rightclick and remove.
- Rightclick on References, press add, press Browse and go to your rust server directory, for example, "E:\Rust\rustds\RustDedicated_Data\Managed", and select all of the .dll files except for "mscorlib.dll", "System.Core.dll" and "System.Data.dll".
Setting up a C# workspace in Visual Studio 2015
Discussion in 'Rust Discussion' started by Vilsol, Jul 4, 2015.
-
Wulf Community Admin
Or you could clone the Oxide repo, and plop your .cs plugin into the plugins folder under the game extension you wish to develop for.
-
And with notepad++?
-
Wulf Community Admin
-
Vilsol method worked fine and I get working intellisense which really helps -
i cant import references and couldnt find anything in references to delete
Last edited by a moderator: Nov 2, 2015 -
for those who use mac, try visual studio code.
-
There isn't a System.Core.dll anymore from what I can tell.
I'm also getting this
Code:Error CS0012 The type 'MonoBehaviour' is defined in an assembly that is not referenced. You must add a reference to assembly 'UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. RespawnMessages c:\users\dellpc\documents\visual studio 2015\Projects\RespawnMessages\RespawnMessages\Class1.cs
Last edited by a moderator: Jul 5, 2016 -
Wulf Community Admin
-
Is there somewhere an official guide for this?
Iike one that is updated to a somewhat recent state and that contains all the current fetures. The api documentation doesn't even provide information on mysql support. But that would not be a big deal if there was a guide on how to set up the references. -
Wulf Community Admin
-
Doesn't that miss at least the csproj stuff and the librarys?
The last time i worked with c# was about 1 year ago and i only did it for about 1 year. -
Wulf Community Admin
-
Where should they be located? I still can't find them and visual studio also doesn't.
-
Wulf Community Admin
-
Sio i assume there is a copyright problem to this?
Right now im searching for the files in my server directory but i would have aprreciated a package containing them... -
Wulf Community Admin
-
-
Wulf Community Admin
-