I'm posting this to help remind me how to set up a new Oxide.Rust-develop environment:
1) Download the ZIP file from git: https://github.com/OxideMod/Oxide.Rust
2) Unzip it somewhere, I put it on my desktop so you can imagine the clutter.
3) Find the Steam.ps1 file, right click to unblock it.
4) Open Visual Studio and do 'Rebuild Soluition'
Step 3 had me in a tizzy for some time as the error in the compiler is not very useful. I tried all kinds of thing, running it in admin, reinstalling powershell. I finally ran the command manually and found that the script file was blocked.
My current issue is that any refernce to displayName of an Item I get an error:
"Error CS0012 The type 'Translate.Phrase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Rust.Localization, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'."
Of course the mod will work when uploaded. I'd really like to remove this, if anyone has any idea how to fix this please let me know.
1) Download the ZIP file from git: https://github.com/OxideMod/Oxide.Rust
2) Unzip it somewhere, I put it on my desktop so you can imagine the clutter.
3) Find the Steam.ps1 file, right click to unblock it.
4) Open Visual Studio and do 'Rebuild Soluition'
Step 3 had me in a tizzy for some time as the error in the compiler is not very useful. I tried all kinds of thing, running it in admin, reinstalling powershell. I finally ran the command manually and found that the script file was blocked.
My current issue is that any refernce to displayName of an Item I get an error:
"Error CS0012 The type 'Translate.Phrase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Rust.Localization, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'."
Of course the mod will work when uploaded. I'd really like to remove this, if anyone has any idea how to fix this please let me know.